Hello community,
I tried to optimize my dimmer rules but unfortunately “$bla changes” doesn’t seem to trigger.
I have the following setup:
variable $dimlevel
rules (simplyfied):
when button is pressed then $dimlevel = 50
when button2 is pressed then $dimlevel = 70
These rules never trigger:
when $dimlevel changes then dim light to $dimlevel
when $dimlevel increases or $dimlevel decreases then dim light to $dimlevel
when $dimlevel changes then after 1 second dim light to $dimlevel
when $dimlevel increases or $dimlevel decreases then after 1 second dim light to $dimlevel
Setting the brightness directly works:
when button is pressed then dim light to 50%
when button2 is pressed then dim light to $dimlevel
Because there are multiple possibilities when the dimlevel could change, it would be great to store the value globally in one variable and trigger automatically on changes.