Shouldn’t this work?
font:
- file: 'fonts/OpenSans-Regular.ttf'
id: font1
size: 20 #28
i2c:
sda: D2
scl: D3
scan: False
text_sensor:
#from HA to esphome
- platform: homeassistant
name: "notify_text" # This is a Helper set up in HA
id: notify_text
entity_id: input_text.notify_text
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
// it.print(0, 0, id(font1), "Hello World"); // This works.
it.print(0, 0, id(font1), id(notify_text).state.c_str()); // This Doesn't
It compiles fine, but no display