I am trying to setup a rule to control my dimmer lights.
Items
Group:Switch:OR(ON,OFF) gLights "All Lights"
Group gLivingRoom "Living Room"
Group gBedRoom "Bedroom"
Group gDimmerLights "Dimmer Lights"
Dimmer dim_LivingRoomLight "Living Room Dimmer [%.1f]" <light> (gDimmerLights, gLivingRoom) {channel="blah"}
Switch sw_LivingRoomLight "Living Room Switch" <light> (gLights, gLivingRoom) {channel="blah"}
Dimmer dim_BedRoomLight "Bed Room [%.1f]" <light> (gDimmerLights, gBedRoom) {channel="blah"}
Switch sw_BedRoomLight "Lamp" <light> (gLights, gBedRoom) {channel="blah"}
My rule is as follows:
rule "Minimote Dimmer Button (Pressed)"
when
Item Minimote1 received update 4 or
Item Minimote1 received update 6
then
logInfo ("Debug", "Minimote pressed")
gDimmerLights.allMembers.forEach [s | logInfo("Debug", s.name + " equals " + s.state.toString)]
end
In the rule i want to output the state of all the Dimmers. However, I only get the following in the log
2017-08-30 21:42:48.380 [INFO ] [eclipse.smarthome.model.script.Debug] - Minimote pressed
It seems that there are no members in the group gDimmerLights?