Help with rule - open only if closed and grouping

I have an existing rule to close my curtains at a specific time, wait until morning, re open them at a specific time. It works fine but I'm going to change it to do away with the wait until time; the reason being that if I happen to reboot the hub, or amend the rule during the (long) wait period, the curtains remain closed as I've interrupted the running rule. I'll either create two separate rules or just use multiple triggers.

I'd like to set this up so that the close command is only sent to devices that are open on an evening and likewise the open command is only sent to currently closed devices on a morning, as I may have already closed/opened them manually using the wall switch. When I very briefly used webCore with SmartThings, there was a way of defining a group called "curtains" that contained each rooms curtain as a member of that group. The webCore piston could then look at the status of each member and send/not send the command accordingly. Is there any similar method in RM or do I just use multiple IF, end IF statements. It's no hassle to do it that way but I wondered if there was a better alternative. Thanks.

If they are just on/off switches they could be sent to a group, using the built in group and scenes app. Groups have on/off optimization setting, which I believe, tells HE to not send the on or off command to a device already in that state.

If your manual switch is not monitored by HE, however, it has no way of knowing if the switch has been opened or closed. I have a similar setup with blinds. My blinds are controlled via HE using a bond bridge, and as long as I use the HE dashboard or Alexa to control the devices then my rules know the current state of the blinds. If, however, someone uses one of the remotes then the blind would get out of sync.

My evening routine to close just sends the close command to every shade. My shades have a partially opened position as well, so if a remote was used by sending the close to every shade it syncs everything back up. I don't think I would worry about sending a close command to a device that is already closed.

1 Like

Thanks. I did notice the groups and scenes app this morning, but I’m sending a position of 0 for close, 99 for open. This was necessary as the Qubino Shutter module seems to remember a previous position. IE if I set the curtain to 50 manually with a dash tile then send a close, it closes fully. However when the rule sends an open - it only opens to the previous level of 50.

There are only 5 curtains/shades in the rule and I’ve never had a command not received so as you say I’ll not fuss about conditional closing/opening.