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
pixys 1
Hello
I've wrote a little scene in LUA, and I still do not figure out how scene are triggered
Please login or register to see this code.
For the result in the debug windows with this code should loop.
and should look like
Please login or register to see this code.
But the result of the execution is that one
Please login or register to see this code.
only 1 occurence of the execution.
Can someone explains what's triggering the execution of the scene
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I found the explaination.
How this is working
Scene got activated once. If you want to have a reoccurence of the activation you need to create a function and write inside what the part of the code you want to reexecute.
and at the end of the function use the fibaro function
setTimeout(nameofmyfunction, 60*1000) -> 60 is 60 secondes.
The code should looks like
Please login or register to see this code.
Edited by pixysI found the reason
7 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.