mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
[light] Use register_apply_condition for light.is_on and light.is_off (#19556)
This commit is contained in:
@@ -68,6 +68,17 @@ esphome:
|
||||
|
||||
- light.toggle: test_binary_light
|
||||
- light.turn_off: test_rgb_light
|
||||
- if:
|
||||
condition:
|
||||
light.is_on: test_binary_light
|
||||
then:
|
||||
- logger.log: binary light is on
|
||||
- if:
|
||||
condition:
|
||||
light.is_off:
|
||||
id: test_rgb_light
|
||||
then:
|
||||
- logger.log: rgb light is off
|
||||
- light.turn_on:
|
||||
id: test_rgb_light
|
||||
brightness: 100%
|
||||
|
||||
Reference in New Issue
Block a user