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
Teza 3
I have two block scenes that works, and when I change these from block to LUA, I get the following code:
Scene 1: Set variable value if movement
Please login or register to see this code.
Scene 2: Set variable value if no movement
Please login or register to see this code.
Trying to combine these into one LUA scene, I wrote the following code:
Please login or register to see this code.
Question #1:
This creates the following error: [DEBUG] 12:23:15: [1;31m2018-05-27 12:23:15.977459 [ fatal] Unknown exception: /opt/fibaro/scenes/104.lua:49: unexpected symbol near ')'
What did I miss?
Code line #46 to #50 is;
Please login or register to see this code.
Question #2:
What is the purpose the number in the following codeline, in scene #2 above?
Please login or register to see this code.
Question #3:
What does this codeline from scene #1 and #2 do?
Please login or register to see this code.
Solved
Link to comment
Share on other sites
12 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.