For the humidity outside i use a DHT22 sensor.
In the wiki of DzVents i've read that DzVents can compute the status (HUM_NORMAL, HUM_COMFORTABLE, HUM_DRY, HUM_WET).
But how can i use the function HUM_COMPUTE?
Or have i write a function by myself, like this example?
Code: Select all
if humidity < 30 then
hum_stat = 0
elseif humidity >= 30 and humidity < 45 then
hum_stat = 1
elseif humidity >= 45 and humidity < 70 then
hum_stat = 2
elseif humidity >= 70 then
hum_stat = 3
end

Greetings,
Piacco