Hallo
Bin etwas am Testen mit einem 4.2 Waveshare epaper, habe es auch zum laufen gebracht nur sind die Farben Schwarz und Weis vertauscht im 3 Farb Modus. habe schon einiges versucht. Wenn ich das es im Schwarz Weiß Modus betreibe ist alles richtig.
Wo ist mein Fehler?
esphome:
name: e-paper
friendly_name: E-Paper
esp32:
board: esp32-c6-devkitc-1
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
- platform: esphome
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "E-Paper Fallback Hotspot"
password: "A27BUVUCQocH"
captive_portal:
font:
- file:
type: gfonts
family: Roboto
weight: 100
id: font1
size: 24
spi:
clk_pin: 20
mosi_pin: 19
mqtt:
broker:
password:
script:
- id: update_screen
then:
- component.update: epaper
color:
- id: red
hex: "FF0000"
- id: black
hex: "FFFFFF"
display:
- platform: waveshare_epaper
id: epaper
model: 4.20in-bV2-bwr
cs_pin: 18
dc_pin: 15
busy_pin: 14
reset_pin: 8
rotation: 270
reset_duration: 2ms
update_interval: never
lambda: |-
it.print(10, 1, id(font1), id(red), "ESPHome ePaper");
it.print(200, 1, id(font1), id(red), "E");
it.print(280, 0, id(font1), id(black), "E");
it.print(50, 40, id(font1), id(red), "F");
it.print(50, 70, id(font1), id(black), "Test2");
it.printf(10, 300, id(font1), "The data is: %s", id(mqtt_text).state.c_str());
text_sensor:
- platform: mqtt_subscribe
name: "MQTT Text"
id: mqtt_text
topic: "home/display/text"
on_value:
then:
- script.execute: update_screen

