In Spain we have “Energy Hourly Balance” for Solar instalations. Each hourly we need to paid or get a discount after calculate the total of grid consumption - grid inyection, so I made a component get the consumption and inyection net values.
I have a main entity of power consumption from the grid:
sensor.0_electricity_meter_total_forward_active_energy
I convert using utility meter (Utility Meter - Home Assistant) into two entities (peak and offpeak):
sensor.total_forward_active_energy_peak
and
sensor.total_forward_active_energy_offpeak
So I would like to add a total of three entities to your addon:
I am working in multiconfiguration version (it is the reason of unique_id migration hell…)
The reason of 5 second offset is because HA stats use from XX:00:00 to XX:59:59, and, if HA have big load, can take a few seconds in save the data it will save at XX:00:01, so HA take it to next hour.
Maybe can use a lower offset (1 second maybe), but, most power metter sensors update data in 10-60 seconds, so…
This is newly added second “device” and its using english names.
Do you plan in addon to reset value for net_exported and net_imported?
At least in 2023 in Poland we have some limit (for most of people 3000kWh), before exceading it price for kWh is lower. Its still unknown if for 2024 it will be the same but it would be nice if addon at midnight new years eve will resets its value, in that way in next year we will be able to monitor our limit for import netto value.
Thanks!
btw, can I send you some money for “beer” to appreciate your work?
edit
And maybe you can translate description to English in HACS
You translate manually the name to english before update?
It is not necessary
Ams… yeah… And the title too… it is beta, everything is allowed!
For these, i think that a utility meter is better option, because you will have the complete import/export in the net values and the anual control in another sensor that you can reset when you need it.
For first “device” i renamed entites to own polish names (old version). For second “device” those from my screen were not renamed, this is how addon created them (Beta4).