Kentinada Posted November 26, 2018 Posted November 26, 2018 I have an IOLinc 2450 on my garage door. I have my ISY994i send me a text when the garage door is opened or closed. I can use my Echo to open or close the door by saying "Alexa, turn on the Garage Door". I see 2 devices in my Main tab for the garage door: Garage Door-Relay and Garage Door-Sensor. Is there a program that test to see if the door is open and if so, close it? I'm wondering if I can test Garage Door-Sensor for Off which is closed and On which is Open? Will that work?
Kentinada Posted November 26, 2018 Author Posted November 26, 2018 The program I have to send me texts on door open and closed is in the attached screenshot. I'm still not clear on the test in the IF section. Why is the to see if the switch is on AND also if it is not off? Isn't that redundant? This works but I want to understand it so I can maybe use something similar to test the current state of my door.
larryllix Posted November 26, 2018 Posted November 26, 2018 (edited) First. ISY programs do not actually "test" anything. ISY programs are event driven by changes of devices sent from the remote devices. ISY then remembers what the position of the devices are until told differently. Programs only run when a line causes them to "Wake up" from those events. You can try something like this in another program and develop it further by adding more lines. If Garage door sensor is switched On AND I am not home <------------ if you have a method of knowing this in ISY Then Wait 2 hours Close garage door Else ------ WARNING! This could be dangerous to close a garage door without having a visual of the opening and most will not recommend it. Prepare for some flack here possibly. Newer garage door operators do this on a timer but warning beepers are used before closing. This doesn't help a toddler that could get killed by the door or a toy that could damage your door and/or gasket seal.. Your conscience! Edited November 26, 2018 by larryllix
Kentinada Posted November 26, 2018 Author Posted November 26, 2018 Thanks. Not worried about no visual aspect. No little kids here and I only intend to use it if I do it at all to check to be sure the door is shut later at night.
kclenden Posted November 26, 2018 Posted November 26, 2018 (edited) 3 hours ago, larryllix said: First. ISY programs do not actually "test" anything. ISY programs are event driven by changes of devices sent from the remote devices. ISY then remembers what the position of the devices are until told differently. Programs only run when a line causes them to "Wake up" from those events. To put a finer point on what Larry wrote, a device can create a "switched on" event or a "switched off" event. Programatically they are two different events even though they come from the same device and represent opposite states. To handle this you could write two programs: Program 1 If device is switched on Then Send email "Device is on" Else Program 2 If device is switched off Then Send email "Device is off" Else or you can do as you have done above and handle it in one program via the "Else" section Program 1 If device is switched on and device is not switched off Then Send email "Device is on" Else Send email "Device is off" The "switched on" captures the switched on event and executes the "Then" section while the "not switched off" captures the switched off event and executes the "Else". Edited November 26, 2018 by kclenden 1
baylok747 Posted December 6, 2018 Posted December 6, 2018 (edited) I set a button on a keypad linc to illuminate when the door is open. I then check for that in my programs: If Status GarageKeypad - B is not off Then Send Notification to 'Text' content 'GarageDoorOpen' ... and created a few reminder programs: If Status GarageKeypad - B is not off Then Wait 15 minutes Send Notification to 'Text' content 'GarageDoorDelay15' Edited December 6, 2018 by baylok747 typo
Recommended Posts