The unit must be either Celsius or Fahrenheit for the necessary conversion in the HomeKit type class. The reason I went with this quite strict approach is that the sensor type classes expect a specific sensor otherwise they might fail.