Closed Grey-Lancaster closed 8 months ago
This is probably related to a ticket I opened as well. See issue 5324. What does your display show, if anything? Is it a white screen?
hello @Grey-Lancaster could you do me a favor and test me your display with https://esphome.io/components/display/#troubleshooting And show the screenshot.
@nielsnl68 Thanks, I will try as soon as I can. I unplugged all the wires from my esp32 to plug a d1 mini in for something else. I will try tonight. @illigtr No, the display did what I told it to had a background color, word (text) it just never gave the info for my sensor ,like my oled display does. It does show the time though
This is from the oled I do not get it with the lilon tft [14:19:43][D][homeassistant.sensor:024]: 'sensor.office_outside_temp_2': Got state 56.10 [14:19:43][D][sensor:093]: 'outside_temperature': Sending state 56.10000 with 1 decimals of accuracy
The problem is not the display it works though it has all those connection erros. It does not advance to reading the sensors
In should show my inside temp. This never happens with the ili9xxx, this from oled
I do not get it with the lilon tft [14:19:43][D][homeassistant.sensor:024]: 'sensor.office_outside_temp_2': Got state 56.10 [14:19:43][D][sensor:093]: 'outside_temperature': Sending state 56.10000 with 1 decimals of accuracy
So the problem is that you are not getting data from HomeAssistant. Since your display lambda has a test for has_state()
if there is no data, nothing will be displayed.
There should be a line in the log like this:
[21:25:45][D][api:102]: Accepted 192.168.0.107
This indicates that HomeAssistant has properly connected to the device. That is probably not happening.
Check in HomeAssistant that your device is properly registered, if necessary remove it and re-add, check the entity ids. The issue is almost certainly unrelated to the display driver, it's just related to your device not talking properly to HomeAssistant.
I do not understand. This is the log from my oled that works and there is not a line that says accepted
INFO ESPHome 2023.12.5
INFO Reading configuration /config/esphome/esphome-web-5ad305.yaml...
INFO Detected timezone 'America/New_York'
INFO Starting log output from 192.168.1.191 using esphome API
INFO Successfully connected to esphome-web-5ad305 @ 192.168.1.191 in 0.005s
INFO Successful handshake with esphome-web-5ad305 @ 192.168.1.191 in 2.392s
[18:36:00][I][app:102]: ESPHome version 2023.12.5 compiled on Dec 25 2023, 17:24:21
[18:36:00][C][wifi:573]: WiFi:
[18:36:00][C][wifi:405]: Local MAC: C8:C9:A3:5A:D3:05
[18:36:00][C][wifi:410]: SSID: [redacted]
[18:36:00][C][wifi:411]: IP Address: 192.168.1.191
[18:36:00][C][wifi:412]: BSSID: [redacted]
[18:36:00][C][wifi:414]: Hostname: 'esphome-web-5ad305'
[18:36:00][C][wifi:416]: Signal strength: -58 dB ▂▄▆█
[18:36:00][C][wifi:420]: Channel: 2
[18:36:00][C][wifi:421]: Subnet: 255.255.255.0
[18:36:00][C][wifi:422]: Gateway: 192.168.1.1
[18:36:00][C][wifi:423]: DNS1: 192.168.1.1
[18:36:00][C][wifi:424]: DNS2: 8.8.8.8
[18:36:00][C][logger:443]: Logger:
[18:36:00][C][logger:444]: Level: DEBUG
[18:36:00][C][logger:445]: Log Baud Rate: 115200
[18:36:00][C][logger:447]: Hardware UART: UART0
[18:36:00][C][i2c.arduino:053]: I2C Bus:
[18:36:00][C][i2c.arduino:054]: SDA Pin: GPIO4
[18:36:00][C][i2c.arduino:055]: SCL Pin: GPIO5
[18:36:00][C][i2c.arduino:056]: Frequency: 800000 Hz
[18:36:00][C][i2c.arduino:059]: Recovery: bus successfully recovered
[18:36:00][I][i2c.arduino:069]: Results from i2c bus scan:
[18:36:00][I][i2c.arduino:075]: Found i2c device at address 0x3C
[18:36:00][C][homeassistant.time:010]: Home Assistant Time:
[18:36:00][C][homeassistant.time:011]: Timezone: 'EST5EDT,M3.2.0,M11.1.0'
[18:36:00][C][ssd1306_i2c:023]: I2C SSD1306
[18:36:00][C][ssd1306_i2c:023]: Rotations: 0 °
[18:36:00][C][ssd1306_i2c:023]: Dimensions: 64px x 48px
[18:36:00][C][ssd1306_i2c:024]: Address: 0x3C
[18:36:00][C][ssd1306_i2c:025]: Model: SSD1306 64x48
[18:36:00][C][ssd1306_i2c:026]: Reset Pin: GPIO16
[18:36:00][C][ssd1306_i2c:027]: External VCC: NO
[18:36:00][C][ssd1306_i2c:028]: Flip X: YES
[18:36:00][C][ssd1306_i2c:029]: Flip Y: YES
[18:36:00][C][ssd1306_i2c:030]: Offset X: 0
[18:36:00][C][ssd1306_i2c:031]: Offset Y: 0
[18:36:00][C][ssd1306_i2c:032]: Inverted Color: NO
[18:36:00][C][ssd1306_i2c:033]: Update Interval: 1.0s
[18:36:00][C][captive_portal:088]: Captive Portal:
[18:36:00][C][mdns:115]: mDNS:
[18:36:00][C][mdns:116]: Hostname: esphome-web-5ad305
[18:36:00][C][ota:097]: Over-The-Air Updates:
[18:36:00][C][ota:098]: Address: esphome-web-5ad305.local:8266
[18:36:00][C][api:139]: API Server:
[18:36:00][C][api:140]: Address: esphome-web-5ad305.local:6053
[18:36:00][C][api:142]: Using noise encryption: YES
[18:36:00][C][homeassistant.sensor:030]: Homeassistant Sensor 'outside_temperature'
[18:36:00][C][homeassistant.sensor:030]: State Class: ''
[18:36:00][C][homeassistant.sensor:030]: Unit of Measurement: ''
[18:36:00][C][homeassistant.sensor:030]: Accuracy Decimals: 1
[18:36:00][C][homeassistant.sensor:031]: Entity ID: 'sensor.office_outside_temp_2'
[18:36:00][C][homeassistant.sensor:030]: Homeassistant Sensor 'inside_temperature'
[18:36:01][C][homeassistant.sensor:030]: State Class: ''
[18:36:01][C][homeassistant.sensor:030]: Unit of Measurement: ''
[18:36:01][C][homeassistant.sensor:030]: Accuracy Decimals: 1
[18:36:01][C][homeassistant.sensor:031]: Entity ID: 'sensor.big_room_temperature'
[18:36:43][D][homeassistant.sensor:024]: 'sensor.office_outside_temp_2': Got state 49.10
[18:36:43][D][sensor:093]: 'outside_temperature': Sending state 49.10000 with 1 decimals of accuracy
[18:37:43][D][homeassistant.sensor:024]: 'sensor.office_outside_temp_2': Got state 48.90
[18:37:43][D][sensor:093]: 'outside_temperature': Sending state 48.90000 with 1 decimals of accuracy
[18:40:43][D][homeassistant.sensor:024]: 'sensor.office_outside_temp_2': Got state 49.10
[18:40:43][D][sensor:093]: 'outside_temperature': Sending state 49.10000 with 1 decimals of accuracy
[18:41:43][D][homeassistant.sensor:024]: 'sensor.office_outside_temp_2': Got state 48.90
[18:41:43][D][sensor:093]: 'outside_temperature': Sending state 48.90000 with 1 decimals of accuracy
Time is actually working so it must be connected. It is the temp sensors that are not coming in?
Same code for sensors from the OLED that works
Well, I be Darn. Obviously I had been fingering with this in espphome with no luck. All of a sudden I saw a new device notification. When I went through that and added it to Esphome it worked !?!?!
Thanks for looking at this, Grey
Sad though, this Lolin TFT display works with esp8266 d1 mini's as well as esp32 Mini's which are plug n play. The espHome ili9xxx driver requires a board with psram
The espHome ili9xxx driver requires a board with psram
That will no longer be a requirement with LVGL as it can draw into buffers less than full screen size. Still WIP but will get there before too long.
@clydebarrow That's great as having a board that just plugs into the Lilon is much better than all these lose jumper wires !
The problem
It gives the error [19:23:34][W][component:214]: Component display took a long time for an operation (0.11 s). [19:23:34][W][component:215]: Components should block for at most 20-30ms.
some say logging will fix that but my code does not have I2c
But the real problem is sensors do not work https://community.home-assistant.io/t/sensor-display-stopped-working-esphome-and-ili9xxx/602881
Which version of ESPHome has the issue?
OS 11.2 core 2023.12.4
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.12.4
What platform are you using?
ESP32
Board
esp32 devc
Component causing the issue
ili9341
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response