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
[email protected] 0
Hi
I have a problem to understand why my lua-code not working as i expected.
See first this (properly working) test-lua-scene and the debug-result:
Please login or register to see this code.
Please login or register to see this attachment.
As expected first was the function "funcDevices" performed.
Second the function "funcSections".
And then at last the function "funcRooms".
And now for my scene, which does not work as expected (code and result):
Please login or register to see this code.
Please login or register to see this attachment.
See the order of statements in the program. I would expected, first the function "funcDevices" was performed. Then, the second function "funcRooms" is performed. And last the function "funcSections".
[DEBUG] 12:20:50: before call function funcDevices--------------------
In principle, the program is working properly. But the wrong order in run the functions de facto can not be explained to me:
Order of call's: D R S = direction de facto: S R D
Order of call's: R S D = direction de facto: S R D
Order of call's: R D S = direction de facto: R S D
Order of call's: S R D = direction de facto: S R D
Here's someone who can tell me why my desired order is not complied with by the Fibaro-LUA-system?
What should I do to make it work the way I want it?
Link to comment
Share on other sites
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.