Hi
I’m struggling to make a dashboard slider work as a brightness level controller for a hue light bulb.
I already have an injection node (below) with JavaScript that works to set a specific brightness level , it sends the following message to turn on and set the correct levels - but I can’t seem to convert the logic to work with the level set via a slider.
{"on":true,"brightness":60}
Feeding a slider into a template node, I tried the following, but that did not work.
{"on":true,"brightness":{{msg.payload}}}
By any chance does anyone have a working example of using a slider with a hue magic node?
Many thanks