So I have this simple usecase, if there’s movement (MoveDoor == ON) on my frontdoor, I want the lights (KNXFrontLights) to turn on, but only, if it is dark outside (DarkOutside == ON).
so, I added a rule in OH3 GUI:
IMHO what you are trying to get is the AND condition for a trigger, such wasn’t possible for the DSL rules and is IMHO not possible in OH3 as well.
Check the DarkOutside state with an ButOnlyIf condition and dotheaction inside this one.
Hmm… I do interpret this so, that my “When” = “triggers” (MoveDoor == ON), should lead to an “then” = “actions” (KNXFrontLights = ON), but “only if” = “conditions” (Darkoutside == ON)?
That would mean a AND in my eyes? Or is the logic different?
I chose the items via GUI, which makes typos impossible!
That should work and it’s not clear why it is not working. It’s all selected through the UI (right? or did you type this into the code tab?) so there can’t be a typo in an Item name or something like that. The only thing that looks maybe off is you’re seeing the changed from NULL to OFF in an ItemCommandEvent. It should be logged as an ItemChangedEvent. Do you have any other independent verification of the state of the Darkoutside Item?
Unfortunately I’ve found the only hope to debugging rules like this is to use a Script Condition and/or Script Action to log out the states of relevant Items and comparisons and such.