Add scripts for pc button
This commit is contained in:
parent
7b2dbbc6bb
commit
e9c7d4671e
23
scripts/31.pc-button.yaml
Normal file
23
scripts/31.pc-button.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user