device-status-energy.yml hinzugefügt
This commit is contained in:
49
device-status-energy.yml
Normal file
49
device-status-energy.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
blueprint:
|
||||
name: Device Status Based on Power Consumption
|
||||
description: A blueprint to track device status using energy consumption with configurable thresholds and delays.
|
||||
domain: automation
|
||||
input:
|
||||
power_sensor:
|
||||
name: Power Sensor
|
||||
description: Sensor that measures power consumption.
|
||||
selector:
|
||||
entity:
|
||||
domain: sensor
|
||||
threshold:
|
||||
name: Threshold
|
||||
description: Power threshold for "Device is running".
|
||||
default: 3
|
||||
selector:
|
||||
number:
|
||||
min: 1
|
||||
max: 100
|
||||
delay_on:
|
||||
name: Turn-On Delay (Minutes)
|
||||
description: Waiting time before changing the status to "Device is running".
|
||||
default: 1
|
||||
selector:
|
||||
number:
|
||||
min: 0
|
||||
max: 10
|
||||
unit_of_measurement: minutes
|
||||
delay_off:
|
||||
name: Turn-Off Delay (Minutes)
|
||||
description: Waiting time before changing the status to "Device is off".
|
||||
default: 3
|
||||
selector:
|
||||
number:
|
||||
min: 0
|
||||
max: 20
|
||||
unit_of_measurement: minutes
|
||||
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: !input power_sensor
|
||||
above: !input threshold
|
||||
for:
|
||||
minutes: !input delay_on
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: !input power_sensor
|
||||
Reference in New Issue
Block a user