Jump to content

Mahon

Members
  • Posts

    17
  • Joined

  • Last visited

Mahon's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. Hi Michel, When you say that you tested the program, which program did you test? Was it the program posted in the original post, my revised program, or the program posted by Oberkc?
  2. Thanks. I'll give those programs a try. Just curious, what is your reasoning behind why you think the 2 programs will work better?
  3. I think you are correct in that if the motion sensor is triggered at 9.5 minutes or less before sunrise the lights will not turn off until the next sunset. The following code should fix that: If ( ( Status 'Driveway_Motion1-Sensor' is On Or Status 'Driveway_Motion2-Sensor' is On ) And From Sunset To Sunrise (next day) ) Or Program 'On_DrivewayLights' is True Then Set 'Driveway_LightsPath' On Wait 9 minutes and 30 seconds Set 'Driveway_LightsPath' Off Else - No Actions - (To add one, press 'Action') However, I find it unlikely that the motion sensors have been triggered at exactly 9.5 minutes or less before sunrise so many times. Once, or twice I could believe, but this has happened at least 4 days that I'm aware of. The objective of this code is to turn on the lights for 10 minutes when motion is sensed, but only at night (e.g. after sunset and before sunrise).
  4. I've gone through the rest of my programs to make sure nothing is setting the lights or calling my lights program. I don't have many programs, so this was easy. In response to your second question, would the "Or On_DrivewayLights is True" in the If statement take care of that situation? For example, if the lights come on less than 9.5 minutes before sunrise...then sunrise happens...then the if statement is reevaluated and since it is already running, it continues to run the if statement, but restarts the 9.5 minutes...eventually it times out and turns off the lights.
  5. When the lights turn on during the day, all the states in the ISY are correct. The program last run time is the time that the lights just turned on and the state of the program is "Running" (counting down on the timer in the True statement). I have also checked the device and ISY link tables for the lights and they both show nothing. Is it possible for the lights to have links that the ISY is not showing? The "lights" are an Insteon ToggleLink. The motion sensor is triggered during the day numerous times. However, I thought I had written the program so that even if the motion sensor was triggered that the light would not turn on during the day.
  6. The motion sensors and the lights are not part of any scenes; only the program I posted above. I've also verfied that the location and the time in my ISY is correct. I even have it configured to synch every 24 hours to pool.ntp.org. I also checked that the sunrise and sunset times are correct, and they are.
  7. I have the following program called "On_DrivewayLights": If ( Status 'Driveway_Motion1-Sensor' is On Or Status 'Driveway_Motion2-Sensor' is On Or Program 'On_DrivewayLights' is True ) And From Sunset To Sunrise (next day) Then Set 'Driveway_LightsPath' On Wait 9 minutes and 30 seconds Set 'Driveway_LightsPath' Off Else - No Actions - (To add one, press 'Action') I would like it to only turn on the lights if at night and stay on for 10 minutes (the motion sensor has a 30 second reset). I had to add the "Or Program On_DrivewayLights is True" in case any of the conditions change while the timer is running, the lights would never get turned off. It works fine for turning on the lights when motion is sensed. The problem is that the motion sensing is still turning on the lights even during the day. It doesn't happen all the time. Everything seems to work fine in the afternoons, but the lights will still come on when motion is sensed at 10AM (sunrise at 7AM). Is there something I've programmed incorrectly here?
×
×
  • Create New...