Hi All,
I have a couple of Hue motion sensors and their temperature sensors read a couple of degrees out from the correct temperature so I am trying to adjust them. From reading various other topics I came up with this
sensor.sensor_hall_front_temperature:
battery_level: 40
device_class: temperature
unit_of_measurement: °C
value_template: {{ (states('sensor.sensor_hall_front_temperature') | float + 2.8) | round(2) }}
If I try this in the Template test section it gives me the adjusted temperature. However, adding it to my customize.yaml it doesn’t work and, when I reboot, triggers safe mode.
If I remove the value_template line it correctly adjusts the battery level so I know the basic customization is working.
The logs show:
invalid key: "OrderedDict([("(states('sensor.sensor_hall_front_temperature') | float + 2.8) | round(2)", None)])" in "/config/customize.yaml", line 5, column 0
19:58:42 – Home Assistant Core Integration (ERROR)
invalid key: "OrderedDict([("(states('sensor.sensor_hall_front_temperature') | float + 2.8) | round(2)", None)])" in "/config/customize.yaml", line 5, column 0
19:58:42 – util/yaml/loader.py (ERROR)
Any help would be great, thanks