This blueprint allows you to monitor the activity of a home appliance based on its power consumption (in watts) and trigger actions based on start, running, and stop events. You can configure the entities for power and energy consumption, as well as set thresholds for starting and finishing. You can use the variables {{ elapsed_time }}
, {{ energy_used }}
, and {{ event_type }}
in all the steps (start, running, and stop).
The purpose of this blueprint is to be simple and use variables to determine the duration and energy consumption while the appliance is running, using the least number of input_texts possible. There are other solutions available on the forum, but none of them met this specific scenario that I needed. If there’s a better way to achieve this, please don’t hesitate to let me know.
Features
- Monitors power consumption (in watts) of a home appliance.
- Triggers actions based on start, running, and stop events.
- Configurable starting and finishing power thresholds.
- Stores elapsed time and energy data.
- Variables
{{ elapsed_time }}
,{{ energy_used }}
, and{{ event_type }}
available in all steps (start, running, and stop).
Inputs
-
power_entity
: Entity representing the power consumption of the appliance (sensor domain). -
energy_entity
: Entity representing the energy consumption of the appliance (sensor domain). -
start_threshold
: Power threshold above which we assume the appliance has started (default: 1 W). -
finish_threshold
: Power threshold below which we assume the appliance has finished (default: 1 W). -
elapsed_time_energy_data
: Input text entity to store the elapsed time and energy data (input_text domain). -
on_start
: Actions to perform when the appliance starts. -
on_running
: Actions to perform when the appliance is running. -
on_stop
: Actions to perform when the appliance stops.
Usage
To use this blueprint, simply import it into your Home Assistant instance using the following GitHub link:
After importing, create a new automation using this blueprint, select the appropriate entities and actions for your use case, and enjoy your new appliance power monitor!
If you have any questions or feedback, please let me know in the comments below.