1
0
ansible-home-assistant/automations/files/kitchen-button.yaml

87 lines
2.2 KiB
YAML
Raw Normal View History

2020-12-29 20:45:59 +00:00
- id: button-kitchen-on
2021-01-07 00:48:14 +00:00
alias: '[Kitchen] Button On'
2020-12-29 20:45:59 +00:00
trigger:
- device_id: a47c928b108240ed8866f9f7a70bc844
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: [ ]
action:
- service: light.turn_on
data:
entity_id: light.kitchen_sink_lighstrip
mode: single
- id: button-kitchen-off
2021-01-07 00:48:14 +00:00
alias: '[Kitchen] Button Off'
2020-12-29 20:45:59 +00:00
trigger:
- device_id: a47c928b108240ed8866f9f7a70bc844
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
condition: [ ]
action:
- service: light.turn_off
data:
entity_id: light.kitchen_sink_lighstrip
mode: single
- id: button-kitchen-hold-on
2021-01-07 00:48:14 +00:00
alias: '[Kitchen] Button Hold On'
2020-12-29 20:45:59 +00:00
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: a47c928b108240ed8866f9f7a70bc844
command: move_with_on_off
condition: [ ]
action:
- service: light.turn_on
data:
entity_id:
- light.kitchen_01
- light.kitchen_02
- light.kitchen_03
- light.kitchen_04
- light.kitchen_05
- light.kitchen_06
- light.kitchen_07
- light.kitchen_08
- light.kitchen_09
- light.kitchen_10
- light.kitchen_11
- light.kitchen_12
- light.kitchen_13
- light.kitchen_14
mode: single
- id: button-kitchen-hold-off
2021-01-07 00:48:14 +00:00
alias: '[Kitchen] Button Hold Off'
2020-12-29 20:45:59 +00:00
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: a47c928b108240ed8866f9f7a70bc844
command: move
args:
- 1
- 83
condition: [ ]
action:
- service: light.turn_off
data:
entity_id:
- light.kitchen_01
- light.kitchen_02
- light.kitchen_03
- light.kitchen_04
- light.kitchen_05
- light.kitchen_06
- light.kitchen_07
- light.kitchen_08
- light.kitchen_09
- light.kitchen_10
- light.kitchen_11
- light.kitchen_12
- light.kitchen_13
- light.kitchen_14
mode: single