Add kitchen button
This commit is contained in:
parent
e5bab23887
commit
cd2cb16a89
87
automations/files/button-kitchen.yaml
Normal file
87
automations/files/button-kitchen.yaml
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
- id: button-kitchen-on
|
||||||
|
alias: Button On computer cave
|
||||||
|
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: Button Off computer cave
|
||||||
|
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: Button Hold On computer cave
|
||||||
|
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: Button Hold Off computer cave
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user