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
Charlie67 0
I would like the lights in my lounge to come on if triggered by a motion sensor and the lux level is below 10. This is between 10am and when the lights in the house are set to come on an hour before sunset.
I have a variable (IsActiveTime) that is set to true at 10am. It is then set to false at 121 mins prior to sunset. (This was to take into account the lights coming on as normal at and hour before sunset, plus 1hr delay in the motion trigger to turn them off. These are set by two block scenes.
Then there is another block scene below. This is triggered if the lux is <10, motion is sensed and the variable IsActiveTime is true. Turns lights on, great, then an hour later turns them off. Good.
Please login or register to see this attachment.
The problems are the lights will turn off after the 1 hour delay and then there is darkness until the normal lights switch on at an hour before sunset. Like today they went off at 14.59 and there switched on as normal at 15:13 . I had set the variable to false at 121mins before sunset, so that the normal control could switch them on.
Ideally in the "daylight" window, I would like them to come on if I am in the room and it is dull. And then switch off after a short while when i leave for an extended time. Then As normal I would like them switched on an hour before sunset.
I am suspecting this might need to be written in LUA?
Any thoughts as to where I am going wrong?
Many 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.