mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 00:25:12 +00:00
Just Toggle it!
This commit is contained in:
parent
604cd100d8
commit
a503beb404
@ -2,32 +2,27 @@
|
|||||||
## Press a dash Button and then stuff happens.
|
## Press a dash Button and then stuff happens.
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
- alias: 'Toggle Office Light on if off'
|
- alias: 'Toggle Office Light on/off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: brooklyn_dash
|
event_type: brooklyn_dash
|
||||||
|
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: light.office_lamp
|
|
||||||
state: 'off'
|
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.toggle
|
||||||
entity_id: light.office_lamp
|
entity_id: light.office_lamp
|
||||||
|
|
||||||
|
|
||||||
- alias: 'Toggle Office Light off if on'
|
# - alias: 'Toggle Office Light off if on'
|
||||||
trigger:
|
# trigger:
|
||||||
- platform: event
|
# - platform: event
|
||||||
event_type: brooklyn_dash
|
# event_type: brooklyn_dash
|
||||||
|
|
||||||
condition:
|
# condition:
|
||||||
- condition: state
|
# - condition: state
|
||||||
entity_id: light.office_lamp
|
# entity_id: light.office_lamp
|
||||||
state: 'on'
|
# state: 'on'
|
||||||
|
|
||||||
action:
|
# action:
|
||||||
- service: light.turn_off
|
# - service: light.turn_off
|
||||||
entity_id: light.office_lamp
|
# entity_id: light.office_lamp
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user