Setting light temperature to outdoor temperature


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 :frowning:

I want to set this value to a variable :thinking:
(Don't bother about the if else end-if, that was just for playing around)

I found the solution.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.