[light] Use register_apply_condition for light.is_on and light.is_off (#19556)

This commit is contained in:
J. Nick Koston
2026-09-24 08:56:40 -04:00
committed by GitHub
parent e9aecb5fe8
commit 22959ea1cf
4 changed files with 21 additions and 40 deletions
+11
View File
@@ -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%