Hi,
I am trying to calculate a numeric value based on outside temperature, but the result makes me confused. I am sure I do something totally wrong.
Outside temperature item config
Number:Temperature Temp_Outside "Kinti hőmérséklet [%.1f °C]" (Temperatures, Outside) { channel="onewire:basic:bridge:outside_temp:temperature" }
Calculation
I am trying to calculate seconds based on outside temp. to create a timer.
var tempasnumber = Temp_Outside.state as Number
var fireplace_mode_time = 900 - (tempasnumber * 60)
In case of %C outside temp. it should result 300, but I get -15789.00
Could you please help me to fix this simple calculation?
Thank you,