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
Julegeita 2
Hello!
I am new to to Lua coding and coding generally, and i am struggeling to be satisfied with my bathroom fan control during shower.
Devices: Netatmo Indoor and outside module and Fibaro Relay
Per now, I control my bathroom fan, by monitoring the humidity in the room and set the fan to start at a given level like below.
This is made by normal scene blocks.
(If OUTSIDE humidity > 90 AND INDOOR humidity >= 60 = "Turn on")
(If OUTSIDE humidity > 90 AND INDOOR humidity < 60 = "Turn off")
(If OUTSIDE humidity < 90 AND INDOOR humidity >= 55 = "Turn on")
(If OUTSIDE humidity < 90 AND INDOOR humidity <55 = "Turn off")
The outside criteria "helps" on wet and rainy days, by not letting the fan start on its own due to rise in humidity.
Due to the fact that outside humidity plays a HUGE role on the inside humidity, my setup must be modified all the time because of seasonal changes.
What i would really want is a script that does the following using only the inside humidity and the relay:
The plugin for Netatmo pulls information every minute, but the Netatmo itself only uploads to the API site every 10 min. Så when i get a rise in humidity, i allways get atleast 5% at a time.
That means the Fibaro thinks it gets 5% rise in one minute (if i think at this correctly)
I want a sudden rise in humidity, regardless of the outside OR the inside humidity, to trigger the fan. (Example: from 25-->30, 45-->50, 52--57)
The thing i think is tricky, is that you actualy must "save" the previus value and compare it to the new?!?
If i get the fan to trigg this way, i could easily set up another scene to stop the fan after an hour.
BUT, it would be much more awsome if the fan stayed on until the humidity value BEFORE the spike was reached.
Does anybody have a solution for this?
I know the guy at the top of this topic, providing the link, has made this in Domoticz -
Please login or register to see this link.
Sorry for my horrible english writing!
Best regards
Link to comment
Share on other sites
Top Posters For This Question
14
10
9
7
Popular Days
Aug 24
9
Aug 28
9
Aug 25
8
Aug 23
4
Top Posters For This Question
Julegeita 14 posts
petergebruers 10 posts
RH_Dreambox 9 posts
TRicky 7 posts
Popular Days
Aug 24 2017
9 posts
Aug 28 2017
9 posts
Aug 25 2017
8 posts
Aug 23 2017
4 posts
Popular Posts
RH_Dreambox
OK! I have three Aeon multisensors (USB) that work flawlessly. Just keep in mind that it's important to include the multi-sensor with USB power supply. Including it with battery and then chan
RH_Dreambox
The code below is a very easy way to control the fan, but you do not take into account that the humidity also varies depending on the weather. A better solution is to compare the value of two sensor
TRicky
A while ago I started a similar topic Humidity Control ( Please login or register to see this link. ) @Tor Magnus posted a script there which I used as a basis for my new script. I have been playing around
Posted Images
44 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.