Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
petergebruers 1,259
A while ago, I joined a discussion about controlling a bathroom fan (not a whole house ventilation), by means of a single humidity sensor.
This inspired me to clean up my running code and share it with you.
VERY IMPORTANT! Only use this script with an Aeotec MultiSensor 6 aka MS6 aka "the square one". I have extensively tested several "MultiSensors" and only MS6 meets its specifications! The older, round MultiSensor and MultiSensor Gen5 have very bad temperature & humidity response (up to 12 percent-point deviation) so they are not good. If I ever find the time, I'll post a calibration procedure and test results of several sensor. I also tested several DIY sensors on a Z-Uno and they can be used as well... but not the old MS!
This script uses one, and only one humidity sensor. Because I am convinced, that this is all you need. You can device clever scripts, based on several sensors or weather stations or weather forecast... But in the end this adds complexity and you'll have a hard time convincing me multi-sensor works better!
If you want to learn more about my motivation to script it in this particular way, please read:
In fact, before I talk about the control scene, I'd like to share script to monitor your setup.
It is a script which filters your event log, and puts fan and humidity data in your debug window. The log script enables you to check if the control script runs as expected.
The Lua code demonstrates: filtering the event log, sorting data, and outputting data as html or plain text.
The log output looks similar to this:
Please login or register to see this attachment.
Since I took that screenshot I decided it was nicer to reverse the order. If you look at the script you'll see that's only a matter of changing > to <
You might notice the fan device has a value... This script can control a fan connected to a dimmer or a switch and the scene automatically detects the difference. I recommend a dimmer only for small fans; < 30 W. For Dimmer 2: set parameter 30 = 0 to force "leading edge control".
Features:
This scene has not been tested by anyone else, so please run it, check it and share what think, so I can improve it!
Note: if you do not have a means to dry your air, which you probably do not have, the control of humidity depends on outdoor conditions. I live in Belgium... According to www.weatheronline.co.uk "The climate of Belgium can be classified as Cfb Climate; a warm temperated humid climate with the warmest month lower than 22°C over average and four or more months above 10°C over average."
Please login or register to see this attachment.
Please login or register to see this attachment.
Link to comment
Share on other sites
Top Posters For This Question
23
10
6
5
Popular Days
Nov 24
11
Nov 6
11
Nov 5
10
Nov 11
6
Top Posters For This Question
petergebruers 23 posts
net 10 posts
emielstroeve 6 posts
cag014 5 posts
Popular Days
Nov 24 2017
11 posts
Nov 6 2017
11 posts
Nov 5 2017
10 posts
Nov 11 2017
6 posts
Popular Posts
petergebruers
A while ago, I joined a discussion about controlling a bathroom fan (not a whole house ventilation), by means of a single humidity sensor. This inspired me to clean up my running code and share i
petergebruers
@jimicr "may the force be with you"
TRicky
So I'm back after a while, I had another important project (and no, I wasn't in jail lol) Regarding this humidity topic: I tested the script of @petergebruers and compared it with my own (an
Posted Images
54 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.