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