I think I’m missing something trivial: I wanted to clean up my setup and work with proper groups instead of hacking. The issue: I can’t get my rules working with groups!
have a very simple setup:
Switch Testlight "Test Light" <light> (gGroundfloor)
Group gHouse "House" Group gGroundfloor "ground floor" (gHouse)
And a rule:
rule "testrule" when Member of gHouse received command then logInfo("Testrule", "received command") end
According to the docs the item Testlight should be a member of gHouse - but the rule doesnt trigger. When I change the rule to gGroundfloor the log is written as expected.
The actual goal of this is to iterate over all items within the house, turning everything off. Basically:
gHouse.allMembers.forEach[ member | member.sendCommand("OFF")]
plus a check that member is an actual switch element.
I’d be very grateful for any pointers in regards to documentation, errors in my train of thought and so on