Group Switches with exec binding not working correctly

Hi,
I want to switch some wireless sockets via one group item in my sitemap.
So, I have created an item file “home.items” which looks like:

//Switches
Switch L_WZ1 (L_WZ) {exec=“ON:sudo /usr/local/bin/send 11101 1 1,OFF:sudo /usr/local/bin/send 11101 1 0”}
Switch L_WZ2 (L_WZ) {exec=“ON:sudo /usr/local/bin/send 11101 2 1,OFF:sudo /usr/local/bin/send 11101 2 0”}
Switch L_Teich (Alle) {exec=“ON:sudo /usr/local/bin/send 11101 3 1,OFF:sudo /usr/local/bin/send 11101 3 0”}

/* Groups*/
Group:Switch:OR(ON, OFF) L_WZ “Alle Lichter im WZ [(%d)]” (Alle)
Group:Switch:OR(ON, OFF) Alle “Alle Lichter [(%d)]”

The “home.sitemap” contains the following:

sitemap demo label=“Zuhause”
{
Frame label=“Wohnzimmer”{
Switch item=L_WZ1 label="Stehlampe"
Switch item=L_WZ2 label=“Schrankbeleuchtung”
}
Frame label=“Lichter im Wohnzimmer”{
Switch item=L_WZ label=“Alle [(%d)]” icon=“light” mappings=[OFF=“Aus”, ON=“An”]
}
Frame label=“Terrasse”{
Switch item=L_Teich label=“Teichbeleuchtung”
}
Frame label=“Lichter im Haus”{
Switch item=Alle label=“Alle [(%d)]” icon=“light” mappings=[OFF=“Aus”, ON=“An”]
}
}

When I am using the “ON” option of grouped switch “L_WZ”, which contains the
switches L_WZ1, L_WZ2 then it is working only on GUI level. That means, both
icons of the single switches L_WZ1, L_WZ2 are changed from white light icons to
yellow icons and also the icon of “L_WZ” is changed in correct way. But nothing
is working on physical level. The exec binding command e.g. “sudo /usr/local/bin/send
11101 1 1” and “sudo /usr/local/bin/send 11101 2 1” will not be sent.

On single switch level (separately switching L_WZ1, L_WZ2) all is working fine. Both
wireless sockets are switching from ON to OFF and vice versa.

Are there any ideas, what I have to do, to switch grouped items in correct way?
Thanks a lot…
Rolf

Hi Rolf,

Maybe like this:

item.file

//Switches
Switch L_WZ1 (L_WZ, GroupSwitch) {exec=“ON:sudo /usr/local/bin/send 11101 1 1,OFF:sudo /usr/local/bin/send 11101 1 0”}
Switch L_WZ2 (L_WZ, GroupSwitch) {exec=“ON:sudo /usr/local/bin/send 11101 2 1,OFF:sudo /usr/local/bin/send 11101 2 0”}
Switch L_Teich (Alle, GroupSwitch) {exec=“ON:sudo /usr/local/bin/send 11101 3 1,OFF:sudo /usr/local/bin/send 11101 3 0”}

/* Groups*/
Group GroupSwitch

sitemap.file

Switch item=GroupSwitch mappings=[OFF=“All Off”, ON=“All On”]

Cheers
Björn