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
Guest olebor
I am trying to get a motion sensor to trigger a scene, but only if the time is within a specified range, eg between 1600 and 2300.
What I did to achieve this was to first create a variable called hour, then I create a scene that will increase this by 1 every hour and reset it to 0 at midnight. So far so good, the variable always have the right value i.e. var=6 between 6 and 7 in the morning etc.
Now I try to create a scene that is triggered by a motion detector and use the variable as an extra condition.
Please login or register to see this code.
This is not working. I have verified that it will run when I remove the hour conditions. It will also work if I use hour == 16 (will work only if the variable is actually 16). So it seems like evaluation with <, >, <=, >= does not work.
Has anyone else tried this?
4 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.