Start a rule based on a variable changing
Is it possible to trigger a rule upon the value change of a variable? With this I mean the value "changing" (no matter what the value was before, nor what it is now)
A WHEN clause does not accept a dependency on a variable only, then it errors "When clause has no event dependency" when saving the rule.
Usecase; decomposing rules into simpler blocks. eg. create a single variable 'wholeHomeMotion' that is '1' when any motion detector is triggered, and only '0' when all are in 'NO_MOTION' state. Now I have several rules all with a long list of motionsensor comparisons. By using such a variable, I could simply a single rule setting the variable, and all other rules just 'wholeHomeMotion = 1'.
I'd like to use a similar construct for reading the on/off status of the TV, Beamer and laundrymachine based on current power consumption.