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
mvdkallen 0
Hi all,
Once I leave my house and set the house in "away" mode (.. which means it will close some roller shutters, close some curtains and arm window- and some door sensors through a scene), I also would like HC2 to communicate to me in case I left a window open by accident.
I had a look online for LUA code examples, and in specific to examples where the "elsif" parameter is used, but I got confused and am stuck now...
Anyone who can help me out here, please?
I only need to know the part of the code where I actually request HC2 to check the device status and report back in case it does not meet the requirement (.. as example, if Window A is open, send me the notification... If Window B is open, send me another notification... and so on.
Just take the below IDs as example when writing the codes:
Window sensors
ID35 for Window sensor A
ID36 for Window sensor B
ID37 for Window sensor C
Notifications as set in the system
ID40 for Window sensor A notification
ID41 for Window sensor B notification
ID42 for Window sensor C notification
Smartphone
ID 50 for smartphone Mark
.. probably the LUA script is quite simple, but right now I just don't see how I need to program this.
Thanks a lot for anyone's advice.
Best regards,
Mark
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.