I am using the ESP32D0WDQ5
chip on the LILYGO TTGO T-Camera ESP32 WROVER
I am writing YAML code, compiling it in ESPHome
and flashing it to the board using esphome flasher
.
The TTGO card is capable of displaying text in a display, but the downside would be to refresh the board when I want to make changes to the tekst.
So: Is there a way to make the board read a string/template from a template library in Home Assistant, instead of having to hardcode and re-flash the board for every change?
This is the YAML part for the display
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
rotation: 180
address: 0x3C
lambda: |-
it.strftime(64, 0, id(tnr1), TextAlign::TOP_CENTER,"%d-%m-%Y", id(homeassistant_time).now());
it.strftime(64, 64, id(tnr2), TextAlign::BASELINE_CENTER, "%H:%M", id(homeassistant_time).now());
My idea is to create some kind om lambda_template.
The time is passed to the board using this:
time:
- platform: homeassistant
id: homeassistant_time
Any ideas on how to do this would be very much appreciated.