Good day all,
I’m having difficulties setting up my basement motion sensors to act when either of them detects/stops detecting motion.
I’m trying to base it off my existing rule for a single sensor, which is a motion sensor built into a GE switch. These are based on conditions/triggers Richard posted in one of his PLEG basics threads.
Triggers
Name | Description |
---|---|
tBasementLightOn | Whenever the Basement Lights is turned on |
— | — |
tBasementMotion | Whenever Basement Motion detects motion whether is armed or disarmed |
tBasementMotion2 | Whenever Basement Motion 2 detects motion whether is armed or disarmed |
tBasementNotMotion | Whenever Basement Motion stops detecting motion whether is armed or disarmed |
tBasementNotMotion2 | Whenever Basement Motion 2 stops detecting motion whether is armed or disarmed |
tBasementStairMotion | Whenever Basement Stairs detects motion whether is armed or disarmed |
tBasementStairNotMotion | Whenever Basement Stairs stops detecting motion whether is armed or disarmed |
tBasementStairsOn | Whenever the Basement Stairwell is turned on |
Name | Options | Logic Expression |
---|---|---|
cBasementTurnOnLight | (NOT tBasementLightOn) AND tBasementMotion | |
— | — | — |
cBasementAutoOnLight | cBasementTurnOnLight; tBasementLightOn < 15 | |
cBasementTurnOffAutoOnLight | cBasementAutoOnLight AND ( tBasementMotion ; tBasementNotMotion ) AND ( tBasementNotMotion ; NOW > 20:00) | |
cBasementTurnOffManualOnLight | (NOT cBasementAutoOnLight) AND ( tBasementMotion ; tBasementNotMotion ) AND ( tBasementNotMotion ; NOW > 0:45:00) |
So, the primary triggers I’m concerned about are tBasementMotion and tBasementMotion2, and their counterparts tBasemetnNotMotion and tBasementNotMotion2.
tBasementMotion is the GE motion sensor switch that currently works fine. I’ve added a battery-operated motion sensor in a different area of the basement that the GE sensor can’t detect. If I can figure this out, I’ll want to tie the basement stairway into the equation as well, so it doesn’t turn off the basement stairwell lights if it detects motion on either of the basement motion sensors.
My attempt to add the second sensor into the programming logic has been as such:
- Create a condition with an OR condition for motion, and an AND condition for not motion (tBasementMotion OR tBasementMotion2), (tBasementNotMotion AND tBasementNotMotion2), and I’ve substituted this condition into the logic conditions above. It doesn’t give me an error, but it doesn’t work either.
Name | Options | Logic Expression |
---|---|---|
cBasementMotion | (tBasementMotion OR tBasementMotion2) | |
cBasementNotMotion | (tBasementNotMotion AND tBasementNotMotion2) |
- I’ve tried directly adding the above expressions in parenthesis into the condition expression, substituting it for the single trigger, and I get an error that I’m trying to compare null expressions.
Name | Options | Logic Expression |
---|---|---|
cBasementTurnOnLight | (NOT tBasementLightOn) AND (tBasementMotion OR tBasementMotion2) | |
cBasementAutoOnLight | cBasementTurnOnLight; tBasementLightOn < 15 | |
cBasementTurnOffAutoOnLight | cBasementAutoOnLight AND ((tBasementMotion OR tBasementMotion2) ; (tBasementNotMotion AND tBasementNotMotion2) ) AND ( (tBasementNotMotion AND tBasementNotMotion2) ; NOW > 20:00) | |
cBasementTurnOffManualOnLight | (NOT cBasementAutoOnLight) AND ( (tBasementMotion OR tBasementMotion2) ; (tBasementNotMotion AND tBasementNotMotion2) ) AND ( (tBasementNotMotion AND tBasementNotMotion2) ; NOW > 0:45:00) |
What am I missing?
I have another room that I’d like to do this to as well, as I have a hard-wired motion sensor from my alarm system, but I also have a Fibaro 3-in-1 sensor that I can place in a different location for better coverage, but it will also give me lux readings.
Home Lights Logic[288].pdf (151.3 KB)