Something is ruining my energy Dashboard Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
niki_lauda
Posts: 119
Joined: Saturday 31 August 2013 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Eindhoven (NL)
Contact:

Something is ruining my energy Dashboard

Post 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 279 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?
Attachments
Schermafbeelding 2025-07-27 100548.png
Schermafbeelding 2025-07-27 100548.png (81.67 KiB) Viewed 283 times
Schermafbeelding 2025-07-27 094853.jpg
Schermafbeelding 2025-07-27 094853.jpg (75.42 KiB) Viewed 283 times
User avatar
jvdz
Posts: 2346
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Something is ruining my energy Dashboard

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest