Perhaps because you are using the wrong number format in the variable.
To set a brightness, you must set a numerical value between 0 and 1.
0 = 0 %
0.2 = 20 %
0.55 = 55 %
1 = 100 %
‘Er slukket’ means the light is off?
May be the light is on, but dimmed to 0%. In that case the condition is not true.
This can easily be tested if you click the ‘play’button.
Okay thanks. It is just if i put a number of. 50 instead of the var, then i works. But i will try it. Thanks
When i put in a number instead of the var it works. Thanks
Maybe the dimmer only accepts a limited number of decimals. And the var has more??
0.50 vs 0.5011
My radio had that same issue. So I now round the var to 2 decimals before using it.
(Ignore the +0.05, that is the level I want to increase when the button is pressed)
Maybe you can tell/show us what is written in the variable!?
Thanks it works with one decimal ex 0.4
It will also work with 2 decimal digits, but not with 3, 4 or more.

