Hello, i've just started with nodered and set up the first routines, flows etc.
But i have some problems with controlling my lamps.
I use IKEAs Tradfri lamps, which want their brightness value as JSON like {"brightness":255}
in the UI i have a slide controller which outputs a value from 0 to 255 I thought also of using a slider from 0 to 100 and later multiplying with 2.55 to achieve the correct value but unsure how to round as the lamp does not understand values with values after a point (sorry i dont know the english term)
Can someone explain to me how I put a formula behind it, which then converts the incoming numerical value into a JSON object that I can send to the lamp?
BR