Can't get RM4 to play ball

I'm trying to get RM4 to run and action off a virtual switch, delay the action and the run the same action again but I can't get past the first action.

Any help would be much appreciated.

Try changing your second IF-THEN to ELSE-IF.
Delete your first 'Off' action.
Delete your second 'On' action

IF back bathroom on THEN
On. Bath fan
Cancel delayed actions
ELSE-IF back bathroom off THEN
Off. Bath fan delayed 00:00:05 (cancelable)
END-IF

Ah. Just re-read your post.
This is not what you are trying to do is it?

1 Like

Hi.

Your third line that delays the OFF sets a timer to turn the two things off in five seconds BUT it does not delay the execution of the rest of the rule. It sets the timer then immediately evaluates the IF condition.

If you put an explicit delay (line you have in line five) before line three and took out the delay in line three, it would work as expected.

1 Like

If the above doesn't help, you could you be more specific about what you want to do? Right now, your rule might as well have a trigger of "Back Bathroom turns on" instead of "Back Bathroom turns *changed*" because it will only do something if the switch is on to start. There is no harm and the outcome would be equal with your rule as-written either way, but I'm not sure if this is intentional or if some combination of the above or something entirely different would be what you need to make the rest work how you want.

1 Like

Thanks guys for your help.
The Aeon Multisensor 6 was controlling the humidity of the bathroom fan but it dropped off the network and haven't been able to get it to work since. So as a work around, I've created a VS on my dashboard to trigger a rule to do the following...
VS to start fan for 5mins, stop for five mins, start again for 5mins then switch off.
I've set it to 5sec for testing btw.
The reason for 5 on 5 off 5 on 5 off is because I have a very testy daughter who complains if the fan runs the whole time during her shower :unamused:

How about.
IF VS on THEN
On fan.
Wait 5 mins
Off fan.
Wait 5 mins
On fan.
Wait 5 mins
Off fan.
END -IF

2 Likes

That did it, Thanks bobbles, steve.maddigan and bertabcd1234 for your help!!

2 Likes