123
Senior Member
You need two things to make this work:
WHENEVER MotionDetector (Zn 5) BECOMES NOT SECURE
THEN TURN LightTimer (Out 64) ON FOR 1 RESTART TIMER IF RUNNING
WHENEVER LightTimer (Out 64) STATE IS TURNED ON
THEN TURN RoomLight [1 (A1)] ON
WHENEVER LightTimer (Out 64) STATE IS TURNED OFF
THEN TURN RoomLight [1 (A1)] OFF
The example uses the following M1 resources (change them to match your environment).
Zone 5: MotionDetector
Output 64: LightTimer
A1: RoomLight (X10 protocol)
How It Works
Whenever the motion detector sees movement it restarts a one-minute timer. When the timer is activated the first time, the light is also turned on. When the timer expires, the light is turned off.
To reduce PLC traffic on the powerline, the "ON" command is issued only once when the timer is initially activated. No other PLC commands are generated until the timer expires and an "OFF" command is issued.
Everytime there is movement in the room, the one minute timer is restarted and the light remains on. If there is no movement detected for one minute, the timer expires and the light is turned off. Please adjust the timer's period to suit your needs.
- a motion detector
- a light controlled by the M1 via PLC (X10, Insteon, Zwave)
WHENEVER MotionDetector (Zn 5) BECOMES NOT SECURE
THEN TURN LightTimer (Out 64) ON FOR 1 RESTART TIMER IF RUNNING
WHENEVER LightTimer (Out 64) STATE IS TURNED ON
THEN TURN RoomLight [1 (A1)] ON
WHENEVER LightTimer (Out 64) STATE IS TURNED OFF
THEN TURN RoomLight [1 (A1)] OFF
The example uses the following M1 resources (change them to match your environment).
Zone 5: MotionDetector
Output 64: LightTimer
A1: RoomLight (X10 protocol)
How It Works
Whenever the motion detector sees movement it restarts a one-minute timer. When the timer is activated the first time, the light is also turned on. When the timer expires, the light is turned off.
To reduce PLC traffic on the powerline, the "ON" command is issued only once when the timer is initially activated. No other PLC commands are generated until the timer expires and an "OFF" command is issued.
Everytime there is movement in the room, the one minute timer is restarted and the light remains on. If there is no movement detected for one minute, the timer expires and the light is turned off. Please adjust the timer's period to suit your needs.