Page 1 of 1

humidity status (hum_status) for temp+hum sensors

Posted: Saturday 19 March 2016 20:22
by wojtekb
I wonder, whether it is possible not to pass hum_status parameter for temp_hum sensor. Most of the scripts on the web for DHT22 have the hum_status hardcoded, as DHT22 does not provide the value. But it seems to be mandatory in API. How do you guys solve this issue? Do you hardode the status for 0 - Normal, or somehow calculate it based on the humidity?

Re: humidity status (hum_status) for temp+hum sensors

Posted: Sunday 20 March 2016 12:07
by stlaha2007
hi,
Humidaty Status is based on an algorithem.

I resently asked the same question howto get it into Domoticz.
For an example search my post, about 2-3 weeks ago, for BME280 or someon4 else about BMP280.
A reply on my post is supplied with a script and a link to how the calculate the prediction.

Myself needs to look and addapt that specific part into the example script of Adafruit which i already modified a bit.

In sort: need to get 3 baro-samples over a period of time and store them in memory, and depending on the difference in those time frames, you can set the humidity-status.


Grtz,
Stephan

Re: humidity status (hum_status) for temp+hum sensors

Posted: Sunday 20 March 2016 14:12
by wojtekb
just to understand - i have only dht22. it returns temperature and humidity. I am passing it to domoticz with additional '0' for humidity status "normal". I cold somehow calculate the right status from these (Normal, Dry, Wet, Comfortable) but I don't know the algorithm. Is it based only on humidity (e.g hum>60% => Wet) etc? If yes, what are the good values? or is this algorithm more sophisticated? Your posts about BME280 are about forecast, not hum_status, right?

Re: humidity status (hum_status) for temp+hum sensors

Posted: Sunday 20 March 2016 14:35
by stlaha2007
Sorry just noticed my mistake.
As far as i can find, and thats what i added to the example script, is indeed the ranges from about 70% wet, below 30 Dry, between 30 and 45 Normal, and 45 and 70 comfortable.

Not exactly sure if it has to be depended on temperature as well. But this comes close to the Alecto WeatherStation and Oregon devices i use also.

I have dropped my modified example under weather or scripts subforum where you can find the modification for hum-status. And also posted a question how to make the prediction on pressure.


Grtz,
Stephan