I think I read in the ESPHome release notes that the localized sensor value is no longer transmitted via the HomeAssistant API, but rather the internal status value.
I think that was sometime last summer. Now I have some time and wanted to solve the “problem” so that the localized values are displayed on my LVGL display again, but I can’t find any information about it. In Home Assistant Templating there is “state_translated”, is there something like that in ESPHome?
It would be tedious to have to translate every value for multiple sensors back in the code.
Same here. Looking how to send this two sensor types to the ESPHome with LVGL and display. In HA it shows the normal text. Struggling to display same text on the display.
I was able to get it working. It seems that HA and ESPhome communicate using text strings to exchange data.
In such case, I have first set up a standard sensor, that can only display numbers.
like this:
if you are not able to implement this in ESPHome, then alternative is to make a few new text entities in HA (Helpers + automations or template sensors) that convert text using the state_translated function.