1
0

Add scripts for pc button

This commit is contained in:
Przemek Grondek 2022-09-08 01:47:25 +02:00
parent 7b2dbbc6bb
commit e9c7d4671e

23
scripts/31.pc-button.yaml Normal file
View File

@ -0,0 +1,23 @@
pc_pwr_button:
alias: PC Power press
sequence:
- service: switch.turn_on
target:
entity_id: switch.pc_power_button
- delay:
milliseconds: 100
- service: switch.turn_on
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:
milliseconds: 100
- service: switch.turn_on
target:
entity_id: switch.pc_power_button