Hi,
I’m trying to offset by 6°C one of my temperature sensors so I added the following to configuration.yaml :
template:
- sensor:
- name: "Temperature cuisine"
unit_of_measurement: "..C"
value_template: "{{ states('sensor.lumi_lumi_sensor_magnet_aq2_device_temperature_3') | float - 6}}"
device_class: temperature
Unfortunately I get the error :
Invalid config for [template]: [value_template] is an invalid option for [template].
How do I format this correctly?