Hello,
so I was able to make the tag be stored in the database and the difference calculated per button click.
I would try to activate this tag (button) always at 23:59 and the other one always on the 1st of the month at 0:01.
This would give me value every day and value every month.
But I would like the date and only the energy difference to be displayed in the table of differences. I tried removing and adding in the scripts but it didn't affect the columns. How to remove the column I don't want to display and rename the one I want.
I created a second database, a second table, made a copy of the scripts, renamed the values in the copies of the scripts for the second database and table.
The second table doesn't work at all. the columns don't even appear even though it's a copy of the first table...
I'm running out of ideas to try.