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
janton 2
Hello,
My customer wants to create following scene. Unfortunately I do not handle LUA-coding so any help is really appreciated !
Customer has following devices: Home Center 2, a lux sensor and wall plug.
Goal is: Creating a Scene that checks if lux is below value 50 and when lux is below that value then put light ON between 19:30 - 23:30 randomly.
So in another way to put it... if lux is below value 50 then put light ON if time is between 19:30 - 23:30 randomly everyday for 15-45 minutes which is random.
Example:
Monday: Time is 19:30 and lux value is <50. Put light on behind wall plug for 45 minutes. Then shut down the light (time 20:15). Put light again 20:45 and shut down it 21:00. Again ON at time 21:20 and so on until 23:30 put the light off completely for that day.
If lux is belov value <50 for example 19:45 then put light ON (Wall plug) like mentioned above (randomly and for random time).
Tuesday and rest of the week same thing...
Edited by janton7 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.