Nesting logic

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:

  1. The Tub light never comes on.
  2. 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!

Or you could just use webCoRE and import your piston. :wink:

Could you show a screenshot of your rule as it is difficult to read the logic as you have shown it.
It's a job to see what is nested where.

BTW. Welcome to the community. :+1:

Does Webcore run local on hubitat? For some reason I thought it was cloud and RM was local...

If I could just import pistons, I'd be a pretty happy guy!!!

Yes, with webCoRE all pistons are stored and run locally. The only time it needs cloud access is for defining/editing/deleting pistons. Then it will use the webCoRE server.
You can define a local server, (maybe an rPI) and use that as a webCoRE server which keeps everything local.
As for your piston..............

Don't spend anymore time on the RM above, I'll just import my previous piston since it was working on ST. Thanks!!

(Edit: I can't delete the thread, but no longer need help with the RM)

1 Like

I had everything on webCoRE then gradually moved over to RM.
Simple stuff to start with then the more complex stuff.
Once you get your head around it its not too bad.
I figure it's better to use built in apps as these are supported.
Although webCoRE works well it is not supported by the HE team.

I'll likely return to RM, but for now and for WAF, I'm favoring a quick way to transition...

Then I can take my time and reacquaint myself with RM and the built in tools. Wasn't planning this transition, but ST dumped all my devices late last week, and support gave me the runaround... If I have to reinstall the 230+ devices, I might as well make the transition anyway...

3 Likes