Open pascal-parent opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
https://github.com/esphome/issues/issues/4405 seems related rpipicow display/ili9xxx 480*320 displays breaks api (HA cannot connect)
The problem
I am trying to use a Waveshare 2.8inch Touch Display Module for Raspberry Pi Pico, 262K Colors, 320×240, SPI (ST7789). Each time I enable the display the connection to Home Assistant drops but I can still update it via OTA, often even if the ESPHome dashboard says it's offline. This prevents me from using the platform: homeassistant sensors as it is disconnected.
Which version of ESPHome has the issue?
2023.4.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.4.6
What platform are you using?
RP2040
Board
Raspberry Pi Pico W
Component causing the issue
SPI/WIFI
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Furthermore, the RP4020's logs, which are accessible even though Home Assistant reports "Disconnected" and the logs report
When adding the device the device link is also missing.
Oddly enough, the screen attached to the RP2040 works 100% albeit with a very slow refresh rate.
Once I remove the display section, I get reconnected and I get the home assistant data as shown bellow
logs:
_INFO Processing unexpected disconnect from ESPHome API for 192.168.0.209 WARNING Disconnected from API INFO Successfully connected to 192.168.0.209 [22:14:12][D][api:102]: Accepted 192.168.0.11 [22:14:12][W][api.connection:085]: Home Assistant 2023.4.6 (192.168.0.11): Connection reset [22:14:12][D][homeassistant.sensor:024]: 'sensor.power_usage': Got state 2962.00 [22:14:12][D][sensor:109]: 'Grid': Sending state 2962.00000 with 1 decimals of accuracy [22:14:12][D][homeassistant.sensor:024]: 'sensor.ss_pv1_power': Got state 0.00 [22:14:12][D][sensor:109]: 'Solar': Sending state 0.00000 with 1 decimals of accuracy [22:14:12][D][homeassistant.sensor:024]: 'sensor.ss_battery_power': Got state 1223.00 [22:14:12][D][sensor:109]: 'Battery': Sending state 1223.00000 with 1 decimals of accuracy [22:14:12][D][homeassistant.sensor:024]: 'sensor.ss_essential_power': Got state 1101.00 [22:14:12][D][sensor:109]: 'Battery': Sending state 1101.00000 with 1 decimals of accuracy [22:14:12][D][api.connection:961]: Home Assistant 2023.4.6 (192.168.0.11): Connected successfully [22:14:12][D][time:044]: Synchronized time: 2023-05-01 22:14:12 [22:14:13][W][api.connection:087]: Home Assistant 2023.4.6 (192.168.0.11): Connection closed [22:14:13][D][api:102]: Accepted 192.168.0.11 WARNING 192.168.0.209: Connection error occurred: [Errno 104] Connection reset by peer INFO Processing unexpected disconnect from ESPHome API for 192.168.0.209 WARNING Disconnected from API WARNING 192.168.0.209: Connection error occurred: Timeout waiting for response for <class 'api_pb2.ConnectRequest'> after 30.0s WARNING Can't connect to ESPHome API for 192.168.0.209: Timeout waiting for response for <class 'apipb2.ConnectRequest'> after 30.0s INFO Trying to reconnect to 192.168.0.209 in the background
Then I lose connection to Home Assistant even though the ESPHome Dashboard says it's online.
I hope this is enough information, if you need any more don't hesitate to ask.
I am also aware you are working of the RP2040 integration and if a Beta, thank you for all the work you are doing.
PS: I used nearly the same code on a ESP32 Vroom with no issues.