RM 4.0 Rule Questions and Optimizations


#144

Perfect


#145

when I try to do that this happens:


#146

actually - ignore that - I got it working!


#147

I bet you discovered that it is range checking the value. So if the variable contains an out-of-range value when you set it up, you get ** bad value **


#148

exactly


#149

No, still haven't figured it out. I am having an issue with canceling a delayed action too, but I think it might have a similar solution. Look up canceling here, and I think a similar thing for repeats will work.


#150

Having trouble with a rule. I'd like turn a lamp off at 10:05 if I'm away, otherwise turn it off after sunrise. We leave it on at night for one of the kiddos. It seems to always turn off at 10:05.

app:1332019-08-19 03:13:55.094 pm infobasementLampOff: Resumed

app:1332019-08-19 03:13:52.651 pm infobasementLampOff: Paused

app:1332019-08-19 06:50:00.960 am infoAction: IF (( Time is 10:05 PM CDT(F) AND Mode is Away(F) ) OR Time is Sunrise+30 minutes(T) [TRUE]) THEN

app:1332019-08-19 06:50:00.647 am infoAction: Off: basementLamp

app:1332019-08-19 06:50:00.578 am infobasementLampOff Triggered

app:1332019-08-19 06:50:00.542 am infobasementLampOff: Triggered at Certain Time

app:1332019-08-18 10:05:00.631 pm infoAction: IF (( Time is 10:05 PM CDT(T) AND Mode is Away(F) ) OR Time is Sunrise+30 minutes(F) [FALSE]) THEN (skipping)

app:1332019-08-18 10:05:00.409 pm infoAction: Off: basementLamp

app:1332019-08-18 10:05:00.352 pm infobasementLampOff Triggered

app:1332019-08-18 10:05:00.322 pm infobasementLampOff: Triggered at Certain Time


#151

That's correct or at sunrise +30mins. Because that's what you have told to do. You condition does nothing because it's after the off.


#152

You have put the action to turn the light off at the begining.
At 10:05 it will turn the light off.
Thae action to turn the light off should be after the conditions.