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
amatt 5
Can someone help me. I have been thinking about how the logic would work and cannot come up with the correct Lua code to make this work correctly.
Goal: want the door to unlock when I arrive at home and lock when I leave and send a message (push, email etc..) every time. but if I am home/not home I don't want it to keep locking/unlocking and sending me a message
*I already have fibaro looking for my phone to see if I'm present. a global variable keeps a number count present =1 not present = 0
so the logic I came up with is like this:
Check
Present=0 then lock door and send message
check
present =0 (still not at home) do nothing
check
present = 1 unlock door and send message
check
present = 1 (still at home) do nothing
etc...
let me know if you have questions or suggestions.
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.