Jump to content

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


  • 0

Humidity spike as Trigger


Julegeita

Question

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

Recommended Posts

  • 0
On 9/12/2017 at 12:47 AM, petergebruers said:

As expected, the existing wiring was not cooperating. But it is OK now, I've used a very convincing argument. See photo. The scene is in test and I already see two possible improvements. One has to do with non-linearity of the fan control and the other is that I need a second scene, that can dump fan and sensor events in one go. To diagnose the effectiveness of the solution...

 

Please login or register to see this attachment.

@petergebruers Has your fan been reinstalled or are you still catching your toe on the  drill every time you take a shower?

I was following this post with great interest and you have just left me hanging like a novel missing the last two pages...;D

Edited by Jamie mccrostie
Link to comment
Share on other sites

  • 0
On 10/18/2017 at 10:31 AM, Jamie mccrostie said:

@petergebruers Has your fan been reinstalled or are you still catching your toe on the  drill every time you take a shower?

I was following this post with great interest and you have just left me hanging like a novel missing the last two pages...;D

 

:-)

 

It is "Pending Approval":

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...