This is the setup in the Domoticz Settings

This is the Water meter device

This is the cost report, how on earth is the cost so high?

17m3 should be €18.41
Moderator: leecollings



It does not appear to be, but I also changed my cost per m3 today. It was set around 0.80 m3 and I have now set it to the 1.40m3 as that is more inline with the actual cost including tax etc.waltervl wrote: Monday 24 February 2025 13:05 Does it have the same kind of cost deviation in the water meter graphs (month/year)?



Are those reports calculated on the fly, or is there a schedule during the night when it rolls over?waltervl wrote: Monday 24 February 2025 19:05 My first initial tests on a water counter shows correct costing data.
Perhaps check your database in the cost column to see what is going on. You can make a backup through menu Setup - settings and open the backup database with online sqlite viewer: https://sqliteviewer.app/
Okay, so the cost is calculated at night and put in the column, so it is not retroactively recalculated if I change the cost per m3?waltervl wrote: Monday 24 February 2025 20:16 There is a cost column in meter table and a daily nightly rollup to the meter_calendar table.
The cost column is introduced somewhere in a 2024 release so empty for old values.
So once the cost is in the DB, it is not affected anymore by price changes?waltervl wrote: Monday 24 February 2025 23:31 The cost is calculated per 5 minutes in meter table and rolled up at midnight and put in meter_calendar table.
Code: Select all
UPDATE Meter_Calendar
SET Price = ROUND(Value * 0.00141, 4)
WHERE DeviceRowID = 570;
Code: Select all
VACUUM;
ANALYZE;
Dbeaver Community is open source and free alsogizmocuz wrote: Monday 03 March 2025 10:41 Or you can use 'SQLite Expert Personal Edition' for a free database management application
https://dbeaver.io/download/gizmocuz wrote: Monday 03 March 2025 14:54 Hmmm strange, went to their website
https://dbeaver.com/
And you have to pay for the 'lite' version as well...
If it's working, its working![]()
Users browsing this forum: No registered users and 0 guests