Help with esphome and strange yaml error

That’s great! I fully understand, the Discourse forum-platform can do some great things, but we all need to learn it first :slight_smile: .

I tried ask chatGPT to confirm my own thoughts in the first answer. As I’m not sure if the HA community likes that kind of answer, or not, here’s just the screenshot:

Fixed YAML code:

display:
  - platform: ssd1306_i2c
    model: "SH1106 128x64"
    reset_pin: D0
    address: 0x3C
    update_interval: 0.25s
    lambda: |-
      it.printf(0, 0, id(my_font), "Temperature: %.1f°C, Humidity: %.1f%%", id(temperature).state, id(humidity).state);

You’ll need to push in the “it.printf” code :slight_smile:

Just for a future recommendation: Once possible, always share your full code, as you’re giving us the actual scope of the code, not just the thrown error. Else, it could easy be the beginning of a xy-problem topic.

Let me know how it goes.

Else, try and check: