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

24 lines
524 B
YAML

pc_pwr_button:
alias: PC Power press
sequence:
- service: switch.turn_on
target:
entity_id: switch.pc_power_button
- delay:
milliseconds: 200
- service: switch.turn_off
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:
seconds: 5
- service: switch.turn_off
target:
entity_id: switch.pc_power_button