From 5e4407c812ceb4e383829d21d4cb6166325a9ffd Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 12 May 2025 14:35:42 +0000 Subject: [PATCH] blueprints/automation/device-status-energy.yaml aktualisiert --- .../automation/device-status-energy.yaml | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/blueprints/automation/device-status-energy.yaml b/blueprints/automation/device-status-energy.yaml index 3d943ff..7ceff75 100644 --- a/blueprints/automation/device-status-energy.yaml +++ b/blueprints/automation/device-status-energy.yaml @@ -35,6 +35,12 @@ blueprint: min: 0 max: 20 unit_of_measurement: minutes + status_helper: + name: Device Status Helper + description: An input_boolean helper that tracks device status. + selector: + entity: + domain: input_boolean mode: restart trigger: @@ -44,6 +50,17 @@ trigger: for: minutes: !input delay_on action: - - service: homeassistant.turn_on + - service: input_boolean.turn_on target: - entity_id: !input power_sensor \ No newline at end of file + entity_id: !input status_helper + + - wait_for_trigger: + - platform: numeric_state + entity_id: !input power_sensor + below: !input threshold + for: + minutes: !input delay_off + + - service: input_boolean.turn_off + target: + entity_id: !input status_helper