-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home Assistant Energy Page #80
Comments
It looks like there was a fix to the default behavior of Total Daily Energy. Try changing state_class: measurement to state_class: total_increasing |
Yes that did it. Took a day to correct itself as expected. Might I suggest that get added to example YAML? Thanks again! |
Yes, I'll definitely change it in the examples. Thanks for bringing this to light! |
oh, I forgot to ask. Was state_class added automatically (as stated in the forum thread), or is that something you added? I'm trying to figure out if it explicitly needs to be in the config. |
I had for the main total energy sensor in YAML and I had added it at some point. I believe from an online example. That did not work and it complained of no last reset parameter as we said. Based on your suggestion I changed to: And it works but it may have also worked if I had just deleted state_class: "measurement". Didn't try that. |
got it! Thanks for your help! |
This had been reporting on Energy Page completely however now while bars in individual devices are still reporting, the total grid energy graph is not. When I go to Energy configuration in home assistant I see its complaining:
Last reset missing
The following entities have state class 'measurement' but 'last_reset' is missing:
sensor.pm_main_total_daily_kwh_farmbell
Is there new configuration in ESPhome YAML file? I don't see this last reset aspect in the docs.
Here is my current YAML for these sensors:
`#kWh Farmbell Daily
name: ${disp_name} Total Daily kWh Farmbell
power_id: totalWatts
filters:
unit_of_measurement: kWh
device_class: "energy"
state_class: "measurement"
#kWh Pool
name: ${disp_name} Total Daily kWh Pool
power_id: totalWattsPool
filters:
unit_of_measurement: kWh
#kWh Upstairs AC
name: ${disp_name} Total Daily kWh Upstairs AC
power_id: totalWattsUpAC
filters:
unit_of_measurement: kWh
#kWh Downstairs AC
name: ${disp_name} Total Daily kWh Downstairs AC
power_id: totalWattsDownAC
filters:
unit_of_measurement: kWh
switch:
name: ${disp_name} Restart
time:
id: sntp_time `
Meter has been flawless by the way thanks!
Thanks,
Chris
The text was updated successfully, but these errors were encountered: