Use event fired by Node-RED as trigger for Xmas lights
This commit is contained in:
@ -4206,32 +4206,27 @@
|
|||||||
alias: Christmas Tree
|
alias: Christmas Tree
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- alias: Toggle on
|
||||||
event_type: timer.finished
|
platform: event
|
||||||
|
event_type: extraLights
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: timer.sunset_lighting_timer
|
toggle: 'on'
|
||||||
alias: When sunset lights timer is finished
|
id: toggle-on
|
||||||
id: timer-finished
|
- platform: event
|
||||||
- alias: At sunrise
|
event_type: extraLights
|
||||||
platform: state
|
event_data:
|
||||||
entity_id:
|
toggle: 'off'
|
||||||
- sun.sun
|
id: toggle-off
|
||||||
id: sunrise
|
alias: Toggle off
|
||||||
from: below_horizon
|
|
||||||
to: above_horizon
|
|
||||||
for:
|
|
||||||
hours: 0
|
|
||||||
minutes: 0
|
|
||||||
seconds: 0
|
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
- alias: Processing
|
- alias: Processing
|
||||||
choose:
|
choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- alias: Toggle on
|
||||||
|
condition: trigger
|
||||||
id:
|
id:
|
||||||
- timer-finished
|
- toggle-on
|
||||||
alias: Timer finished
|
|
||||||
sequence:
|
sequence:
|
||||||
- alias: Turn on Christmas lights
|
- alias: Turn on Christmas lights
|
||||||
service: light.turn_on
|
service: light.turn_on
|
||||||
@ -4241,10 +4236,10 @@
|
|||||||
- light.christmas_lights_front_window
|
- light.christmas_lights_front_window
|
||||||
data: {}
|
data: {}
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- alias: Toggle off
|
||||||
|
condition: trigger
|
||||||
id:
|
id:
|
||||||
- sunrise
|
- toggle-off
|
||||||
alias: Sunrise
|
|
||||||
sequence:
|
sequence:
|
||||||
- alias: Turn off Christmas tree
|
- alias: Turn off Christmas tree
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
|
Reference in New Issue
Block a user