What am I missing? (blockly for humidifer based on RH and outside temp)
Posted: Wednesday 11 January 2017 20:14
Hi everyone,
So I made this event in blockly that worked correctly yesterday. It basically turns on a humidifier in our bedroom based on outside temperature and current relative humidity in our bedroom. If it's colder outside it will only run until RH is around 15% (cold as in -25 to -30). If, on the other hand its more like -2, it will run until the humidity is at 40% or higher.
Does anyone see what I'm apparently missing?
When I get a reading in the log from my thermometer in the bedroom nothing more happens in the log. It's as if the if statements in the blockly never become true, but I just can't see why.
Edit:
I'm thinking I might have to rewrite this in LUA, but it's quite an obstacle to overcome for me. The ideal solution would be to skip blocky and instead write a good lua script with an algorithm that seamlessly converts the below numbers into whether the humidifer should be on or off.
E.g. the algorithm would check and if temp is -15, it would run the humidifier until the RH is at around 22.5%.
Recommended levels of indoor relative humiditiy based on outdoor temperature:
Outside temp Max indoor RH at 20C temp
-30 or colder 15%
-30 to -24 20%
-24 to -16 25%
-18 to -12 20%
-12 to 0 40%
So I made this event in blockly that worked correctly yesterday. It basically turns on a humidifier in our bedroom based on outside temperature and current relative humidity in our bedroom. If it's colder outside it will only run until RH is around 15% (cold as in -25 to -30). If, on the other hand its more like -2, it will run until the humidity is at 40% or higher.
Does anyone see what I'm apparently missing?
When I get a reading in the log from my thermometer in the bedroom nothing more happens in the log. It's as if the if statements in the blockly never become true, but I just can't see why.
Edit:
I'm thinking I might have to rewrite this in LUA, but it's quite an obstacle to overcome for me. The ideal solution would be to skip blocky and instead write a good lua script with an algorithm that seamlessly converts the below numbers into whether the humidifer should be on or off.
E.g. the algorithm would check and if temp is -15, it would run the humidifier until the RH is at around 22.5%.
Recommended levels of indoor relative humiditiy based on outdoor temperature:
Outside temp Max indoor RH at 20C temp
-30 or colder 15%
-30 to -24 20%
-24 to -16 25%
-18 to -12 20%
-12 to 0 40%