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
JanJoh 1
I have a virtual device which pretty much is just a few buttons, and labels.
Each button toggles a global var 1/0.
Each label just shows the value of a global var.
Now, since I have read a few posts which seem to indicate that the main loop may get stuck and/or simply behave erratically, i wonder if there is any way for me to avoid it.
I would like to fire off lua when the device is opened in the client to be able to update all labels. But it does not need to auto-refresh (since i can update the labels when a button is clicked).
But the only way i see to do this is to put the code to update labels in main loop?
6 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.