Page 1 of 1

Something is ruining my energy Dashboard

Posted: Sunday 27 July 2025 10:09
by niki_lauda
I have a script that stores the data from my solar panels in a Dummy Electricity (instant and counter) device.
Schermafbeelding 2025-07-27 101705.png
Schermafbeelding 2025-07-27 101705.png (38.71 KiB) Viewed 285 times
Every day, yesterday's revenue is entered as negative in the database.
So my energy dashboard also shows a negative value in today's data.

Anyone have any ideas to solve this?

Re: Something is ruining my energy Dashboard

Posted: Sunday 27 July 2025 10:39
by jvdz
So you feed a day-counter value as the total counter, which is reset to 0 each day, as the Counter value of the Dummy Energy device?
When that is the case you need to retrieve "yesterday's" Counter from the database and add the current day counter to it and feed that as the new current counter.