Trying to make a simple linear conversion from outdoor temperature -20 to +20 deg (celsius) into 1500 to 9000 degrees (kelvin) light temperature.
bulbTemp = 187.5*outdoorTemp + 5250
I think I have managed to put the calculation into a local decimal variable of my rule, but I cant find any way to set the result valriable into the bulb temperature value
I want to set this value to a variable
(Don't bother about the if else end-if, that was just for playing around)