Please login or register.

Login with username, password and session length

Author Topic: Conditions on macros not working??  (Read 2332 times)

patrenhack

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Conditions on macros not working??
« on: August 03, 2010, 09:32:41 PM »

Hi,

I would like to have my light go on at dusk and off at 10PM (this is no problem). Then, I would like the lights to go on for 5 minute if motion is sensed between 10PM and dawn. I can get a macro with the motion to work but only without a condition. Once I add  the condition (after 10PM and before dawn) the macro does not work.

Other posts indicated a problem with the "time" on condition (being off by 5 hours). Their solution was to upgrade to version 3.228.  I did this but the conditions are still not working.

The contol module is a CM15A. The motion detector is a eagle eye. The hardward doesn't matter much as I should be able to see the module change states on the PC. I can see the module change stated properly without the condition.
 
Any advice??? Thanks!!!

Derek
Logged

HA Dave

  • Hero Member
  • *****
  • Helpful Post Rating: 175
  • Posts: 7127
Re: Conditions on macros not working??
« Reply #1 on: August 03, 2010, 09:57:14 PM »

I would like to have my light go on at dusk and off at 10PM (this is no problem). Then, I would like the lights to go on for 5 minute if motion is sensed between 10PM and dawn. I can get a macro with the motion to work but only without a condition. Once I add  the condition (after 10PM and before dawn) the macro does not work.

I have problems with "time based conditions" myself. I generally use the time to turn on/off a fake "monitored module" (or set and clear a flag) then use that.. as the condition.
Logged
Home Automation is an always changing technology

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: Conditions on macros not working??
« Reply #2 on: August 11, 2010, 12:11:37 PM »

I have also had problems creating macros with conditions that cross midnight (ex: between 10:00 PM and Dawn). It has something do do with the way AHP interprets the boundaries of the day. Within the same 24 hour period (12:00 AM to 11:59 PM), you can't have a condition that is between those times (ie: After 10:00 PM AND Before Dawn), since they are at opposite ends of the 24-hour window.
What I have done to get around this is to split the condition in half (ex: Before Dawn OR After 10:00 PM).
This seems to fix it for me, as the macro will trigger if either half of the condition is true (ie: "Between 12:00 AM and Dawn" OR "Between 10:00 PM and 11:59 PM").

You might want to give that a try.

--Noam
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.