Simple Automation Rules not shown as Restricted in the Apps screen

Rules which only have a mode restriction are marked with red Restricted annotation when the right mode is set.
But for some reason rules which have both a mode restriction AND a time restriction are not marked as Restricted during the allowed time even if the mode restricts them from running.
Example:

The rule "turn on lights if motion only when the mode is Day" will be marked as Restricted if the mode is Night.
The rule "turn on lights if motion only when the mode is Day and only between sunset and sunrise" will not be marked as Restricted if the mode is Night (probably because it's between sunset and sunrise?)

Looks like a bug to me :slight_smile:

Can you include screenshots of some of the rules, in case they are needed to help determine the source of the bug?

1 Like

Please show the rule, as the text you're showing is not from Rule Machine. Is this a Basic Rule?

My bad, those are not Rule Machine, but Simple Automation rules. Will send screenshots soon. I am editing the category, sorry about that.

Here are the screenshots:
This rule has one restriction and shows Restricted in the Apps screen:

This rule has two restrictions (mode and time) and doesn't show as restricted during the night, when the mode restriction is active, but it is allowed based on time:

1 Like

I will look into this.

Thank you! Another thing that I've noticed (no idea what it means and if it is related), is that in the former rule example clicking on expanding the Restrictions opens a new screen while in the latter it just expends as a panel.

I sounds like one may be an older version, where the Restricted legend has not been fixed. If Simple Automation Rule 1.1 or older, it may well not work correctly. I don't intend to go back to fix this in older versions.

For Simple Automation Rule 1.2, it appears to work correctly for both one or two restrictions. This is the version that opens a new page for Restrictions.

Makes sense. Rule Machine has different apps for different versions, but looks like it's not the case for Simple Automation Rules? It looks like I have a mix of old and new rules there. What's the best way to migrate the rules to the new version? Delete the old ones and create new ones?

If you need to, yes. But except for this UI presentation issue, there should not be a reason you'd need to.

I'm a little confused about SAR versions. Mine shows "Version 1.1.4 (1/20/2022)" in the SAR entry, but I have platform 2.3.1.130, just updated. Same on two C7s. Where does the SAR 1.2 come in? I also found that Rule Machine does not offer to convert the one rule I have, probably because it' the older version.

Look at the Apps list, right column. It shows what version the app is.

Nope, not on my C7s...
Just removed and re-installed. It only shows 1.1.4. No 1.2 in sight anywhere...

Did you install a new SA rule? That is when it showed up for me. Until I installed that new rule just now to test this, it didn't say 1.2 anywhere for me either.

That new rule I installed looks exactly like Bruce's screenshot above.

1 Like

Yeah, that was it. The original rule was apparently 1.1. When I made a new test rule, it then said 1.2, and Rule Machine offered to convert it. I had already done that manually, anyway, so I guess it's moot. Just wonder why the rule doesn't get converted automatically?

They don't convert old rules so they don't break. They just let old rules exist without touching them.

2 Likes