This is probably simple as heck and I"m just missing something.
I'm built a dashboard to control lights sectioned off by room. I have buttons to change the color and set brightness to 75. But I wanted more control over the brightness without having to make tons of buttons for brightness to crowd around the color buttons. The idea is to have a single brightness slider, then tap a color. I.e., if you use the slider to set it to 20, then tap the purple bulb in the "Living Room" section, the living room lights will change to 20% brightness with a purple color.
I set up an input_number helper, input_helper.light_brightness_input. Then put a card at the top of the page to control that number. I'm using the living room area to test it. I went to the button that makes them 100% bright with white color.
This works
brightness_pct: 100
This doesn't
brightness_pct: "{{ states('input_number.light_brightness_input') | float }}"
And I don't know why. I put that template in the editor and it does correctly give me back the number that input_number.light_brightness_input is currently set to.