How to group devices?

Here’s a complete solution, you can even import the device and associated flow:
(I made this as answer to a similar question):

.
There’s no “All Open” status, but that’s quite easy (to me) to add. Just ask if you can’t get your head around it. This app has a pretty steep learning curve.