Generic thermostat what did I miss

Playing around with the generic thermostat

have this

climate:
  - platform: generic_thermostat
    name: "Cupboard Thermostat"
    heater: switch.cupboard_heater
    target_sensor: sensor.cupboard_temperature
    min_temp: 18
    max_temp: 24
    target_temp: 21
    ac_mode: false
    initial_operation_mode: "auto"
    away_temp: 16

and

  - platform: mqtt
    name: "Cupboard Temperature"
    state_topic: "wemos/Status/Temperature"
    unit_of_measurement: "c"
    retain: true

Im getting this error

ERROR (MainThread) [homeassistant.components.climate.generic_thermostat] Unable to update from sensor: c is not a recognized temperature unit.

I see the Error it does not like the “unit_of_measurement:”

if i # out the unit_of_measurement:

I got this error

ERROR (MainThread) [homeassistant.components.climate.generic_thermostat] Unable to update from sensor: None is not a recognized temperature unit.

what did i miss

Have you tried “°C”?

Thanks
next i see in pub :beers:

1 Like