blueprints/automation/device-status-energy.yaml aktualisiert
This commit is contained in:
@@ -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 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
|
||||
|
||||
Reference in New Issue
Block a user