Yes, I do have the same switches in different groups, One dimension of groups is “Groups by Room”, the other dimension is “Devices by Function”. E.g. the switch for a light in the livingroom is displayed in the group “livingroom” and in the group “light”. But there is no hierarchy between these groups. Both exist parallel.
The reason is more comfort using the GUI. If I am in the livingroom and do different things there I use the group livingroom and have all devices in that room on Display (including the light-Switch). Going to bed I would like to switch off different lights in different rooms. So I use the group light (including the switch for the light in the livingroom), where I have all the lights on one display. Another reason is, that I want to install panels in different rooms, that should (by default) Display the group for that room, but should also allow to navigate to the “Device by Function”-groups.
The actual behaviour is, that I do not only face the situation, that the switch in the other group is not updated in the GUI (I could live with that, because this would simply mean to have to switch twice to get it syncronized and to get back to a trustworthy situation), but that the switch in the other group works inverted, and never gets synchronized until I switch back the switch in the group used first.
Example: I go to the group livingroom. The switch for the light is off, and displays as off in the GUI. I switch the light on, the switch is really on, and the GUI displays it as on in the group livingroom.
Later I navigate to the group light to switch off several lights. The switch is displayed off in the GUI, although it is really on (so far no problem, see above). But switching to on in the GUI results in switching the light off and vice versa. So I never get the switch and the GUI synchronized (until switching back in the group used first).
Switching a light from an other room, where I am unable to see it, is impossible this way, when I do not know who used which switch in which group in the meantime. The whole system is not trustworthy.
The more I think about it, the more I see the reason for the problem. Obviously the switch item is just toggling the state, everytime it is used and does not send concrete on- and off-commands. But the funny thing is, that when I am using my tablet or mobile and the panel the behaviour is the other way round. I have the switch in the GUI displayed wrong, but switching it, results in “nothing”, So GUI and switch are in sync the next time i switch. For a remote use this would be sufficient (simply switch on and off, and the GUI is in sync again and trustworthy).
Should I implement rules for every switch to send concrete on- and off-commands?