Thanks, the Shelly 3EM is correctly installed and its working fine out of script.
the template is checked again, but there are no errors from my point of view.
but, I’ve one specialised situation at home: my shelly 3em monitors all power consumption without my washing machine and the dryer, they are not covered by the 3EM.
So to include the dryer and the washing machine, I use 2 additional shelly plug s for each of them.
these two plugS were also included with their power sensors in the import template, but not in the export template (because I thought the only export which can be happened will be monitored by the Shelly 3em).
should I add the two plugS into the export template also?
Additional Info:
last couple days I was away due to holiday and there were no power consumption in my home except the base load.
what I noticed is, that every time the solar production rise (see turquoise line peaks) the power_import (called “Netzbezug”) also rises.
Yes it needs to be included in the export also, The import and export will not calculate correctly unless you include all the energy the house is using.
Why isn’t shelly clamps around the mains coming in from the street?
Using additional sensors will add more error.
Okay, I added the two shelly plugS into the export template - check that today (or tomorrow, because it will be cloudy day )
you’re right, if I can catch all power consumption with the 3 EM, that would be the best, but its not possible. My power sub-distribution is in my ground floor und the dryer and washing machine are in the basement. the electricity meter (the only position to catch all is too far away from my network).
Just be aware that it may not be accurate all the time, as there will be measurement error and also timing issues as the sensors will update at different times, if there is a change in the loads one sensor will update before the other and so the NET import/export will not be accurate till all sensors update.
I had to install another WiFi AP in my network just for my Shelly in the meter box.
This seems to be also true for the energy dashboard graph. Everything is rounded to 1 decimal, eg. 0,8kWh. For me this leads to the problem, that low import or export values (I guess <0.05kWh) are “disappearing” in the graph, as shown in the screenshot.
Any way to fix this behavior ?
Try changing to round: 2 in the following Sensors:
Sensor for Riemann sum of energy import (W → Wh)
Sensor for Riemann sum of energy export (W → Wh)
Sensor for Riemann sum of energy consumption (W → Wh)
Is is possible that your Data will be controlled by the home assistant Date controller? I mean, i would like to see all the correct data form the past. Like the stats form 1st may or so.
thanks for the templates, they work pretty well for me so far.
The only issue I have is that several times per hour the value for the sensor “power comsumption” shows “NaNw”.
To the same time there are warnings in the homeassistant.log (
Check sensor.solar_01_power_consumption is returning a positive number or 0 at the time the errors are occuring, it would seem that it may not be, this would be cause of your errors.
Also updating every two minutes it not really fast enough, can it update any faster?
That was because i was generating solar so i didn’t import power at that moment.
sensor.power_import now 1.7 kWh
sensor.energy_import_sum 10.1 kWh
sensor.energy_import_daily 1.7 kWh
the main problem is i can’t set the power import in the energy dashboard, this problem occurs only in the energy dashboard menu for some reason i can’t select power import, it doesn’t even display it. but outside of the dash no problem