mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 13:43:00 +00:00
[light] Pass light reference into lambda light effect (#16815)
This commit is contained in:
@@ -182,6 +182,9 @@ light:
|
||||
state += 1;
|
||||
if (state == 4)
|
||||
state = 0;
|
||||
if (initial_run) {
|
||||
ESP_LOGD("custom_effect", "Effect %s started", it.get_name().c_str());
|
||||
}
|
||||
- pulse:
|
||||
transition_length: 10s
|
||||
update_interval: 20s
|
||||
|
||||
Reference in New Issue
Block a user