1
0
ansible-home-assistant/configuration/automations/computer-button.yaml

58 lines
1.4 KiB
YAML
Raw Normal View History

2020-12-06 19:47:20 +00:00
- id: button-computer-cave-on
2021-01-07 00:48:14 +00:00
alias: '[Computer Cave] Button On'
2020-12-06 19:47:20 +00:00
trigger:
- device_id: 5b972523e427721ec88e095994f7cc16
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- service: light.turn_on
data:
2021-05-06 23:04:02 +00:00
entity_id: light.desk_lightbar
2020-12-06 19:47:20 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2020-12-06 19:47:20 +00:00
- id: button-computer-cave-off
2021-01-07 00:48:14 +00:00
alias: '[Computer Cave] Button Off'
2020-12-06 19:47:20 +00:00
trigger:
- device_id: 5b972523e427721ec88e095994f7cc16
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- service: light.turn_off
data:
2021-05-06 23:04:02 +00:00
entity_id: light.desk_lightbar
2020-12-06 19:47:20 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2020-12-06 19:47:20 +00:00
- id: button-computer-cave-hold-on
2021-01-07 00:48:14 +00:00
alias: '[Computer Cave] Button Hold On'
2020-12-06 19:47:20 +00:00
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: 5b972523e427721ec88e095994f7cc16
command: move_with_on_off
action:
- service: light.turn_on
data:
entity_id: light.tv_lights
2020-12-06 19:47:20 +00:00
mode: single
2021-05-10 10:24:31 +00:00
2020-12-06 19:47:20 +00:00
- id: button-computer-cave-hold-off
2021-01-07 00:48:14 +00:00
alias: '[Computer Cave] Button Hold Off'
2020-12-06 19:47:20 +00:00
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: 5b972523e427721ec88e095994f7cc16
command: move
args:
- 1
- 83
action:
- service: light.turn_off
data:
entity_id: light.tv_lights
2020-12-06 19:47:20 +00:00
mode: single