From a503beb404ed3e3ec9752adcb44a7fd10097a779 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 23 Nov 2016 23:58:47 +0000 Subject: [PATCH] Just Toggle it! --- automation/dash_buttons.yaml | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/automation/dash_buttons.yaml b/automation/dash_buttons.yaml index 3d9e3227..724e54d8 100755 --- a/automation/dash_buttons.yaml +++ b/automation/dash_buttons.yaml @@ -2,32 +2,27 @@ ## Press a dash Button and then stuff happens. ################################### -- alias: 'Toggle Office Light on if off' +- alias: 'Toggle Office Light on/off' trigger: - platform: event event_type: brooklyn_dash - - condition: - - condition: state - entity_id: light.office_lamp - state: 'off' - + action: - - service: light.turn_on + - service: light.toggle entity_id: light.office_lamp -- alias: 'Toggle Office Light off if on' - trigger: - - platform: event - event_type: brooklyn_dash +# - alias: 'Toggle Office Light off if on' + # trigger: + # - platform: event + # event_type: brooklyn_dash - condition: - - condition: state - entity_id: light.office_lamp - state: 'on' + # condition: + # - condition: state + # entity_id: light.office_lamp + # state: 'on' - action: - - service: light.turn_off - entity_id: light.office_lamp + # action: + # - service: light.turn_off + # entity_id: light.office_lamp \ No newline at end of file