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
stevenvd 51
I just thought of a beautiful way to make the best présence simulator without having to program any lights.
As (if we assume it works) the event panel records all the device state changes, there are only a few things that you would have to set:
1. What rooms do you want the lights to be simulated.
2. What day of which week or what date do you want to be simulated. This means it will just copy the behaviour from a day that you where actually at home and just reproduce it.
You only have to make a collection in code of these devices by getting them from the event panel. Sort all of the devices from the different rooms and alter the timestamp to your current day.
Then just call the action that the light at that day was set to... go into sleep until the next item in your list of device calls. and your done!
Maybe even easier:
Lookup that day in the past, copy the behaviour of the next minute. Call all the actions in that minute and get the list of the next minute. In this way you use less resources.
Please login or register to see this image.
/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />Please login or register to see this code.
Getting all the lights:
Please login or register to see this code.
So, who is up for helping?
2 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.