ESPHome merges Temperature and Humidity from DHT11

Hello,

I’m trying to connect es8266(wemos d1 mini) to DHT11.

The connection itself works fine - in command line I can see that sensor passes temperature and humidity into 2 values:

e[0;36m[D][dht:048]: Got Temperature=25.2°C Humidity=34.0%e[0m
e[0;36m[D][sensor:092]: 'Вытяжка температура': Sending state 25.20000 °C with 1 decimals of accuracye[0m
e[0;36m[D][dht:048]: Got Temperature=25.2°C Humidity=34.0%e[0m
e[0;36m[D][sensor:092]: 'Вытяжка влажность': Sending state 34.00000 % with 0 decimals of accuracye[0m

but when I look to web server .local I see that there are 2 sensor names, but single value (compare debug log section that has 2 value and sensors name section that has 2 sensors “температура”-temperature and “влажность”-humidity and the value from humidity is writen to temperature):

moreover if I look to the sensors I can see that at DHT11 update firstly the temperature value is written to the window and then the humidity is written to the same window. And if I levae in config only Temperature or only Humidity sensor - I receive correct sensor values.

ESP config:

sensor:
  - platform: dht
    pin: D3
    temperature:
      name: ${friendly_name} температура
      filters:
        - filter_out: nan
    update_interval: 20s
  - platform: dht
    pin: D3
    humidity:
      name: ${friendly_name} влажность
      filters:
        - filter_out: nan
    update_interval: 20s
sensor:
  - platform: dht
    pin: D3
    temperature:
      name: ${friendly_name} температура
      filters:
        - filter_out: nan
    humidity:
      name: ${friendly_name} влажность
      filters:
        - filter_out: nan
    update_interval: 20s

Look at the example here:

The issue is solved:

it seems that ESPHome correctly passes non-english characters to log (comand line, COM port etc.) and sensor name, but when it passes sensor values non-english characters are removed from sensor name.

in my case

substitutions:
  friendly_name: Вытяжка
sensor:
  - platform: dht
    pin: D3
    temperature:
      name: ${friendly_name} температура
    humidity:
      name: ${friendly_name} влажность

caused error as sensor names “Вытяжка температура” and “Вытяжка влажность” consisted only with Cyrillic letters and all cyryllic letters were removed that caused to having 2 sensor values with simular sensor name - and caused writing value to the same window.

As soon as I changed to:

  - platform: dht
    pin: D3
    temperature:
      name: ${friendly_name} temperature
      filters:
        - filter_out: nan
    humidity:
      name: ${friendly_name} humidity
      filters:
        - filter_out: nan
    update_interval: 20s

where sensor name consysts of English and Cyrillic characters the error has gone.