Open tomlut opened 3 months ago
Thanks Tomlut. I was having the same issue, although not every night. The automation works fine. Once the power sensors are polled HA calculates the energy usage,
I don't use this any more. It was causing other issues. I've gone back to using the core integration and just putting up with the outputs not being shown on the device card.
After working smoothly for a few hours I started getting an error message every minute: "Nothing to query, update() called too soon, must wait {timespan}"
So I disabled the automation and turned polling back on in the integration. One error around midnight seems less of an issue after that. Maybe the core integration is a better solution but I will stick with this for a while.
There is always an option to use REST integration, pull json and parse.
To get this integration to work correctly with the energy dashboard it is necessary to disable polling in the integration system options and to update the sensors manually using an automation. Otherwise the sensors do not reset exactly at midnight, creating havoc with the energy dashboard.
While this is working well it generates an error every night at midnight: