diff --git a/scripts/31.pc-button.yaml b/scripts/31.pc-button.yaml new file mode 100644 index 0000000..b1b8374 --- /dev/null +++ b/scripts/31.pc-button.yaml @@ -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