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
MaTi 29
Hi all,
Forst and foremost, sorry for posting this.
I am pretty sure I have seen this discussed here before, so this post is probably a duplicate. Anyway, this is what I am in desperate need for
:
I want to turn on and keep a light on in a room when there is movement.
In other words;
xx value (in header)
if motion sensor value==1, then turn on light.
if motion sensor value==0, then turn off light.
meanwhile (and this is what I actually need), I need something to make the motion sensor constantly check for movement and keep its value on 1, as long as it is seeing movement.
People are moving around in the room, but not always in line of sight for the motion sensor. It is ok though when there is a delay of lets say 10mins in turning off the lights. So, a scenario where it checks the motion sensors status every 30secs and only decided it is '0' when it has seen 20 times a 'no motion'. (if this makes sense).
I can code the lua part above (the if part so to speak), but I need some help on the checks with the motion sensor.
..Anyone any idea please?
Thanks!
5 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.