Appliance Power Monitor Blueprint With Elapsed Time and Energy Used Variables

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:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

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.

1 Like

Looks very good @Jhonattan-Souza , i am kinda confused on what is the difference between power and energy… can you provide an example?
Also a good idea would be to calculate the cost of the specific usage based on the cost value set on the energy dashboard, then push notification that includes the cost when job is finished
can this be done?

nice
i’m quite new to home assistant so i do have a question.
In ‘Elapsed Time and Energy Data Input text entity to store the elapsed time and energy data.’ no entities show up, so how do i create this entity?

Hi @ptrnmgr , yes, you need to create the input text!

Power = The actual consuming of the device, when it is running live.
Energy = Accumulate kwh over the time, its always increasing.

I’ll take a look into the possibility of using the energy dashboard tariffs !

thx, i’ll have a look