Group of Switches: State Incorrect

I have a Group of two switches called 'Family Room Light Group'. It has functioned perfectly until recently, potentially after updating my C-7 to 2.2.7.126. Now it indicates on when all the switches are off. Am I missing something or is this a bug?

I recreated the group and experienced the same issue.

Have you verified that every switch in the group is reporting its correct state to the hub? Check all of their device pages under "Current States" and verify that you see "switch: off" or "switch: on" for all (according to what you'd expect based on the actual device state and what you are likely comparing the group behavior against). Suffice it to say that if this doesn't work, then the group device won't be accurate, either. Just one likely guess.

Yes

Typo corrected in OP.

I'd suggest flipping one of the toggles regarding Use group device to indicate if any members are on/off - choose one, not both

Can anyone explain why these options exist or why only one of the two can be selected?

A virtual switch is created when a Group is configured. That virtual switch should reflect if any of its constituents are on or off shouldn't it?

Some don't check the state of the group/virtual switch, only using it to control the members --presumably they check the state of members directly, if/when needed.

If you select the option for on, it will only be off if all members are off -- all other cases it is on.

Conversely, if you select the option for off, it will only be on if all members are on -- all other cases it is off.

There isn't a "partial" state to reflect at the top group level that some devices are on, and some off

That is because there is a conflict (in 50% of cases if you only have two switches as members) between what you'd do if the group state is supposed to be one way if any switches are on and another way if any switches are off. The behavior does not combine:

Group on (:white_check_mark:) if any members on:

SW2 On SW2 Off
SW1 On :white_check_mark: :white_check_mark:
SW1 Off :white_check_mark:

Group off (:x:) if any members off:

SW2 On SW2 Off
SW1 On :x:
SW1 Off :x: :x:

As mentioned above, you can use one of these options to get the group device state into a specific state depending on what you want (I happen to prefer the "...any on?" option myself since it seems like the most intuitive, but not everyone likes this). But I don't think you should have to. These options were not originally part of groups, and I think the default is to show the group as "on" when all member devices are on and show it as off in other cases:

SW2 On SW2 Off
SW1 On :white_check_mark:
SW1 Off

Or maybe it's on when all are on, off when all are off, and as it was before until one of those things happens...I can't remember and don't use this option, but it should be easy to test. In all cases, this does, of course, depend on bulbs accurately reporting state back to Hubitat, which it sounds like you have verified.

Pretty sure there should never be a case where it shows as "on" when everything is "off," though--regardless of any of these settings. :slight_smile: I can test this with a group of virtual switches to see if I can replicate...

1 Like

That fixed it, thanks.

1 Like