Created
August 13, 2022 13:53
-
-
Save Mrtenz/7c47f3409db86079318374b9080115d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Low Power Detection | |
description: > | |
Send a notification when low power is detected for a certain amount of time. | |
Useful for sending notifications when the washing machine or drying machine | |
is finished, for example. | |
domain: automation | |
input: | |
power_consumption: | |
name: Power Consumption | |
description: The current power consumption (in Watt) of the device. | |
selector: | |
entity: | |
domain: sensor | |
device_class: power | |
consumption: | |
name: Start Consumption | |
description: > | |
The power consumption (in Watt) that the sensor must be above, to | |
consider the device started. If the consumption is below this value for | |
the specified amount of time, the notification will be triggered. | |
default: 100 | |
selector: | |
number: | |
min: 1 | |
max: 1000 | |
mode: slider | |
unit_of_measurement: "W" | |
duration: | |
name: Duration | |
description: > | |
The amount of time the sensor must be below the specified consumption, | |
to consider the device finished. | |
selector: | |
duration: | |
post_action: | |
name: Action | |
description: The action to run after the duration. | |
selector: | |
action: | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
- platform: numeric_state | |
entity_id: !input power_consumption | |
above: !input consumption | |
action: | |
- wait_for_trigger: | |
- platform: numeric_state | |
entity_id: !input power_consumption | |
below: !input consumption | |
for: !input duration | |
- parallel: !input post_action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment