Open IvanGavrilenko opened 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Any comments to the issue?
The problem here is that entities are internally identified by their "object id", which is the name with all non-Latin-alphanumericals stripped. Thus, the two sensors with only Russian characters in their name get the same object id.
The problem here is that entities are internally identified by their "object id", which is the name with all non-Latin-alphanumericals stripped. Thus, the two sensors with only Russian characters in their name get the same object id.
So may be not stripping non-english characters but adding transliteration to object id would be a good idea (as hame assistant does)?
So may be not stripping non-english characters but adding transliteration to object id would be a good idea (as hame assistant does)?
The problem with Unicode transliteration and things like that is that they require huge datatables, for which an ESP doesn't have enough space.
An additional complication is that the object id is also used to identify entities to Home Assistant, and changing them would mean that new entities are created for everyone.
Well may be I do not know the full procedure of firmware compilation, but may be just add to the computer ESPhome a sort of pre-compilation - before compiling *.yaml transliterate fields that form "object id" all strings "name: " and so on?
Operating environment/Installation (Hass.io/Docker/pip/etc.):
core-2021.4.6 AND ESPHOME web server
ESP (ESP32/ESP8266, Board/Sonoff):
ESP8266 Wemos D1 mini ESPHome version (latest production, beta, dev branch)
C:\Users\ivan>esphome version Version: 1.16.2 Affected component:
https://esphome.io/components/sensor/dht.html
Description of problem: When attached DHT-11 sensor and if name section in sensor block consists of only English cahracters - then web server and HomeAssistant receives both values - temperature and humidity. But if the name section consists of only Russian characters then both web server and HomeAssistant show the single sensor (and web server shows name from temperature and value - from humidity - it looks like the temperature sensor obtains the value from the temperature and shows the temperature value and then after a part of second the humidity value is written to the same sensor and overwrites it's value).
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: The screenshots of working config:
The screenshots of errous config:
Complete YAMLs: YAML not working.txt YAML working.txt
Parts of VERY_VERBOSE logs containig sensor values obtainig: not working log.txt working log.txt