I’ve configured my ‘slimme meter’ through the DSMR sensor platform. I’m receiving the following values:
sensor.power_consumption (has kW values)
sensor.power_consumption_phase_l1 (has kW values)
sensor.power_consumption_phase_l2 (no value)
sensor.power_consumption_phase_l3 (no value)
(same also for production instead of consumption)
I’m exporting these values to Grafana and doing some calculations to get the kWh value. For long-term graphs this is very nice but I would like to have those kWh values also inside HA to show some short-term graphs.
How can I convert the kW values to kWh values, these values are send to HA each 10 seconds so converting each single value will have a performance penalty on my system also. What would be the best approach the archieve my goal to have a daily kWh value inside HA?
I assume that as the reading is provided every 10 seconds, it’s actually an average over those 10 seconds ?
If so that’s 1/360 (as 1 second is 1/3600 the of the hour value)
So a reading of say 2.8kW actually 28kWs (kilo Watt seconds)
So keep adding these into an input number
At the end on the hour divide this number by 3600 to give you kWh
Add 24 of them to give you a days total kWh’s
Sub note:
kW is power
kWh is energy
Different things
So from what you’ve said, your meter is a power meter not an energy meter
I’m not sure what model/type of meter you are using but some of my wall socket switch units reported power consumption from switch on.
The energy reporting features ‘appeared’ after a couple of hours or a few days (in one case) again, not sure as I was not particularly interested in those features at that time.
Whatever the result of your experiences, it would be of immense help to others to benefit from it
Who is the manufacturer ? What is the protocol (z-wave, zigbee, other) ? What is the model ?
Keep us posted
The protocol mentioned here is DSMR: https://www.home-assistant.io/integrations/dsmr/
It’s a Dutch standard to communicate with the meter from the electricity company. All entities are added at once during setup of this integration, it’s not device dependent.
The list of entities @arjanvroege1983 gives is not the complete list of entities this integration generates. As mentioned, there should be “Energy Consumption” entities.
Probably one of my dumbest questions created ever. Your tip to search for energy instead of power was the best. I’ve already have the energy sensors from the DSMR integration. I think that with these sensors and using these together with the Utility Meter integration I should be able to achieve my goal. To thanks for the pointers!