I've been trying to update the history of a managed counter with limited success.
My main problem currently is that decimals does not seem to be supported. Anyone know of a solution or workaround for this?
So the managed counter it self can hold and display decimal values, and the history graph seems to have some support for viewing decimal values but it seems the database or the `updateHistory` dzVents function does not support decimal values.
Example:
Code: Select all
domoticz.devices(166).updateHistory(domoticz.time.rawDateTime, '0.678;0.11')
Code: Select all
sqlite> select * from meter where devicerowid =166;
166|0|0|2021-10-03 10:58:10
string format ('0.678')
number format (0.678)
sqlite float (0.678f & '0.678f' )
and even crazy desperate things such as 678 / 1000
But it always ends up as an integer in the database (in this case 0).