Add configuration for button
This commit is contained in:
parent
52d2edf947
commit
e80e8a834b
67
automations/files/button-computer-cave.yaml
Normal file
67
automations/files/button-computer-cave.yaml
Normal file
@ -0,0 +1,67 @@
|
||||
- id: button-computer-cave-on
|
||||
alias: Button On computer cave
|
||||
trigger:
|
||||
- device_id: 5b972523e427721ec88e095994f7cc16
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: turn_on
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id:
|
||||
- light.desk_lamp
|
||||
mode: single
|
||||
- id: button-computer-cave-off
|
||||
alias: Button Off computer cave
|
||||
trigger:
|
||||
- device_id: 5b972523e427721ec88e095994f7cc16
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: turn_off
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.desk_lamp
|
||||
mode: single
|
||||
- id: button-computer-cave-hold-on
|
||||
alias: Button Hold On computer cave
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_id: 5b972523e427721ec88e095994f7cc16
|
||||
command: move_with_on_off
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id:
|
||||
- light.tv_left
|
||||
- light.tv_middle
|
||||
- light.tv_right
|
||||
mode: single
|
||||
- id: button-computer-cave-hold-off
|
||||
alias: Button Hold Off computer cave
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_id: 5b972523e427721ec88e095994f7cc16
|
||||
command: move
|
||||
args:
|
||||
- 1
|
||||
- 83
|
||||
condition: []
|
||||
action:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.tv_left
|
||||
- light.tv_middle
|
||||
- light.tv_right
|
||||
mode: single
|
Loading…
Reference in New Issue
Block a user