Humidity controlled bathroom dryer during and after showering or sauna
-
@BulldogLowell
You mean that I could request data from other sensors? How, and is that reliable?Try pushing from vera by creating a scene that runs regularly (e.g. every 5 minutes) and insert this luup code:
local temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 60) -- 60 is the device id of the WeatherUnderground 'sensor' luup.call_action("urn:upnp-arduino-cc:serviceId:arduino1", "SendCommand", {radioId="11;3", variableId="VAR_1", value=temp}, 85) -- 85 is the device id of the node to which you are transmittingyou have to modify the parameters, of course, but you get the picture....
-
Try pushing from vera by creating a scene that runs regularly (e.g. every 5 minutes) and insert this luup code:
local temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 60) -- 60 is the device id of the WeatherUnderground 'sensor' luup.call_action("urn:upnp-arduino-cc:serviceId:arduino1", "SendCommand", {radioId="11;3", variableId="VAR_1", value=temp}, 85) -- 85 is the device id of the node to which you are transmittingyou have to modify the parameters, of course, but you get the picture....
@BulldogLowell said:
Try pushing from vera by creating a scene that runs regularly (e.g. every 5 minutes) and insert this luup code:
local temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 60) -- 60 is the device id of the WeatherUnderground 'sensor' luup.call_action("urn:upnp-arduino-cc:serviceId:arduino1", "SendCommand", {radioId="11;3", variableId="VAR_1", value=temp}, 85) -- 85 is the device id of the node to which you are transmittingyou have to modify the parameters, of course, but you get the picture....
Thanks I will try that. What should be the radioId="11;3", variableId="VAR_1" values?
Is there a direct pull/request method? (But in that case I would have to hard code the child id to the code, or store it to variable container if that could be requested too..)
-
@BulldogLowell said:
Try pushing from vera by creating a scene that runs regularly (e.g. every 5 minutes) and insert this luup code:
local temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 60) -- 60 is the device id of the WeatherUnderground 'sensor' luup.call_action("urn:upnp-arduino-cc:serviceId:arduino1", "SendCommand", {radioId="11;3", variableId="VAR_1", value=temp}, 85) -- 85 is the device id of the node to which you are transmittingyou have to modify the parameters, of course, but you get the picture....
Thanks I will try that. What should be the radioId="11;3", variableId="VAR_1" values?
Is there a direct pull/request method? (But in that case I would have to hard code the child id to the code, or store it to variable container if that could be requested too..)
this example shows how to receive the data
look at the getVariables() function and take notice of:
gw.begin(getVariables, RADIO_ID, false); -
I know it's not the answer to your question, but it might be a solution to your problem :-) In my bathroom i am monitoring the hot-tap temperature (actual the supply line which is at the attick in my situation). Once it goes above 40º C my fan starts. This fan then continues running even if I stop showering as the pipe doesn't cools down rather slowly. Once the hot-tap pipe has gone below 35ºC the fan is stopped. Using a sensor on the hot-tap and a actuator (relay) for the fan.
I have been using humidity sensors for this purpose before and found them not to be very reliable on the long term (lasted less than 1 year working) . Thus this solution which is practical and very robust.Regards,
Boozz
-
I know it's not the answer to your question, but it might be a solution to your problem :-) In my bathroom i am monitoring the hot-tap temperature (actual the supply line which is at the attick in my situation). Once it goes above 40º C my fan starts. This fan then continues running even if I stop showering as the pipe doesn't cools down rather slowly. Once the hot-tap pipe has gone below 35ºC the fan is stopped. Using a sensor on the hot-tap and a actuator (relay) for the fan.
I have been using humidity sensors for this purpose before and found them not to be very reliable on the long term (lasted less than 1 year working) . Thus this solution which is practical and very robust.Regards,
Boozz
Nice workaround, but I already have hot tap sensor, but that is used to keep the pipe always hot by controlling an auxiliary pump used to circulate hot water when not showering so that when opening the shower I do not have to wait long time before getting hot water since the pipes are quite long from the boiler.
-
I have arduino sensor measuring humidity of my bathroom with DHT22, alongside with an existing old mechanical humidity limit sensor (that is now used for backup in the logic). I have hooked the node also to booster mode switch of the air ventilation unit of the house and using weather sensor for reference outside humidity. The idea is to replace the mechanical "sensor" with a bit more intelligent logic that takes into account the weather outside and if it is too humid outside (hot summer) ventilating the bathroom does not reduce the internal humidity.
All works good, except that I need to implement calculation of the mathematical formula for converting the outside relative humidity when the air is warmed up by the ventilation unit since the temperature changes the relative humidity value - non linearly.
The "real" formula is too complex for PLEG math so I probably need to make linear approximation to simplify the math for the logic.@samppa There is a article (in Russian, unfortunately) where solved almost exactly this problem. (Ventilation of garage)
http://habrahabr.ru/post/244135/
If you wish i can try to translate, but basic idea of algorithm is to calculate absolute humidity for inside and outside, compare and turn ventilation if inside absolutely humidity bigger than outside with threshold 0.01 gram/m3. Also, if outside relative humidity is large than 90% ventilation does not performed, because it happen in very unusual case, like heavy rain outside, and ventilation in this case is pointless. -
Nice workaround, but I already have hot tap sensor, but that is used to keep the pipe always hot by controlling an auxiliary pump used to circulate hot water when not showering so that when opening the shower I do not have to wait long time before getting hot water since the pipes are quite long from the boiler.
I agree, In that case it cannot be used, or the pipe from the circulation pipe to your shower should have some significant length.
BTW, although you may think it's useless (or at least less effective) when the outside humidity is higher than the interior humidity to use a fan, I think it is not (always). Depends on where the fresh air comes from (probably somewhere from the house were it is not as humid as in your bathroom....)
As long as you're able to get the humid air flowing to a place somewhere outside (using your fan) and the fresh air is less humid than in your bathroom it does have the effect you're looking for, even when it's raining outside!Boozz
-
@samppa There is a article (in Russian, unfortunately) where solved almost exactly this problem. (Ventilation of garage)
http://habrahabr.ru/post/244135/
If you wish i can try to translate, but basic idea of algorithm is to calculate absolute humidity for inside and outside, compare and turn ventilation if inside absolutely humidity bigger than outside with threshold 0.01 gram/m3. Also, if outside relative humidity is large than 90% ventilation does not performed, because it happen in very unusual case, like heavy rain outside, and ventilation in this case is pointless.@doctor64 said:
@samppa There is a article (in Russian, unfortunately) where solved almost exactly this problem. (Ventilation of garage)
http://habrahabr.ru/post/244135/
If you wish i can try to translate, but basic idea of algorithm is to calculate absolute humidity for inside and outside, compare and turn ventilation if inside absolutely humidity bigger than outside with threshold 0.01 gram/m3. Also, if outside relative humidity is large than 90% ventilation does not performed, because it happen in very unusual case, like heavy rain outside, and ventilation in this case is pointless.Thanks! Google translated sufficiently :-)
The absolute humidity idea seems simple and the formula is straightforward.The only issue left is how to request data from other sensor so that calculation could be done in one node. @BulldogLowell suggested pushing the data, but that looks a bit complicated..
-
I agree, In that case it cannot be used, or the pipe from the circulation pipe to your shower should have some significant length.
BTW, although you may think it's useless (or at least less effective) when the outside humidity is higher than the interior humidity to use a fan, I think it is not (always). Depends on where the fresh air comes from (probably somewhere from the house were it is not as humid as in your bathroom....)
As long as you're able to get the humid air flowing to a place somewhere outside (using your fan) and the fresh air is less humid than in your bathroom it does have the effect you're looking for, even when it's raining outside!Boozz
In my case the fresh air comes always from outside and through the ventilation unit where it is warmed up. @doctor64 got the point that in rare cases like hot summer rain the outside humidity makes ventilation pointless, or actually it makes the ventilation run full speed overnight since it does not dry the air.
By the way, thanks for everyone for great comments!
-
@doctor64 said:
@samppa There is a article (in Russian, unfortunately) where solved almost exactly this problem. (Ventilation of garage)
http://habrahabr.ru/post/244135/
If you wish i can try to translate, but basic idea of algorithm is to calculate absolute humidity for inside and outside, compare and turn ventilation if inside absolutely humidity bigger than outside with threshold 0.01 gram/m3. Also, if outside relative humidity is large than 90% ventilation does not performed, because it happen in very unusual case, like heavy rain outside, and ventilation in this case is pointless.Thanks! Google translated sufficiently :-)
The absolute humidity idea seems simple and the formula is straightforward.The only issue left is how to request data from other sensor so that calculation could be done in one node. @BulldogLowell suggested pushing the data, but that looks a bit complicated..
@samppa Seems like high humidity in bathroom is a common problem, because i also plan to implement exactly this thing.
But, because i can't pump fresh air from outside, i live in multi apartment building, so i pump humid air from bathroom into existing ventilation system.
I think about just add second sensor to same node and check humidity in corridor, or may be use "dumb" node, there all calculations and decision about turning on/off the fan made at controller, OpenHab in my case. So i can take into account time of day, for example - i don't want to hear noise from the fan in the middle of night. -
@samppa Seems like high humidity in bathroom is a common problem, because i also plan to implement exactly this thing.
But, because i can't pump fresh air from outside, i live in multi apartment building, so i pump humid air from bathroom into existing ventilation system.
I think about just add second sensor to same node and check humidity in corridor, or may be use "dumb" node, there all calculations and decision about turning on/off the fan made at controller, OpenHab in my case. So i can take into account time of day, for example - i don't want to hear noise from the fan in the middle of night. -
@doctor64
Ok, so you can do the logic in controller. I use Vera as the controller and PLEG for the logic, but it seems there is not enough math functions available for the dew point or absolute humidity calculations.. -
@doctor64
Ok, so you can do the logic in controller. I use Vera as the controller and PLEG for the logic, but it seems there is not enough math functions available for the dew point or absolute humidity calculations..yes, but you saw the little point functions your arduino is very capable of, yes?
if you post your attempt at a sketch to control your fan (or even pseudo code) we can certainly help you code it up for Vera.