morreale Posted February 1, 2012 Posted February 1, 2012 I have a 2420M Motion Sensor v.34 that Controls a SwitchLinc Relay v.3A that controls the 4 Florescent Fixtures in my garage. Currently the 2420M is setup to turn the lights on when it detects motion. I do not have it turning the lights off after. All jumpers are off except #5 for ISY control. I would like to write a program that will monitor motion and the switch to determine when to turn the fixtures off. is that even possible? situation 1: I get home and open the garage doors and the motions sensor will detect movement and turn the lights on. once there is no more movement present (15 minutes?) turn off the lights situation 2: i need to work in the garage and i manually turn on the lights. can ISY know that the lights were manually turned on and not turn off the lights even if there isnt movement? what variables are there to be used with the motion sensor? thanks!!!
TJF1960 Posted February 1, 2012 Posted February 1, 2012 You should be able to put the ms into occupancy mode (I don't remember the exact term used in the options menu) which will send an On command everytime it senses motion. Then a standard program such as: Program: Lite Auto Off If Status 'Motion Sensor' is Off and Status Switchlinc is On and Program 'Manual Lite On' is False Then Wait 15 minutes Set Switchlinc Off Else Nothing If the light is on and the ms sends an On signal the wait will start over. The light will turn off 15 minutes after the last On signal, unless the next program is true. Program Manual Lite On If Control 'Switchlinc is switched On and Control 'Switchlinc is not switched Off Then Else When you manually turn the light on, you will have to remember to manually turn it off. Or another program with a longer wait time could be used to automatically turn it off. Tim
morreale Posted February 1, 2012 Author Posted February 1, 2012 thanks for the quick reply. i went ahead and added those two programs to begin playing with things to see how it works... my auto off program doesn't seem to work because the motion sensor seems to remain in the 'on' state If Status 'Garage Interior / Motion-Sensor' is Off And Status 'Garage Interior / Garage Interior Lights' is On And Program 'Lights Manual On' is False Then Wait 15 minutes Set 'Garage Interior / Garage Interior Lights' Off Else - No Actions - (To add one, press 'Action') If Control 'Garage Interior / Garage Interior Lights' is switched On And Control 'Garage Interior / Garage Interior Lights' is not switched Off Then - No Actions - (To add one, press 'Action') Else - No Actions - (To add one, press 'Action')
LeeG Posted February 1, 2012 Posted February 1, 2012 The Motion Senser Status will never be Off if the Motion Sensor is sending only On commands. If Status 'Garage Interior / Motion-Sensor' is Off
morreale Posted February 1, 2012 Author Posted February 1, 2012 The Motion Senser Status will never be Off if the Motion Sensor is sending only On commands. If Status 'Garage Interior / Motion-Sensor' is Off hmm interesting. so what would be the point of the "then" portion of the program if the motion needs to be set to send the 'off' command and i can configure that for 15 minutes? IfStatus 'Garage Interior / Motion-Sensor' is Off And Status 'Garage Interior / Garage Interior Lights' is On And Program 'Lights Manual On' is False Then Wait 15 minutes Set 'Garage Interior / Garage Interior Lights' Off Else - No Actions - (To add one, press 'Action')
TJF1960 Posted February 1, 2012 Posted February 1, 2012 I am so sorry. Thats what happens when I try to post in a hurry.... This should work If Control 'Garage Interior / Motion-Sensor' is switched On And Status 'Garage Interior / Garage Interior Lights' is On And Program 'Lights Manual On' is False Then Wait 15 minutes Set 'Garage Interior / Garage Interior Lights' Off Else - No Actions - (To add one, press 'Action')
hoopty Posted February 1, 2012 Posted February 1, 2012 I got most of this from the wiki I think... It requires 4 programs, but will do everything you are looking to do First is the program to turn the lights on once motion is detected. It uses the control line from the MS so that you can turn the lights off via the switch even if the status of the MS is On. If Control 'Garage / Garage MS' is switched On And Status 'Garage / Garage Lights' is not On And Program 'Garage MS Timer Enable' is True Then Set 'Garage / Garage Lights' On Else - No Actions - (To add one, press 'Action') Second is the timer program that shuts off the light once motion ceases to be detected. I have it set to beep 4 times 1 minute before it shuts off as a warning. The timer program will be disabled if 'Garage MS Timer Enable' program is false. Which happens if you turn the switch on manually, thus allowing you to work without fear of the lights going out on you while you're still in the room. You just have to remember to turn them off when you're done... If Status 'Garage / Garage MS' is Off And Status 'Garage / Garage Lights' is On And Program 'Garage MS Timer Enable' is True Then Wait 3 minutes and 54 seconds Set 'Garage / Garage Lights' 1 (Beep Duration) Wait 2 seconds Set 'Garage / Garage Lights' 1 (Beep Duration) Wait 2 seconds Set 'Garage / Garage Lights' 1 (Beep Duration) Wait 2 seconds Set 'Garage / Garage Lights' 1 (Beep Duration) Wait 1 minute Set 'Garage / Garage Lights' Off Else - No Actions - (To add one, press 'Action') Third is the 'Garage MS Timer Enable' program. It basically allows the MS to be overridden. It will disable both the On and Timer programs if false. If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Set Program 'Garage MS Timer Enable' To Run At Startup Else Set Program 'Garage MS Timer Enable' To Not Run At Startup Fourth is the program the sets 'Garage MS Timer Enable' program to true or false. If you have a dimmer switch, you could use Fast On as well, but as these are florescent, I'm not using a dimmer. If Control 'Garage / Garage Lights' is switched On And Control 'Garage / Garage Lights' is not switched Off Then Run Program 'Garage MS Timer Enable' (Else Path) Else Run Program 'Garage MS Timer Enable' (Then Path) Another program I like is just turning the lights on whenever I open the overhead doors. The ones on the opener aren't very bright and I like the added light when I pull in. The Timer program will also take care of these as well, so just park and go inside, they'll go off 5 minutes later. And again, using the control line allows you to turn off the lights if you want to leave the door open and have the lights off. If ( Control 'Garage / Garage Door Sensor-Big' is switched Off Or Control 'Garage / Garage Door Sensor-Small' is switched Off ) And ( Status 'Garage / Garage Lights' is Off ) Then Set 'Garage / Garage Lights' On Else - No Actions - (To add one, press 'Action')
morreale Posted February 1, 2012 Author Posted February 1, 2012 sweet guys...thanks for all the info. i am going to play with this and try to figure out this stuff. i was running homeseer for years and am just now trying to get into programming using the isy.
morreale Posted February 1, 2012 Author Posted February 1, 2012 i see now where my mistake is...i have the motion sensor in a scene with the switchlinc. i have now removed it and set the motion sensor to also send 'off' commands and i will let isy handle which devices to control. starting to make sense
sanders2222 Posted February 4, 2012 Posted February 4, 2012 I have it set to beep 4 times 1 minute before it shuts off as a warning. Cool. I did not know you can create audible warnings from Insteon switches. I will want to try this.
Recommended Posts