Hi, I would like to use the € sign on my Oled display. I tried many fonts with € sign included. I also tried to add the euro sign but without succes. I also tried \u20AC without succes.
It seems the esphome only uses the basic characters up to 127 and not the extended characters?
Is there a way to fix this?
font:
- file: "dejavu-sans-mono.book.ttf"
id: font_id
size: 10
glyphs: "0123456789.:EUR" # '€' => glyphs-list
text_sensor:
- platform: homeassistant
id: electricity_interval_hour_1
entity_id: sensor.electricity_interval_hour_1
- platform: homeassistant
id: electricity_interval_hour_2
entity_id: sensor.electricity_interval_hour_2
display:
- platform: ssd1306_i2c
model: "SSD1306_64X48"
address: 0x3C
id: my_display
pages:
- id: page1
lambda: |-
it.printf(0, 10, id(font_id), "hour 1: %.4f €", id(electricity_price_hour_1).state);
it.printf(0, 20, id(font_id), "%s", id(electricity_interval_hour_1).state.c_str());
it.printf(0, 30, id(font_id), "hour 2: %.4f €", id(electricity_price_hour_2).state);
it.printf(0, 40, id(font_id), "%s", id(electricity_interval_hour_2).state.c_str());