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).
Time sensor value Topic is solved
Moderators: leecollings, remb0
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Time sensor value
Would it be an option to store it in a text sensor ?
Code: Select all
http://IP:PORT/json.htm?type=command¶m=udevice&idx=2268&nvalue=0&svalue=123456789012345678901234567890
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 3
- Joined: Tuesday 06 August 2019 23:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Time sensor value
Thanks. Yes, I used a text sensor in this case.waaren wrote: ↑Wednesday 07 August 2019 0:42Would it be an option to store it in a text sensor ?largeNumber.pngCode: Select all
http://IP:PORT/json.htm?type=command¶m=udevice&idx=2268&nvalue=0&svalue=123456789012345678901234567890
Who is online
Users browsing this forum: No registered users and 1 guest