Time sensor value
Posted: Tuesday 06 August 2019 23:13
I would like to store a time value (in seconds) for virtual sensor.
This works for two types:
- Custom Sensor
- Counter, with subtype: Counter
But large values get converted to an exponent value like '7.38858e+06 seconds' (= 85 days) instead of regular number.
Can this behaviour turned off?
Or even better: is there a type to store seconds/time? I have already found a sensor of the type 'Counter' with the subtype 'Time'. But I can't figure out how to store data in it (Domoticz keeps showing the value as '?'). I can't find it in the documentation (https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s).
This works for two types:
- Custom Sensor
- Counter, with subtype: Counter
But large values get converted to an exponent value like '7.38858e+06 seconds' (= 85 days) instead of regular number.
Can this behaviour turned off?
Or even better: is there a type to store seconds/time? I have already found a sensor of the type 'Counter' with the subtype 'Time'. But I can't figure out how to store data in it (Domoticz keeps showing the value as '?'). I can't find it in the documentation (https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s).