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
Sankotronic 2,205
Check status of doors and windows v1.0
This simple scene will send push message every time when door or window is opened if global Variable DoorWinCheck is set to "Yes". Usage, we are sitting in garden on the opposite side of our house main entrance door. Turning this scene on and we will be informed every time when somebody opens main door
Please login or register to see this image.
/uploads/emoticons/default_smile.png" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" /> If scene is started manually with RUN button or by other scene or VD then it will check all doors and windows (or just those we put in the list) and will send popup message with the list of opened doors and windows. The rest is up to you. Here is scene code:Please login or register to see this code.
global variable DoorWinCheck can be changed by virtual device which have one label and one button. Here is code that goes to button:
Please login or register to see this code.
And if you want you can add this code to Main loop:
Please login or register to see this code.
Don't forget to change name for label from label1 to lblDoorWinCheck or vice-versa. Here is also picture of DV and icons to use for scene and VD:
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
EDIT :
New version 1.0 with some changes for users to easier setup. Now you can use existing variable and values you just need to enter name of your variable and map your values to Yes and No for checking and sending push notification when door or window is opened.
Also changed push notifications so that users are defined in table variable userID. userFlag defines if user will get notification set by 1, or not set with 0. You can add your part of code to change flags, see example:
Please login or register to see this code.
Enjoy coding!
Edited by SankotronicRelease new version of code
Top Posters For This Question
19
6
6
5
Popular Days
Apr 15
7
Feb 1
4
Feb 2
4
Dec 31
4
Top Posters For This Question
Sankotronic 19 posts
Arbu-jl 6 posts
jimicr 6 posts
Landshark 5 posts
Popular Days
Apr 15 2017
7 posts
Feb 1 2017
4 posts
Feb 2 2017
4 posts
Dec 31 2016
4 posts
Popular Posts
Sankotronic
Check status of doors and windows v1.0 This simple scene will send push message every time when door or window is opened if global Variable DoorWinCheck is set to "Yes". Usage, we are sitt
Sankotronic
@jimicr, This scene I wrote on one of users request. It is standalone scene. For alarm I have completely different solution but also with checking status of the sensors before arming. I st
Sankotronic
@jimicr, Thank you for your kinds words and that is the best award for my work. Fibaro really doesn't have to do that, but I will not complain if they do
Posted Images
56 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.