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

Motion based scene, will this work?


Question

Posted

Hey guy's,

 

I was thinking to get out of "to many instances" like this, I can't code so if anyone can take a look at my idea and tell me if this is possible:

 

Set a global var lightsouttimer to 1 using this scheduler:  

Please login or register to see this link.

 

if lights out is 1 and

motion sensor breached sets a local a=a+1 and a local timer=OStime

if OStime- time is >=600 seconds set a global lightsout.

 

The global lightsout triggers a scene that turns off the lights in my kids bedroom.

 

Would this work?

 

Looking forward to your input.

 

Jim

4 answers to this question

Recommended Posts

  • 0
Posted

Hi did you resolve this, what was your intended outcome?? and what starts your scene?

  • 0
Posted

It seems that "too many instances" is buggy and even it appears from time to time, scenes still working perfectly so I would not be so worried about that. Except annoying yellow triangle with number in it till now I did not encounter any other problems. I still keep all my scenes that should run only one instance on default 2 instances, because when I change to 1 instance then I get plenty of warnings even I use code to eliminate all other instances when one is already running.

 

Fibaro team still have to do a lot of work to get to the bottom of this, and it is not simple one as it seems. 

  • 0
Posted

As above, do it in lua and set the number of instances to 2. Thats assuming your logic is ok to handle it - ie if a second instance is to turn off the lights, you need to make sure the first instance will do that when it ends, else, if it's based on motion (and sensor going safe), it might never trigger as the sensor goes safe while instance one is running. You'll need instance one to check in that case and turn them off or call the scene to turn them off. 

Please login or register to see this code.

  • 0
Posted

please add killscene to blockscenes! i have worked out a nice solution using lua but having killscenes and being able to select the scene would save SOOOOOOO many resources!

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