I have created a combined virtual Temperature / Humidity sensor
It show fixed values in the header until I send data to it and then shows nothng.
From a web browser I send
http://192.168.1.221:6788/json.htm?type ... ue=59.5;97
From Mosquitto I send
mosquitto_pub -h localhost -m '{ "idx" : 186, "nvalue" : 0, "svalue" : "44.0;77" }' -t 'domoticz/in'
From my MQTT device I send
{ "idx" : 0186, "nvalue" : 0, "svalue" : "44.4;88" }
All three examples cause the sensor to show the last seen message with correct time and Date so I asume the syntax is OK.
I have other sensors receiving Temperatures from my MQTT device, also weather info all OK.
The log shows a graph of temperature and humidity OK
But No Values in the sensor Header Bar
have recreated new virtual sensors OK - problem seems to be with combined temperature/humidity
Humidy alone I send
http://192.168.1.221:6788/json.htm?type ... 8&svalue=0
thanks
Temperature Humidity sensor No Display
Moderators: leecollings, remb0
-
parrotface
- Posts: 36
- Joined: Monday 02 February 2015 15:50
- Target OS: Linux
- Domoticz version:
- Location: Cheshire England
- Contact:
-
stlaha2007
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Temperature Humidity sensor No Display
Your last sample purely humidity is correct... nvalue contains the humidity and svalue the humiditystatus [0..5]
According to the json-wiki the temp-hum expects the following: nvalue always 0 (zero), svalue TEMP;HUM;HUM_STAT
So you need to send 21 degreesC 67% humidity NoStatus as 21;67;0
Had simular problem within a bash-script
According to the json-wiki the temp-hum expects the following: nvalue always 0 (zero), svalue TEMP;HUM;HUM_STAT
So you need to send 21 degreesC 67% humidity NoStatus as 21;67;0
Had simular problem within a bash-script
-
parrotface
- Posts: 36
- Joined: Monday 02 February 2015 15:50
- Target OS: Linux
- Domoticz version:
- Location: Cheshire England
- Contact:
Re: Temperature Humidity sensor No Display
Hi
Thanks that works
added ;0 to the end and temp/humidity displays
eg
http://192.168.1.221:6788/json.htm?type ... ue=23;42;0
Many Thanks
Thanks that works
added ;0 to the end and temp/humidity displays
eg
http://192.168.1.221:6788/json.htm?type ... ue=23;42;0
Many Thanks
-
stlaha2007
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: RE: Re: Temperature Humidity sensor No Display
Great to hear it works.parrotface wrote:Hi
Thanks that works
added ;0 to the end and temp/humidity displays
eg
http://192.168.1.221:6788/json.htm?type ... ue=23;42;0
Many Thanks
Little OffTopic:
I noticed, your writing with MQTT to domoticz. I would like to now why and how. As i have several bash scripts that
write with curl through jsonapi, however one's a week or two the http-interface fails to respond.
Which also need to be backgrounded/daemonized eventually.
Who is online
Users browsing this forum: No registered users and 1 guest