I am controling my Heat Exchanger unit based on o.a. that relative humidity, and as many before me have noticed the 100% of the RH varies depending on the temperature, so it doesn't always work really well. To work around this I have a shifting setpoint for my system: depending on the outside air's RH the inside RH target value changes. By looking at the logged data I found that my system can make the inside air's RH at most roughly 20% lower than the outside air's RH, so if the difference is over 20% I simply shift the target value up, to avoid having the fans running all day long. Reading about the topic of RH I found formulas that would enable me to calculate the absolute humidity (AH) given a temperature plus a relative humidity. Out of curiosity I wrote this little script that calculates the absolute humidty (AH) in gram per cubic meter for each of my TempHum-devices. I have no application for it (yet?), it is just to show and log the AH-values for now. This is what I get: The script is in my github: https://github.com/rrozema/Domoticz-scr ... dities.lua.
What I did to make this work:
- each of my TempHum devices is named as "<Room name>: TempHum".
- for each TempHum device that I wanted a AH value for I created a virtual sensor of type 'Custom Sensor': .
- then I put the script in the scripts window in Domoticz and enabled it.
- wait for the values to be updated by new incoming temperature or RH values.