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
Danielos 3
Dear all,
I want to develop a customized presence simulation for my home. Therefore, I need to calculate with hours, but I don't know how to manage that in LUA.
Could someone help me, please?
I want to randomize a number between 1 and 10 and add this as minutes to the official SunseHour (For example 19:34 + 7 = 19:41). I tried that:
Please login or register to see this code.
That doesn't work..... could someone help me, please?
Thank you so much for your answer.
Dan
11 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.