I want to switch on/off all the lamps with one click. The lamps are switched via remote sockets and exec.binding.
Testing the config I started with only one lamp belonging to the group ALS. All ok at this stage.
Strangely, when I had added more lamps to the group, the group:switch didn’t work anymore. Also the “testing” lamp refused to react. (I just saw the unresolved post “Switch group with exec binding” that addresses the same issue).
The commands are sent to the lamps in the right way:
2016-02-28 23:03:01.856 [INFO ] [runtime.busevents ] - Nr11100_1 received command OFF
2016-02-28 23:03:01.928 [INFO ] [.o.b.exec.internal.ExecBinding] - executed commandLine 'sudo /opt/openhab/configurations/brennenstuhl/off 11100 1’
2016-02-28 23:03:01.948 [INFO ] [runtime.busevents ] - Nr11100_2 received command OFF
2016-02-28 23:03:01.955 [INFO ] [.o.b.exec.internal.ExecBinding] - executed commandLine ‘sudo /opt/openhab/configurations/brennenstuhl/off 11100 2’
… and so on
The configuration looks as follows:
Items:
Group:Switch:OR(ON, OFF) ALS “Alle Lampen [(%d)]” (All)//ALS = Alle Lampen schalten
Switch Nr11100_1 “Sofa” (ALS,EG_Wohnen, Lampen) {exec=">[OFF:sudo /opt/openhab/configurations/brennenstuhl/off 11100 1] >[ON:sudo /opt/openhab/configurations/brennenstuhl/on 11100 1]"}
… more of that kind in ALS group
Sitemap:
Switch item=ALS label=“Alle Lampen schalten” mappings=[OFF=“Aus”,ON=“An”] icon=“light-on” //ALS = Alle Lampen schalten
Strange or is there an explanation (and fix) for this?
Thanks in advance
Hans