I am creating a utility meter at the moment. And I found out that there are supposed to be sensors “total” and “energy”.
Note that with the Shelly you have an option of getting total or energy data. total records energy in Wh, and is accumulated in device’s non-volatile memory. Whilst energy and returned_energy do not survive a power cycle or reboot (i.e. stored in volatile memory)
But I see only “energy” sensor in my entities while connected over WiFi via the built-in HA integration. And I tested it out and apparently all data is lost from the energy sensor when I disconnected power of the shelly device.
So the question is how to create a utility meter and preserve the data? Do I have to use MQTT and custom sensors in this case?
a bit side topic here, I also have some Shelly Plus PM’s, but in the energy configuration page I can select them to be monitored, but they immediately show this status:
Has anyone managed to solve the issue with negative consumption when the equipment is not working mentioned by @Shaad and @jrhbcn . I have the same problem, but with a dishwasher. I have regular negative values and sometimes spikes of power when the dishwasher is not working.
I installed a Shelly EM with 2 clamps last week.
In the Shelly app the 2 “devices” are visual, but in Home Assistant, I only see 1 channel (first clamp).
Is there a way to add te second channel/clamp in HA (buildin Shelly HA integration)?
Hi Guys I’ve installed the Shelly Em and now have 3 main sensors reporting
sensor.energy_monitor_channel_1_energy
sensor.energy_monitor_channel_1_power
sensor.energy_monitor_channel_1_voltage
I’ve set up the utility meter integration and have the relevant 6 sensors
i am now wanting a sensor/card to display the daily, weekly, & monthly costs so i found this a while back and have edited it to my electricity rates but i’m obviously wrong as the numbers are crazy.
My elec rates are
23.25p per kWh peak
12.78p per kWh offpeak
and i have a daily standing charge of 24.47p
How do i add that in the code below?
Thanls
Thanks i’ve swapped it.
With the costs is this the correct way to calculate my tarrif charges value_template: "{{ (((states('sensor.daily_energy_peak') | float * 0.2325) + (states('sensor.daily_energy_offpeak') | float) * 0.1278 ) + 0.2447) | round(2) }}"
Hi. I monitor 3-phase home power grid with Shelly 3EM. But I see 3 sensors - one per phase. How to combine those three into one that I can use for the built-in HA energy monitoring and also my own custom dashboards?
It is correct as I know more or less the power consumption of the machine I’m using.
However, the reading I get on the Home Assitant Energy Meter, for the same period of time, using /emeter/0/energy as source, is 14.900 which is supposed to be the reading in Watt-Minute.
If I translate it to kWh that would be 0,25 which doesn’t make sense considering that the power draw is on average 1.600 Watts over the hour as seen from the graph, which should be around 1,6 kWh.