ha-emporia-vue icon indicating copy to clipboard operation
ha-emporia-vue copied to clipboard

Energy Dashboard 2021.9.0, Emporia Vue fails with Unexpected state class, does not have the expected state class 'total_increasing'

Open alvinchen1 opened this issue 2 years ago • 9 comments

Everything was working splendidly in 2021.8.8, where 1 Day Entities were working in both the Grid Consumption and Individual Device fields. But update to 2021.9.0 now cannot use entities because they lack the attribute 'total_increasing'

https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes

alvinchen1 avatar Sep 02 '21 00:09 alvinchen1

Try reinstalling the "master" version through HACS, it's got some changes that were made for 2021.9 but don't work with 2021.8 and might fix this problem.

magico13 avatar Sep 02 '21 01:09 magico13

👍 Nice, I see that the state_class changed to total_increasing. I think that might fix my issue. I won't know until later today/tomorrow because I already have 5 hours in Energy Dashboard with the old state_class, and Energy Dashboard was summing all values (previous and current) at each interval, instead of setting the value at the interval.

image

I certainly have not used 27 kWh during the 5 hours I've been asleep. Emporia say 4.3 today, Energy Dashboard says 23. I guess I will know in the next few hours if it is acting like it should, and will report back tomorrow if my dashboarrd is completely corrected.

Thanks again for your work.

alvinchen1 avatar Sep 02 '21 09:09 alvinchen1

I had the same error and reloading MASTER fixed it. As well I had 2 entries for cost that said unknown. Now they have readings again. Thanks again, Grey

Grey-Lancaster avatar Sep 02 '21 12:09 Grey-Lancaster

emporia HA

Even after reinstaled, still with this problems. Can you help? Regards

jbmk2 avatar Sep 03 '21 11:09 jbmk2

What did you reinstall? In HACS go to the integration>3 dots on right>reinstall> from the dropdown select Master

image

Grey-Lancaster avatar Sep 03 '21 12:09 Grey-Lancaster

I'm going to try to get an update out today that's got the current master changes and flip the solar production to positive, which should at least clear those errors.

magico13 avatar Sep 03 '21 12:09 magico13

OK, master installed, now only missing the solar production to positive. Thanks :-)

jbmk2 avatar Sep 03 '21 13:09 jbmk2

The master works for me now. Isn't Mains to Grid sensor is the solar production value? And that's already positive for me. Btw thank you for adding Balance sensor :)

skynet01 avatar Sep 03 '21 19:09 skynet01

Isn't Mains to Grid sensor is the solar production value

If you have a clamp on the wire coming from your inverter to your breaker box you can measure what's coming from the inverter directly. Because your house will use some of the power that number should be bigger than the MainsToGrid value. An example, if you have 1kw of solar coming in and 1kw of power used by your house, the MainsToGrid will be 0 and MainsFromGrid will also be 0.

As for the balance sensor, it started coming back in the new API calls so it actually got automatically added without me doing any extra work, so I can't claim any real credit for that, haha.

magico13 avatar Sep 03 '21 19:09 magico13

Seems to be resolved. Closing.

alvinchen1 avatar Aug 09 '22 12:08 alvinchen1