Home-AssistantConfig/config/automation/flash_all.yaml

51 lines
1.2 KiB
YAML
Executable File

######################################################################
## Flash all the lights!
######################################################################
- alias: 'Flash all_lights'
trigger:
- platform: state
entity_id: input_boolean.flash
to: 'on'
from: 'off'
action:
- service: light.turn_on
entity_id: all
data:
flash: long
- service: input_boolean.turn_off
entity_id: input_boolean.flash
- alias: 'Flash Timer Lights'
trigger:
- platform: state
entity_id: input_boolean.flash
to: 'on'
from: 'off'
- platform: event
#Sent from IFTTT Webhooks : {"action":"Flash_Timer:}
event_type: ifttt_webhook_received
event_data:
action: Flash_Timer
action:
- service: light.turn_on
entity_id:
- light.bedroom
- light.justin_go
- light.paige_go
- light.sink
- light.tv_light
- light.couch_1
- light.upstairs_lamp
- light.office_lamp
- light.m1_slider
- light.garage_attic
- light.den_lamp
data:
flash: long
- service: input_boolean.turn_off
entity_id: input_boolean.flash