Units of measurement do not match error

Hi all,

I’m using the min_max platform to get an average temp of 3 different hue temperature sensors.

It seems to be working as I’m getting the correct temp output on the front end, but I’m getting this error in the back end:

Units of measurement do not match for entity sensor.average_indoor_temperature

This is my code:

- platform: min_max
  name: "Average Indoor Temperature"
  type: "mean"
  unit_of_measurement: '°C'
    - sensor.hall_temperature
    - sensor.toilet_temperature
    - sensor.hue_motion_motion_ensuite

- platform: template
      friendly_name: 'House temperature'
      value_template: '{{states.sensor.average_indoor_temperature.attributes.mean  | round(0) }}'
      unit_of_measurement: °C

Anyone have any insight??

You appear to have a motion sensor in the temperature average sensor:

    - sensor.hue_motion_motion_ensuite

If that really is a temperature sensor what are your configs for these sensors:

    - sensor.hall_temperature
    - sensor.toilet_temperature
    - sensor.hue_motion_motion_ensuite

That was easy! My bad! Obviously not enough sleep!!!
I had indeed entered that sensor incorrectly. :+1:t3: