robandcathy1 Posted November 12, 2020 Posted November 12, 2020 Hey community, so I have basic linking and programming down, but I have a little more difficult program out of my scope but if someone could nail it I can use it for other programs in mind. Scenario I have my bathroom in a dark place i want motion sensor especially at 2 am to turn on the light via motion for 5 min....ok I got this, but what if gf comes in at 8am to shower obviously she will be mad showering and light turns off, how do I write a program that over rides the motion by actually pressing the switch AND in case my forgetful GF dosent turn off switch lets say in a hour of no activity it will shut it off any ways, my second program is if your walking up to drive way drive way motion is triggered, but if its late at night and drive way motion is triggered and Front door is triggered in lets say 30 seconds that Hall way Light goes on for 2 min at 100% . Iv never used these variables but would love to use the ISY to its fullest. I'm using gen 2 motion sensors from insteon so setting would be great too if any needed.
oberkc Posted November 12, 2020 Posted November 12, 2020 I am assuming you are using insteon devices. For the bathroom, it sounds as you want motion detection to turn on light automatically, and off again in 5 minutes, when walking into a dark room. Additionally, you want a manual control of the light to disable the motion response, but the lights to automatically turn off in an hour when manually turned on. (I will not address the risk of someone walking into a fully-lit bathroom at minute 59 and the reaction when the lights go out at minute 60). You could use scenes and MS settings for some of this, but I will address entirely from programs, assuming there are no scenes involved. Forgive the inexact wording of the program language: Program 1 if control motion sensor is on then turn on light wait five minutes turn off light Program 2 if control light switch is turn on And control light switch is not turned off then disable program 1 wait one hour turn off light swith enable program 1 else enable program 1 For the driveway program, you do not state what you want to happen, if anything, when driveway motion is triggered and it is not late at night, so I will assume nothing. . Program 1: if control driveway motion sensor is triggered and time is from late at night to not late at night then run program 2 (then path) program 2: if nothing then enable program3 wait thirty seconds disable program3 Program 3: if front door is triggered then turn on hallway light wait 2 minutes turn off hallway light 1
robandcathy1 Posted November 12, 2020 Author Posted November 12, 2020 Awesome thanks Ill try that hope it works because this programing is soooo confusing and its a shame that the isy can do so much stuff that most users dont even know. Thanks
robandcathy1 Posted November 13, 2020 Author Posted November 13, 2020 Hope this is what I was supposed to do, I added a few things based on your theory since I have 3 insteon switches in bathroom
oberkc Posted November 13, 2020 Posted November 13, 2020 You will probably need some parentheses in your condition. Add them ahead of the first line and after the third.
robandcathy1 Posted November 13, 2020 Author Posted November 13, 2020 (edited) see this is where it gets confusing because it kinda works, light never turns off, but does change light level during motion, your a great help, illl give that a try. Edit how do I add parentheses? I read a wiki explaining this but searched on how to add them no avail. The idea works and makes sense but how do I add them seen many examples but no where could I find how to use them, I like to learn not having work given out to me, Id wish there was more programing excerpt in wiki from people to have one place to see all different programs people use to build off of. Like i wanted this or that hers the program, I would like use strictly programming like templates people can just tweak for their personal preference.. Also A better explanation of how they created the program. Not all ISY users are so tech savey most just want to turn lights on or off, which was fine for me last few years but ISY can do so much more with program knowledge that many of us do not have. Edited November 14, 2020 by robandcathy1
oberkc Posted November 14, 2020 Posted November 14, 2020 (edited) After adding the parentheses, you will likely need to move these to the proper location in the program. Edited November 14, 2020 by oberkc 1
Recommended Posts