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
JanJoh 1
Lets say i have a script that when fired needs to know when the triggering sensor was last breached previous to the triggering event.
Do i need to create a global var which is compared to current time on breach and then updated.. or is there a shortcut?`
Basically i want a "Ok, someone has entered this room. How long has the room been empty?"
[ Added: 2014-10-03, 18:06 ]
Hm, I suppose I shpuld just create a second script that fires when the sensor has been "safe" for the desired amount of time, and update a global var (room_empty) at that point ?
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.