From bbad2284b3a4eceb6b28b23dbd9828218de62664 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 29 Aug 2023 23:56:28 +0200 Subject: [PATCH] Add automation to recover rack outlet turning itself off --- configuration/automations/rack.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configuration/automations/rack.yaml b/configuration/automations/rack.yaml index 8ec184f..632c5e6 100644 --- a/configuration/automations/rack.yaml +++ b/configuration/automations/rack.yaml @@ -11,3 +11,20 @@ data: {} target: entity_id: switch.printer_switch + +- id: rack_recover_turning_off + alias: "[Rack] Recover turning off" + mode: single + trigger: + - platform: state + entity_id: + - switch.rack_outlet_switch + to: "off" + for: + hours: 0 + minutes: 0 + seconds: 30 + action: + - service: switch.turn_on + target: + entity_id: switch.rack_outlet_switch