1
0
ansible-home-assistant/roles/scripts/files/31.pc-button.yaml

24 lines
524 B
YAML
Raw Normal View History

2022-09-07 23:47:25 +00:00
pc_pwr_button:
alias: PC Power press
sequence:
- service: switch.turn_on
target:
entity_id: switch.pc_power_button
- delay:
2022-10-26 10:29:20 +00:00
milliseconds: 200
2022-09-08 17:12:25 +00:00
- service: switch.turn_off
2022-09-07 23:47:25 +00:00
target:
entity_id: switch.pc_power_button
pc_pwr_button_hold:
alias: PC Power hold
sequence:
- service: switch.turn_on
target:
entity_id: switch.pc_power_button
- delay:
2022-09-08 17:12:25 +00:00
seconds: 5
- service: switch.turn_off
2022-09-07 23:47:25 +00:00
target:
entity_id: switch.pc_power_button