1
0
ansible-home-assistant/roles/automations/files/office-computer-button.yaml

27 lines
666 B
YAML
Raw Permalink Normal View History

- id: office_button_light_toggle
2021-10-11 18:15:50 +00:00
alias: '[Office] Button Light'
mode: single
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: script.office_lights_toggle
2021-05-10 10:24:31 +00:00
- id: office_button_wol
2024-04-22 17:12:38 +00:00
alias: '[Office] Button PC On'
2020-12-06 19:47:20 +00:00
trigger:
- device_id: 5b972523e427721ec88e095994f7cc16
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
2022-05-13 22:02:03 +00:00
action:
- service: switch.turn_on
target:
2024-04-22 17:12:38 +00:00
entity_id: switch.computer_outlet
- service: script.pc_pwr_button
2020-12-06 19:47:20 +00:00
mode: single