I have a simple case to setup, but it is not working. I want 1 group switch to switch on 2 smart bulbs (Mi-Light). I can switch them on seperately, but not with a group switch for all lights.
PaperUI is an administrators UI, and does not behave the same as e.g. Basic UI.
Clicking to turn a switch on only tries to change the state. It does not issue a command.
A Group’s state is derived from it’s member Items. It is not possible to update the state of a group directly.
A Group sent a command will pass it along to its member Items. It won’t affect the group state directly, but of course the member Items might change state in respnse to the command, and that will get reflected in the Group state.
The summary is, put your Group on a sitemap as a switch and view it with BasicUI and it will all behave more like you expect.
Hi Rich, I replaced the # for // and I do see now that 1 error is gone now in the logs. Strangest thing is that I replaced the group item for a normal item and afterwards I undid this change putting back in the group item. Now I can turn it on and the switch stays on. These are the logs now:
==> /var/log/openhab2/events.log <==
2019-02-26 08:49:09.667 [ome.event.ItemCommandEvent] - Item ‘AlleLampen’ received command OFF
2019-02-26 08:49:09.687 [vent.ItemStateChangedEvent] - AlleLampen changed from ON to OFF
==> /var/log/openhab2/openhab.log <==
2019-02-26 08:49:10.820 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename default.sitemap does not match the name Steenuilie of the sitemap - please fix this as you might see unexpected behavior otherwise.
2019-02-26 08:49:14.581 [WARN ] [sitemap.internal.SitemapProviderImpl] - Filename default.sitemap does not match the name Steenuilie of the sitemap - please fix this as you might see unexpected behavior otherwise.
==> /var/log/openhab2/events.log <==
2019-02-26 08:49:15.923 [ome.event.ItemCommandEvent] - Item ‘AlleLampen’ received command ON
2019-02-26 08:49:15.936 [vent.ItemStateChangedEvent] - AlleLampen changed from OFF to ON
Hi Rossko, thanks for reaching out to help. Also thanks for clearing out to me to better use the BasicUI. I will… I don’t quite get where you want to go to with “put your Group on a sitemap as a switch”, I thought I allready had that?
Now I can switch the switch on without it falling back. But when I look into BasicUI I still can’t see that the members are turned on: