This is my first use of a motion sensor, the well known X10 brand MS14A device. This is pretty basic stuff so I hope someone has experienced a workaround. I'm not using any motion plug-ins.
Goal:
Use this sensor to turn a hallway light on when someone walks by between certain hours. I want to turn the light off 30 seconds after activity has stopped. If activity continues for a long period of time (as in >30 seconds) or if someone walks through several times only turn the light off 30 seconds after the last trigger.
Current attempt:
To window the activation to be between certain hours I need to have a dedicated event, I can't use MS14's built-in light sensor. I have setup a device code for the sensor and another for the light. As can be seen in the event Action screen below, when the sensor triggers (using device status changed to on) it turns the light on, waits 30 seconds, and then turns it off. The problem is with re-triggering. The 30 second wait needs to re-trigger each time the MS14A transmits. It does not.
So I end up with the light flashing on and off with continuous activity. The MS14A retransmits on every 10 seconds (eventually starting several instances of the event) and the 30 second waits turn it off. Naturally this fills up the log file.
What is the right way to do this?
Goal:
Use this sensor to turn a hallway light on when someone walks by between certain hours. I want to turn the light off 30 seconds after activity has stopped. If activity continues for a long period of time (as in >30 seconds) or if someone walks through several times only turn the light off 30 seconds after the last trigger.
Current attempt:
To window the activation to be between certain hours I need to have a dedicated event, I can't use MS14's built-in light sensor. I have setup a device code for the sensor and another for the light. As can be seen in the event Action screen below, when the sensor triggers (using device status changed to on) it turns the light on, waits 30 seconds, and then turns it off. The problem is with re-triggering. The 30 second wait needs to re-trigger each time the MS14A transmits. It does not.
So I end up with the light flashing on and off with continuous activity. The MS14A retransmits on every 10 seconds (eventually starting several instances of the event) and the 30 second waits turn it off. Naturally this fills up the log file.
What is the right way to do this?
Comment