From e9c7d4671e454921d9703f64d183c0db610d3a30 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 8 Sep 2022 01:47:25 +0200 Subject: [PATCH] Add scripts for pc button --- scripts/31.pc-button.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/31.pc-button.yaml 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