24 lines
524 B
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
|