Assistance with Rule for everthing on/off

I have a virtual switch set up to turn on when something is on. If I turn the virtual switch off it turns everything off I have assigned to it. I need a rule that would turn off this virtual switch automatically if everything assigned is turned off (ether manually or thru programing).

For the life of me I cannot get the switch to automatically turn off when everything is off. It was easy to get it to turn on when something (anything) turns on, but I cannot figure our how to require everything to be in the off state for it to automatically turn off.

Any assistance would be deeply appreciated. Thanks.

Ed Sanders

Did you try groups? You can set it so the switch it creates will show on if any device assigned to the group is on , if they are all off it will be off.

Sorry. I guess I am thick. Not sure where or how to use groups. I see that rooms are now available, but not familiar with Groups. Can you explain in any more detail? Thanks.

It's a built-in app called Groups and Scenes. You just have to install it by clicking on the "add built-in app" button and you're off to the races, You may also be able to use scenes to accomplish the same thing. It's all pretty self-explanatory once you load the app, though there are some nuances to scenes that take a bit...

I have installed Groups and Scenes. I created a Group called "House" and placed all of my switches/dimmers in the group. Now where does the group show up? I previously created a virtual switch that turns everything off. If something is on it turns on, but it does not automatically turn off when everything is off...

It shows up as a device...

Thanks. I jumped before I looked. I did find it and it seems to work well. A lot easier than what I was doing with the rule machine. Now when something is on it is on. When I turn it off everything turns off. I now have the added function that if I turn it on everything turns on...

Appreciate all of the great assistance.

Ed Sanders

2 Likes

I appear to have some kind of problem. The group for my entire hose will turn on all the lights in the house. This appears to work fine, but it crashes the Hubitat when I try to turn off the group. Is there a limit to the number of devices that can be in a group? Can groups be ganged into a master group? Would this solve my problems? Thanks.

There may be too many commands going to the hub at once. To fix this, under the group app turn on metering for about 50 to 75 ms. The metering option is at the bottom of the app. This puts a delay between each device command. You can experiment with the delay time.

I believe this metering option was added in 2.2.6