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

Creating a scene with 2 sets of groups


Question

Posted

Hello guys,

 

I need a little help to "simplify" a LUA scene I've created (very noob in this):

 

I have a scene triggered by the netatmo rain gauge that lower my shutters (the open ones) to 22% (rolling shutter 2) when the windows are closed (door/window sensors) or to 1% when the windows are open, this last command has a 20 seconds delay for the balcony windows (so you have the time to come back inside the house). Then reopens them when the rain lowers under a certain value for 30 minutes.

 

I have created a series of "if, then, else" statement for every single shutter/sensor couple, and they work fine. Then I discovered the "tables" and "pairs", so I wanted to rewrite the script using this system with a "for" loop, but I don't know how to retrieve rolling shutter ID to the corresponding Window sensor ID to trigger the command.

 

I know I will need two sets of loop (one for the normal windows and one for the balcony ones) because of the 20 secs delay

 

Can you please help? This is the full script I've created.

Please login or register to see this code.

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...