Dimmer settings doesn’t take variable value

I have a simple flow, in which the dim level of a light is set. Because I want to use the same level in several flows, I made a variable.
Setting the level with the slider is no problem, but when I replace the slider value with a tag of the indicated variable, it doesn’t work: the level is set to 100%. What’s wrong here?


Set the value of the variable to a value between 0 and 1 for 0 to 100%

So 31% is fe 0.31

thanks. simple!