Critical notification if overall consumption of home appliances exceeds a threshold
Emiliano Guerzoni
Project Manager / Technical Manager renewables/energy efficiency projects | Demand Manager digital energy domain at algoWatt
Hi folks and welcome to a new episode of my daily newsletter?Tips & Tricks on HomeAssistant.
If you get a new e-mail about the availability of this article it's not spam! Please open it, react and comment.
It will be appreciated and will give me a much better idea of who is actually reading all this stuff.
Thank you so much!???
As we have seen in several articles of this newsletter, Home Assistant can help us in monitoring electrical consumptions of any power socket we have at home.
We only need to use a sensor ables to get the electrical consumptions, install and configure it in order to get it managed by Home Assistant and that's it!
To do that I'm using the Aeotec nano switch that's perfectly integrated in Home Assistant thanks to the Z-Wave integration.
Having one Aeotec nano switch sensor for each high energy consuming appliance can help us know if we are exceeding the maximum power threshold of our home meter.
Today I want to introduce how to be notified in case the overall consumption of the following appliances is exceeding 3kW:
Hardware configuration
领英推荐
Software configuration
Home Assistant code (yaml) / procedure
The following video will show you how to configure:
This is the notification I've got:
And... this is the code behind the automation:
alias: Android notification - Maximum power home meter ENEL exceeding
description: Android notification - Maximum power home meter ENEL exceeding
trigger:
? - platform: template
? ? value_template: >-
? ? ? {{states('sensor.consumo_elettrodomestici') |float >
? ? ? states('input_number.max_soglia_contatore_enel') |float }}
condition: []
action:
? - service: notify.mobile_app_pocox3nfc
? ? data:
? ? ? message: >-
? ? ? ? {{
? ? ? ? states[trigger.entity_id.split(".")[0]][trigger.entity_id.split(".")[1]].name
? ? ? ? }} is {{states[trigger.entity_id].state}} W
? ? ? data:
? ? ? ? ttl: 0
? ? ? ? priority: high
? ? ? ? channel: alarm_stream_max
mode: single
Thank you for reading and watching. ?? I hope you have enjoyed this article and video too.
I'm available for any feedback so, feel free to contact me or share your thoughts in the comments section below.
Your feedbacks will be very appreciated!