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
Schopf16 1
Hi
I would like to start a scene with a button (in my example S1 on an FGS-223), which then runs through a state event machine and takes about 60 seconds. While the scene is running, I still want to be able to react to inputs from the button. I want to do this directly in the scene without using an additional global variable. I cannot interrogate the push button cyclically (polling) because the status of the push button cannot be interrogated by the system, as far as I know.
Please login or register to see this code.
In the code example above I did not set the attribute "local" for the "counter"-variable and assumed that it is available for further instances. I now perform a second keystroke to start a second instance and set the variable "counter" back to 0. But this is not the case. The second instance is aborted with fibaro:abort(), but the "counter" variable of the first instance is not reset to 0. Does anyone know of a possibility or an example to be able to react to short keystrokes during a running scene?
8 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.