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
U5tabil 2
Thanks to petergebruers for helping making this "Time of day" LUA scene variable.
This is probably common to experienced LUA coders but is a nice and easy LUA code for beginners.
Instead of having many scenes explaining each "Time_of_Day" variable, one can have all in one simple code.
All you have to do is make global variable (change names if you like).
Time_of_Day
-Morning (i set morning for sunrise)
-Afternoon (at 12:00 change if you like)
-Evening (at sunset)
-Night (at 22:00)
Please login or register to see this code.
Link to comment
Share on other sites
19 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.