esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 35 forks source link

ttgo t-display st7789v wont display on 2022.9.0 #3597

Closed landonr closed 2 years ago

landonr commented 2 years ago

The problem

I get a black screen after updating to 2022.9.0 on my TTGo Tdisplay st7789v. The backlight turns on and the display lambda gets called but in my test yaml a rectangle doesn't get drawn

Which version of ESPHome has the issue?

2022.9.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

featheresp32

Component causing the issue

No response

Example YAML snippet

esphome:
  name: tdisplaytest
  platform: ESP32
  board: featheresp32

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Tdisplaytest Fallback Hotspot"
    password: "W3EzIrtpixFo"

captive_portal:

color:
  - id: color_red
    red: 1
    green: 0
    blue: 0

spi:
  clk_pin: GPIO18
  mosi_pin: GPIO19 

# TODO brightness
display:
  - platform: st7789v
    model: TTGO_TDISPLAY_135X240
    backlight_pin: GPIO4
    cs_pin: GPIO5
    dc_pin: GPIO16
    reset_pin: GPIO23
    rotation: 90°
    #brightness: 0.5
    update_interval: 5s
    lambda: |-
      ESP_LOGD("TEST", "display");
      it.rectangle(0, 0, 40, 40, id(color_red));

Anything in the logs that might be useful for us?

No response

Additional information

it works on 2022.8.3

arqtron commented 2 years ago

Same problem. TTGO t-display doesn't show anything with 2022.9.0

accik commented 2 years ago

Is yours online? My Lilygo T5 is bootlooping after update to 9.0 and thus not displaying anything. Or rather it updates the screen once for the time + date then resets. It connects to HA api, syncs time and then resets.

Edit: Can confirm that this doesn't happen on 8.3 with identical configuration.


[16:49:20][D][api.connection:861]: Home Assistant 2022.9.5 (::FFFF:C0A8:170): Connected successfully
[16:49:20][D][time:042]: Synchronized time: 2022-09-21 16:49:20
INFO 192.168.30.22: Error while reading incoming messages: Error while reading data: [Errno 104] Connection reset by peer
INFO 192.168.30.22: Ping Failed: Error while reading data: [Errno 104] Connection reset by peer
INFO Disconnected from ESPHome API for 192.168.30.22
WARNING Disconnected from API
arqtron commented 2 years ago

Mine is online. I have connected a CO2 sensor (MH-Z19) to it and the graph in HomeAssistant shows continous values last hours. I can see only one error in the HAS log, maybe from the actualization time:

2022-09-21 13:44:38.987 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for ttgo1 @ 192.168.1.96: Hello timed out

zigomatichub commented 2 years ago

May be link to this introduction of change in font: https://github.com/esphome/esphome/pull/3573