1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

add lights on off triggers (#1037)

* add lights on off triggers

* add test
This commit is contained in:
Guillermo Ruffino
2020-04-25 15:39:34 -03:00
committed by GitHub
parent bab0ba9c0f
commit 31ae337931
4 changed files with 64 additions and 2 deletions

View File

@@ -1044,6 +1044,14 @@ light:
duration: 250ms
- state: False
duration: 250ms
on_turn_on:
- switch.template.publish:
id: livingroom_lights
state: yes
on_turn_off:
- switch.template.publish:
id: livingroom_lights
state: yes
- platform: monochromatic
name: "Kitchen Lights"
id: kitchen