I’d first have a close look at similar rules; in my experience it’s very easy to copy-paste rules and miss making changes. In particular, change the log of your suspect rule in some unique way so that you are sure it is the culprit.
Are there Groups involved here? triggeringItemName should give you the Group here, not the member, but might be messing up.
A really good idea, C&P errors are a common source for errors.
But I added the log especially to trace down what happens here - I do not use this amount of exclamation marks in normal logging
The three items are simple ones - not groups. But those are set by other rules. But triggeringItemName should not fire through another rule?
Only other thing I can think of is that this needs to be unique. If you made a rule with a duplicate name, only one or other version was active in OH2.
This might be managed a bit differently in OH3 and result in a mashed-together version?
Again, quickest proof is to make it different and assuredly unique, adding “99” on the end or something.
Nope, should not. Funny things could happen with the implicit variables when a rule has mixed trigger types, but yours are straightforward Item triggers and triggeringItemName should always match.
If your shade() lambda function were going wrong I would not be at all surprised, they are not thread safe and you can get variables shared across threads. But not in the rule body.
You are actually allowing this rule to trigger from Item changes, and not poking the “run” button in the GUI?
I’d make another complete new rule alongside, for an experiment
rule "just testing"
when
Item BeschattenWest changed or
Item RolladenNacht changed or
Item IstTemperaturOGBenjaminHigh changed
then
logInfo("testing", "Triggered by " + triggeringItemName)
end
Actually, I didn’t even know this was possible in the user interface.
This is interesting, the test rule does behave correctly. Thanks for the hint.
After fiddling around with my rollershutters rule file for some hours trying to find the error, I guess it’s time to do some refactoring. Thanks for your help!
But the rule doesn’t know anything about channels. It got triggered by Item xx changing, has no care about who changed it, and announced a different Item name.
I think that because you added this to the end of a very old thread, none of the core devs have seen your posts. This is certainly a strange behavior and you should file an issue in the core repository.