87 lines
2.2 KiB
YAML
87 lines
2.2 KiB
YAML
- id: button-kitchen-on
|
|
alias: '[Kitchen] Button On'
|
|
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
|
|
alias: '[Kitchen] Button Off'
|
|
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
|
|
alias: '[Kitchen] Button Hold On'
|
|
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
|
|
alias: '[Kitchen] Button Hold Off'
|
|
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 |