How to calibrate zigbee temp sensor

I have a sonoff zigbee temperature sensor connected to a tasmota flashed sonoff zigbee bridge which connects to HA via ZHA.

The temperature reading is around 4c higher than it should be, how can I calibrate it or add an offset?

Use a template sensor.

1 Like
sensors:
  kitchen_temperature:
    friendly_name: Kitchen temperature
    unit_of_measurement: "°C"
    value_template: '{{((states.sensor.kitchen_motion.attributes.temperature)-4)|round(1)}}'
2 Likes