From 2f286a305236000bc335c07df9f93f4c6d40fbf7 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 8 Sep 2022 19:12:25 +0200 Subject: [PATCH] Fix pc button delay --- scripts/31.pc-button.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/31.pc-button.yaml b/scripts/31.pc-button.yaml index b1b8374..882c875 100644 --- a/scripts/31.pc-button.yaml +++ b/scripts/31.pc-button.yaml @@ -6,7 +6,7 @@ pc_pwr_button: entity_id: switch.pc_power_button - delay: milliseconds: 100 - - service: switch.turn_on + - service: switch.turn_off target: entity_id: switch.pc_power_button @@ -17,7 +17,7 @@ pc_pwr_button_hold: target: entity_id: switch.pc_power_button - delay: - milliseconds: 100 - - service: switch.turn_on + seconds: 5 + - service: switch.turn_off target: entity_id: switch.pc_power_button