jgorm Posted March 25, 2014 Posted March 25, 2014 I'm trying to beep 2 switches in my bedroom if one of 3 doors opens, but only if I push a button on one of the 6 button switches to 'arm' it. I don't want this to trigger unless the button C is lit up. I have this program called 5 x motion beeps disabled (and it's disabled) If Status 'MB outside light.C alarm' is On Then Repeat 3 times Set 'MB outside light.1' 1 (Beep Duration) Set 'MB outside light.1' 1 (Beep Duration) Set 'MB outside light.1' 1 (Beep Duration) Set 'MB outside light.1' 1 (Beep Duration) Set 'MB outside light.1' 1 (Beep Duration) Set 'MB exhaust fan' 1 (Beep Duration) Set 'MB exhaust fan' 1 (Beep Duration) Set 'MB exhaust fan' 1 (Beep Duration) Set 'MB exhaust fan' 1 (Beep Duration) Set 'MB exhaust fan' 1 (Beep Duration) Else - No Actions - (To add one, press 'Action') And the trigger program is called open doors at night alarm If Status 'Garage side door-Opened' is On Or Status 'Patio Sliding Door-Opened' is On Or Status 'front door-Opened' is On Then Run Program ' 5x alarm beeps disable' (If) Else - No Actions - (To add one, press 'Action') My issue is that when I press the button C to "arm" the program, it triggers "front door opens trigger" program when all the doors are closed. It doesn't do anything when I turn it off, but it will trigger any time I turn it on. Front door opens trigger program If Control 'front door-Opened' is switched On And Control 'MB outside light.C alarm' is switched On Then Set 'Front Door inside.1' On Run Program ' 5x alarm beeps disable' (If) Wait 10 minutes Set 'Front Door inside.1' Off Else Run Program 'Front door opens action disable' (If) Part of the reasoning for a different front door trigger is that there are other programs that run off the front door opening and there was too much traffic and stuff wasn't working right with the front door (but works fine with the other 2 doors). The else statement is the one that is getting triggered when I push the C button. The front door opens action disable is as follows. If From Sunset + 15 minutes To Sunrise - 15 minutes (next day) Then Set 'Front Door inside.1' On Set 'Driveway house lights' On Set 'Driveway street lights' On Run Program '2x motion beeps' (Then Path) Wait 5 minutes Set 'Driveway street lights' Off Set 'Driveway street lights' Off Set 'Front Door inside.1' Off Wait 1 minute Set 'Driveway house lights' Off <-- Redundant Offs are added to a lot of my programs and really help with reliability! Set 'Driveway house lights' Off Set 'Front Door inside.1' Off Else Run Program '2x motion beeps' (Then Path) The door sensors all indicate closed and they are really closed. Once it's 'armed' and it triggers the other program, it will respond to an open door. My plan for this is so that I can have another program turn off the button C in the morning so I don't need to remember to switch it off. Then I can turn it on when I go to bed. I have a full blown alarm system, but I don't want or need a super loud siren that I'll probably set off by mistake. The disable program is simple and probably not related to my issue. If Time is 5:30:00AM Then Set 'MB outside light.C alarm' Off Else - No Actions - (To add one, press 'Action')
oberkc Posted March 25, 2014 Posted March 25, 2014 I don't have the time right now to sort through everything, but I noticed a few items off the top: And the trigger program is called open doors at night alarm This program might be better using "control" rather than "status". In it's current form, it will trigger when the doors are closed, also. Front door opens trigger program I would be surprised if this program evaluates true EVER. To run TRUE, this program must see the simultaneous receipt of two commands (one control statement AND another control statement). I am not even sure that this is possible. Perhaps whatever troubles you are having are related to these concerns?
Xathros Posted March 25, 2014 Posted March 25, 2014 The way I would do this is as follows: Create a scene that contains the devices that you want to beep as responders. Lets call it: AlarmBeepScene Then a program to make it beep under the right conditions: If Status 'MB outside light.C alarm' is On And ( Control 'Garage side door-Opened' is Switched On Or Control 'Patio Sliding Door-Opened' is Switched On Or Control 'front door-Opened' is Switched On ) Then Set Scene 'AlarmBeepScene' Beep Set Scene 'AlarmBeepScene' Beep Set Scene 'AlarmBeepScene' Beep Set Scene 'AlarmBeepScene' Beep Set Scene 'AlarmBeepScene' Beep Set Scene 'AlarmBeepScene' Beep Else Using the scene to beep will cut down on Insteon traffic and simplify the program. As oberkc pointed out above, use Control rather than status to capture the event of the door opening not the state of the door being open. We want Status on the KPL button however since we want to capture it's state rather than the event of it being turned on. If you are still having traffic issues, try adding a 1 or 2 second wait in the then section before the scene beeps to get them out of the way. -Xathros
jgorm Posted March 25, 2014 Author Posted March 25, 2014 Thanks guys! I had no idea I could beep a scene! That will really simplify things and cut down on traffic! I have lots of beep programs and think that it is one of the coolest things about the switches. If only I could make them do the long loud beep like when you reset them! I'll try the switch to control and making scene beep programs.
Recommended Posts