I cant get groups to work at all, and maybe im doing something wrong… But I have invested a quite a bit of time so far. So if I could get some help that would be AWESOME!
I cant even log the item names in glight group see below:
Item:
Switch Bedroom5Lights "Mancave Light" <glight> ["Lighting"] {mqtt=">[broker:openhab/out/Bedroom5Lights/gpio/12:command:ON:1],>[broker:openhab/out/Bedroom5Lights/gpio/12:command:OFF:0],<[broker:openhab/in/Bedroom5Lights/Rstate:state:MAP(onoff.map)]"}
Rule:
// Scene Rules
rule "Scene: Going to work"
when
Item SceneWork changed to ON
then
logInfo("JADE","JADEJADEJADDEJADEJADEJADE")
// Bedroom5Lights.sendCommand(OFF)
glight.members.forEach[ item|
logInfo("TestRules", "Item: " + item.name)
]
logInfo("JADE","111111111111111111111111111")
createTimer(now.plusSeconds(2)) [|
SceneWork.postUpdate(OFF)
]
logInfo("JADE","ENDENDENDENDENDENDENDEND")
end
==> /var/log/openhab2/openhab.log <==
2018-10-14 08:37:47.662 [INFO ] [.eclipse.smarthome.model.script.JADE] - JADEJADEJADDEJADEJADEJADE
2018-10-14 08:37:47.669 [INFO ] [.eclipse.smarthome.model.script.JADE] - 111111111111111111111111111
2018-10-14 08:37:47.683 [INFO ] [.eclipse.smarthome.model.script.JADE] - ENDENDENDENDENDENDENDEND
==> /var/log/openhab2/events.log <==
2018-10-14 08:37:49.680 [ItemStateChangedEvent ] - SceneWork changed from ON to OFF