Want to insert special characters in configuration.yaml file

Hi,
I’m running Homeassistant in a docker container.
I’d like to edit the configuration.yaml file in the docker console to add some lines for my InfluxDB integration.
So far, so good, but I’m unable to type special characters like the symbol ° for degree celsius.
When typing this symbol, the editor translates it to a double period.

It seems, that UTF-8 support is not given and I have no option to edit the “locale” option in that docker console.

Is there another way to insert such special characters?

Best Regards,
Carsten

What’s your understanding of this “console”?
Docker has no console. You use a CLI (i.e. plain shell) interface…

I had no problem to enter degree symbol, at least in unit of measurement (BTW not sure if it’s correct to put this symbol here. C unit alone seems to be more correct but at time back it hasn’t any other function than just be a string displayed next to a value). But I copy-pasted it rather than entered from keyboard giving no chance to change it when typing.

- platform: mqtt
  name: "Entrance Light Temp"
  state_topic: "shellies/shelly25-entrance/temperature"
  availability_topic: "shellies/shelly25-entrance/online"
  device_class: temperature
  unit_of_measurement: "°C"
  payload_available: "true"
  payload_not_available: "false"

It is correct.

This is not correct.

https://www.home-assistant.io/integrations/sensor#device-class

Screenshot 2021-12-10 at 11-17-59 Sensor

1 Like

sorry for my late answer, I forgot to share my “solution”.
I moved meanwhile to HASS core, so my docker setup for HASS is no longer running.
With core, I’m able to use the File Editor in HASS, and there I’m able to use “°”.