Home-AssistantConfig/automation/dash_buttons.yaml

30 lines
708 B
YAML
Raw Normal View History

###################################
## Press a dash Button and then stuff happens.
###################################
2016-11-23 23:58:47 +00:00
- alias: 'Toggle Office Light on/off'
trigger:
- platform: event
event_type: brooklyn_dash
2016-12-09 00:02:11 +00:00
- platform: event
event_type: simplehuman_dash
action:
2016-11-23 23:58:47 +00:00
- service: light.toggle
entity_id: light.office_lamp
2016-12-09 00:02:11 +00:00
2016-11-23 23:58:47 +00:00
# - alias: 'Toggle Office Light off if on'
# trigger:
# - platform: event
# event_type: brooklyn_dash
2016-11-23 23:58:47 +00:00
# condition:
# - condition: state
# entity_id: light.office_lamp
# state: 'on'
2016-11-23 23:58:47 +00:00
# action:
# - service: light.turn_off
# entity_id: light.office_lamp