Adding brightness slider to light

I’m trying to setup brightness control for a Hubspace led strip. I created a input number helper with a slider and made that the trigger which works fine. The problem is the call service spits out a NoneType object not iterable with the template I’m trying to use. If I don’t use a template and just type a static number in the value field it changes the brightness fine but I need the brightness to dynamically adjust to whatever the slider value is. So I’m sure there’s a way to make it work just need some help.