Delayed X10 command with a twist
Posted: Fri Dec 12, 2003 11:17 pm
Hi,
First of all, let me say that I've played with lots of X10 programs in the last while, and I settled on yours because it did what I needed and has the flexibility to do what I expect to need in the future. I think you should be accepting donations for your work - I'm offering!
Anyways, I seem to have got a basic system doing what I want, except for this one item...
I have a motion detector in the laundry room which is to control a light in there. The light should turn on when there is motion detected - no problem, I've got that handled .
It should also turn off about 1 minute after motion is last detected. Using a simple delay would implement an off signal at a set delay after motion is first detected - not what I want. I don't want the poor slob doing the laundry left in the dark 1 minute after he arrives - I want the light turned off 1 minute after he's finished.
(I realize that this functionality is built into some X10 motions sensors directly, but I want to bypass that so I don't have to do the damn programming of the motion sensor delay using those little buttons in arcane combinations each time I want to adjust it or change the batteries)
I attempted to do this by adding a property "Last triggered" to the X10 Transmitter device I named "Laundry Motion" and then creating a task that assigned the current date and time to the property when the power state of the transmitter went on.
The problem is that there seems to be no way to create a condition like "Laundry Motion.Last Triggered + 1 minute = Current Date and Time"
Suggestions or other approaches appreciated.
First of all, let me say that I've played with lots of X10 programs in the last while, and I settled on yours because it did what I needed and has the flexibility to do what I expect to need in the future. I think you should be accepting donations for your work - I'm offering!
Anyways, I seem to have got a basic system doing what I want, except for this one item...
I have a motion detector in the laundry room which is to control a light in there. The light should turn on when there is motion detected - no problem, I've got that handled .
It should also turn off about 1 minute after motion is last detected. Using a simple delay would implement an off signal at a set delay after motion is first detected - not what I want. I don't want the poor slob doing the laundry left in the dark 1 minute after he arrives - I want the light turned off 1 minute after he's finished.
(I realize that this functionality is built into some X10 motions sensors directly, but I want to bypass that so I don't have to do the damn programming of the motion sensor delay using those little buttons in arcane combinations each time I want to adjust it or change the batteries)
I attempted to do this by adding a property "Last triggered" to the X10 Transmitter device I named "Laundry Motion" and then creating a task that assigned the current date and time to the property when the power state of the transmitter went on.
The problem is that there seems to be no way to create a condition like "Laundry Motion.Last Triggered + 1 minute = Current Date and Time"
Suggestions or other approaches appreciated.