I have setup some very basic energy monitoring (using the Home Assistant Glow device).
My Glow sensor is named ‘house’.
Using ‘sensor.house_power_consumption’, I can access the current power consumption, or
Using ‘sensor.house_total_energy’, I can access the total consumption (since the ESP device was booted).
However, under the Energy tab, HomeAssistant is doing some calculation to display the total energy used for an individual day. Highlighted in the screenshot.
My question is: How can I access this value (seen as 6.58KWh in the screenshot)?
I would like to access the current value for ‘today’ and check what it is, for automations, etc.
If I can’t access the value directly, perhaps I could re-create it with my own calculation? But I don’t know where to start with this.
I’m a relative novice to Home Assistant. So please go easy if I’ve missed something obvious.
So I guess that there is no way to access the value directly. But with the Utility Meter Helper, we can come close to re-creating it.
I say ‘close’, because I’m not quite sure where the discrepancy comes in, but for me, it’s not 1:1 with the value seen in the Energy Dashboard.
However, it’s very close and I can’t say which one is right and which one is wrong. So I still really appreciate the tip
Is this still the status quo and way to work, that means to e.g. add 4 helpers for each entity to have the day, week, month and year view as the energy panel is providing directly? Would be more than great to avoid creating these 150 helper and select it directly via “virtual” entities or something else.
Something like sensor.aktor_energy_counter:today or sensor.buro_aktor_energy_counter:thisweek
I also need this (today, yesterday, last week etc) and find it very surprising that HA does not offer this natively. Not even a third-party solution seems to be easy…
Totaly agree! The value is there somewhere because you can view it in the energy dashboard so its very surprising there is no way to access these values as entities somewhere…
You can create a “Sensor Group” Helper (via “Group”) and then use the sum of all sensors providing “energy” data that you want to track. After that, you only have to create “Utility Meter” sensors for all timespans you want to expose.
This way, you don’t have to create “Utility Meter” for each Sensor and Timespan.