Guten Tag.
Hardware: 7,5" Waveshare E-Paper V2, ESP32 Driver Board.
Ich versuche seit Tagen Werte auf dem Display anzuzeigen, leider gelingt das nur teilweise.
Das Display wird angesprochen, Datum/Uhrzeit korrekt angezeigt. Was nicht funktioniert, ist den Wert einer Entität anzuzeigen, es erscheint nur an der angegebenen Position "7 nan V ".
esphome:
name: epaper-hat
friendly_name: epaper_hat
esp32:
board: esp32dev
# Enable logging
logger:
level: VERY_VERBOSE
wifi:
manual_ip:
static_ip: 192.168.xx.xx
gateway: 192.168.xx.xx
subnet: 255.255.255.0
dns1: 192.168.xx.xx
ssid: wlan
password: "zzzz"
spi:
clk_pin: 13
mosi_pin: 14
# Enable Home Assistant API
api:
encryption:
key: "yyyy"
ota:
- platform: esphome
password: "xxx"
font:
- file: "VerdanaPro-SemiBold.ttf"
id: web_font
size: 40
glyphs:
['&', '@', '!', '?', ',', '.', '"', '%', '(', ')', '+', '-', '_', ':', '°', '0',
'1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E',
'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S',
'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
'u', 'v', 'w', 'x', 'y', 'z', 'å', 'ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü', '/', '€', '’', 'ß']
- file: "VerdanaPro-SemiBold.ttf"
id: web_font1
size: 30
glyphs:
[':', ".", '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
- file: "SpaceIso.ttf"
id: SpaceIso
size: 25
glyphs:
['&', '@', '!', '?', ',', '.', '"', '%', '(', ')', '+', '-', '_', ':', '°', '0',
'1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E',
'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S',
'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
'u', 'v', 'w', 'x', 'y', 'z', 'å', 'ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü', '/', '€', '’', 'ß']
time:
- platform: homeassistant
id: hass_time
sensor:
- platform: homeassistant
id: teste
name: "Testsensor"
entity_id: sensor.00085d89bbfcaa_voltage
display:
- platform: waveshare_epaper
id: epape
cs_pin: 15
busy_pin: 25
reset_pin: 26
dc_pin: 27
model: 7.50inV2alt
reset_duration: 2ms
update_interval: 60s
lambda: |-
it.strftime(650, 28, id(web_font), "%H:%M", id(hass_time).now());
it.strftime(653, 55, id(SpaceIso), "%d.%m.%y", id(hass_time).now());
it.printf(115, 15, id(web_font),"7 %.1f V", id(teste).state);
es ist vollkommen gleichgültig, welchen sensor.xyz ich verwende, es erscheint immer nun “nan” und der Text vom Ausdruck “7 %.1f V”. Unter “Aktuelle Entitätszustände” werden die Zustände korrekt agezeigt und aktualisieren sich.
Ich weis nicht wo ich noch suchen soll und bin für jeden Hinweis dankbar.