Hi!
I am trying to add an offset to an outside temperature sensor I have that appears to be about 4 degrees celsius off the real temperature most of the time. The only problem is that I can’t get the value_template to work. I have added this to my configuration.yaml under sensors:
- platform: template sensors: utetemp_offset: value_template: '{{ states.sensor.tempute_temperature | float + 4 }}'
but I get sensor.utetemp_offset unknown friendly_name: utetemp_offset
I have also tried value_template: ‘{{ states.sensor.tempute_temperature | float + 4 }}’ which returns the value 4.0.
I have looked for some documentation that describes the math operands, but so far not found anything for a simple addition.
Could anybody help me out?
Thanks,
Tomas