Thanks much. Really appreciate your help on this topic.
The logic with gAlarm is really smart. I like it a lot and I’m about to implement it.
Are you aware of any limitation when adding groups or members to groups, that this needs some time or OH2 restart?
I added the gAlarm group and added the members via cfg file. Log sais, that item files have been refreshed. But when testing the new group via rest interface, there are no members in the group. Same when checking the item via rest. The newly added group is not listed in the groupNames array.
Only after stopping OH and starting again the group memberships are populated.
swa@nuc:~$ curl http://nuc:8080/rest/items/gAlarm
{"members":[],"link":"http://nuc:8080/rest/items/gAlarm","state":"NULL","type":"Group","name":"gAlarm","label":"Rollaeden","tags":[],"groupNames":["All"]}
swa@nuc:~$ curl http://nuc:8080/rest/items/eg_wz_rolladen
{"link":"http://nuc:8080/rest/items/eg_wz_rolladen","state":"0","stateDescription":{"pattern":"%d %%","readOnly":false,"options":[]},"type":"Rollershutter","name":"eg_wz_rolladen","label":"Rolladen Wohnz.","category":"rollershutter","tags":[],"groupNames":["gEG_Rollaeden"]}
swa@nuc:~$ oh2 stop
swa@nuc:~$ oh2 start
swa@nuc:/etc/openhab2/items$ curl http://nuc:8080/rest/items/gAlarm
{"members":[{"link":"http://nuc:8080/rest/items/eg_wz_rolladen","state":"0","stateDescription":{"pattern":"%d %%","readOnly":false,"options":[]},"type":"Rollershutter","name":"eg_wz_rolladen","label":"Rolladen Wohnz.","category":"rollershutter","tags":[],"groupNames":["gEG_Rollaeden","gAlarm"]},{"link":"http://nuc:8080/rest/items/eg_esszimmer_rolladen_garten","state":"0","stateDescription":{"pattern":"%d %%","readOnly":false,"options":[]},"type":"Rollershutter","name":"eg_esszimmer_rolladen_garten","label":"Rolladen Essz.","category":"rollershutter","tags":[],"groupNames":["gEG_Rollaeden","gAlarm"]}],"link":"http://nuc:8080/rest/items/gAlarm","state":"NULL","type":"Group","name":"gAlarm","label":"Rollaeden","tags":[],"groupNames":["All"]}
swa@nuc:/etc/openhab2/items$ curl http://nuc:8080/rest/items/eg_wz_rolladen
{"link":"http://nuc:8080/rest/items/eg_wz_rolladen","state":"0","stateDescription":{"pattern":"%d %%","readOnly":false,"options":[]},"type":"Rollershutter","name":"eg_wz_rolladen","label":"Rolladen Wohnz.","category":"rollershutter","tags":[],"groupNames":["gEG_Rollaeden","gAlarm"]}