I'm just coming over from ST and have been using Webcore... I used RM back when it was on ST, but I seem to have forgotten some of the nesting logic since then...
This rule will be much more complex, as I need to add several outlet power usage conditions, but first I need to figure out the basic logic of multiple conditions...
Issues:
- The Tub light never comes on.
- Likewise C lamp doesn't always come on. (appears to be if N motion is triggered first)
(N lamp will always come on if N motion is triggered - so ordering is likely culprit)
Select Trigger Events (ANY will trigger)
Master bed motion, C motion, N motion any changed
IF (Master bed motion, C motion, N motion any active(T) [TRUE]) THEN
Cancel Delayed Actions
IF (Mode is Day(F) [FALSE]) THEN
Dim: Ceiling Light: 99
ELSE-IF (Mode is Night(T) AND
N motion active(T) [TRUE]) THEN
Dim: N lamp: 20
ELSE-IF (Mode is Night(T) AND
C motion active(T) [TRUE]) THEN
Dim: C lamp: 20
ELSE-IF (Master bed motion active(T) AND
( N motion active(T) OR
C motion active(T)
) [TRUE]) THEN
Dim: Tub light: 20
END-IF
ELSE-IF (Master bed motion, C motion, N motion all inactive(F) [FALSE]) THEN
Off: Ceiling Light, C lamp, N --> delayed: 0:00:45 (cancelable)
END-IF
Basically, If either person moves out of bed the C or N motion will show active. If they move away from the bed, the master bed motion will be active.
So if either of N or C is active at night the respective N or C lamp should come on dim. If moving away from the bed N or C in additional to Master bed active then the tub light should also come on...
Best way to write the logic? (don't worry about turning off tub light as it gets turned off in a different rule)
Thanks!