Something strange.
I made a virtual sensor for Temp+Hum+Baro
All looks normal. In Devices I see the sensor and the data field contains the items 0.0C,50%,1010hPa
But after I ran my python/json script this field changed into : 0, 9.0;70.0;1030.03
The values 9.0 70.0 and 1030.03 are ok but what is the 0, at the first position coming from?
Because of this the sensor is not working.
The log file shows that every thing is ok and there is no 0, in the json call.
Who can see what I do wrong?
curl -s "http://192.168.2.235:8080/json.htm?type ... .0;1030.03"
{
"status" : "OK",
"title" : "Update Device"
}
I will attach the Python script to this case.
Strange 0, in the Device data field. (temp/hum/baro) Topic is solved
Moderator: leecollings
-
- Posts: 53
- Joined: Friday 11 December 2020 15:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands Paesens
- Contact:
Strange 0, in the Device data field. (temp/hum/baro)
- Attachments
-
- weer.py.zip
- (779 Bytes) Downloaded 40 times
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
re: Strange 0, in the Device data field. (temp/hum/baro)
This type of sensor expects 5 values in svalue (separated by semicolons).willem9136 wrote: ↑Friday 16 April 2021 13:24 I made a virtual sensor for Temp+Hum+Baro
But after I ran my python/json script this field changed into : 0, 9.0;70.0;1030.03
Who can see what I do wrong?
curl -s "http://192.168.2.235:8080/json.htm?type ... .0;1030.03"
See API / JSON wiki
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: 53
- Joined: Friday 11 December 2020 15:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands Paesens
- Contact:
Re: Strange 0, in the Device data field. (temp/hum/baro)
Solved. Supplied 5 Paramus.
Who is online
Users browsing this forum: No registered users and 1 guest