Temperature Humidity sensor No Display

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
parrotface
Posts: 36
Joined: Monday 02 February 2015 15:50
Target OS: Linux
Domoticz version:
Location: Cheshire England
Contact:

Temperature Humidity sensor No Display

Post by parrotface »

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
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Temperature Humidity sensor No Display

Post by stlaha2007 »

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 ;-)
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

Post by parrotface »

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
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: RE: Re: Temperature Humidity sensor No Display

Post by stlaha2007 »

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
Great to hear it works.

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest