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
Borgstrand 3
Hello,
My LUA coding knowledge are limited, learning all the time but it takes time.
Please login or register to see this image.
Have a storageroom which has doorsensor, movementsensor and light switch.
Unit numbers are:
298 = Doorsensor
282 = Lightswitch
302 = Movement Sensor
Everything is Fibaro products
Want to have this functions:
1. When door opens lights should be turned on
2. When no movement in room for 5minutes (300sec) lights should be turned off even if the door is open..
3. If light is off and door is open and new movement is registerd in the room then light should be turned on again.
4. When door is closed light should be turned off.
Have this in "Block Scenes" today, but it takes 4 different scens to get it running and I get a lot of "Too many instances" messages, so I want to change this to LUA code to better control what is happening.
Could some friendly person help me with an example?
10 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.