I am facing a particular problem. I am using mqtt_subscribe to get some text information from a sensor in HA. Am using this to be displayed on an e-paper screen. API is unfortunately not a solution as that is too slow. Now the problem I am facing is the interpretation of special characters.
One of the sensors has the following information:
summary: Adcom
description: |+
location: Bureau du Président
start: '2022-10-11T14:00:00+02:00'
end: '2022-10-11T17:00:00+02:00'
eta: 5
all_day: false
icon: mdi:calendar
friendly_name: Adcom
It is particularly about this attribute: location: Bureau du Président
This information is sent to MQTT in the following way:
Topic: homeassistant/sensor/ical_exchange_event_2/location
Value: "Bureau du Pr\u00e9sident"
In ESPhome with this sensor:
text_sensor:
- platform: mqtt_subscribe
id: test
topic: homeassistant/sensor/ical_exchange_event_2/location
filters:
- substitute:
- "\" -> "
It literally prints Pr\u00e9sident
How can I have ESPhome interpret \u00e9
as é