unit_of_measurement: W
friendly_name: Stue-Køkken-Værelser Power
device_class: power
unit_of_measurement: W
friendly_name: Badeværelse-Gang Power
device_class: power
unit_of_measurement: W
friendly_name: Teknik-Køl-Vask Power
device_class: power
It’s all great and have been running for some days now , but …
right know at 11’o clock my sensor energy_daily_usage says I’ve used 6KWH - I guess that should be from midnight? so 11 hours of consumption?
shelly however says i’ve used 3KWH the last 24H
the power_total sensor seems to be correct. Says the same as shelly itself.
What am I missing ?
BONUS QUESTION: How do I reset the utility_meter? I’ve been looking at the documentation but I need a little more help.
The “remove it from config, restart, and add it back in” doesnt seem to be working - it remembers
While I was writing the post I was wondering if it is because I specified that power_total is unit_of_measurement: “wh” but the shelly sensors is unit_of_measurement: W ?
No. All it does is watch the total energy sensor and keeps track how much it increases over the specified cycle. For this you must feed it with a strictly always increasing energy used sensor.
Use the total energy sensor from the EM3, not the daily energy sensor.
I think I just wrote mono because I wanted to reset the utility meter at some point. As far as I can remember is wasn’t possible unless you had some sort of tariff
Hmm…I’m quite sure that you can not just add the energy from the 3 phases. You have to divide the result with SQRT(3) to get the actual amount that the electrical company registers (note that this is a good thing, less energy spent!). Here’s my calculation.
consumed_energy:
friendly_name: "Total Consumption"
device_class: energy
unit_of_measurement: 'kWh'
value_template: "{{ ((states('sensor.em_channel_a_energy')|float + states('sensor.em_channel_b_energy')|float + states('sensor.em_channel_c_energy')|float)/sqrt(3))|round(2) }}"
availability_template: "{{ not ( is_state('sensor.em_channel_a_energy', 'unavailable') or is_state('sensor.em_channel_b_energy', 'unavailable') or is_state('sensor.em_channel_c_energy', 'unavailable') ) }}"
Hi, interesting. I stumbled accross this when I noticed my 3EM is not reading the same consumption as my energy seller. However, the SQRT(3) does not give me the correct number either… What else can it be?