blueprints/automation/device-status-energy.yaml aktualisiert

This commit is contained in:
2025-05-12 14:35:42 +00:00
parent cb3523e27f
commit 5e4407c812

View File

@@ -35,6 +35,12 @@ blueprint:
min: 0 min: 0
max: 20 max: 20
unit_of_measurement: minutes 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 mode: restart
trigger: trigger:
@@ -44,6 +50,17 @@ trigger:
for: for:
minutes: !input delay_on minutes: !input delay_on
action: action:
- service: homeassistant.turn_on - service: input_boolean.turn_on
target: target:
entity_id: !input power_sensor 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