Open jonsenior79 opened 1 year ago
Also... Nothing gets displayed on the screen. So it's not just the wifi breaking. I've also tried TFT 2.4R instead of M5Stack in case it was a driver chip issue, but neither seems to work. If I enable the backlight control via button B, I can turn on and off the backlight.
Not sure about the Xiaomi Mijia sensors, i hope someone else can look into that.
But i can help try with the display? First did it work before or is this the first time testing this? Anyway i'm have created a PR for a new version for the ili9xxx series of displays and the M5 Core uses on of does as you already knows.
I have checked the code that M5 has released and found some differences. And made some modifications to see of your display works for that. Sadly i do not own a M5Core myself so it is a bit guess work.
could you try:
external_components:
- source: github://pr#4275
components: [ili9xxx]
refresh: always
display:
- platform: ili9xxx
id: m5stack_display
model: M5Core
backlight_pin: 32
...
Tried it and get a power cycle due to brownout error. Which makes me wonder if I don't need to find a better power source than the USB hub that it's running from right now. I'll have a play with independant power for it.
INFO Successfully uploaded program. INFO Starting log output from /dev/ttyUSB0 with baud rate 115200 [22:06:53] clock div:1 [22:06:53]load:0x3fff0030,len:1344 [22:06:53]load:0x40078000,len:13864 [22:06:53]load:0x40080400,len:3608 [22:06:53]entry 0x400805f0 [22:06:53]E (338) psram: PSRAM ID read error: 0xffffffff [22:06:53][I][logger:258]: Log initialized [22:06:53][C][ota:469]: There have been 0 suspected unsuccessful boot attempts. [22:06:53][D][esp32.preferences:113]: Saving 1 preferences to flash... [22:06:53][D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed [22:06:53][I][app:029]: Running through setup()... [22:06:53][C][spi:023]: Setting up SPI bus... [22:06:54][E][display:100]: Could not allocate buffer for display! [22:06:54][C][esp32_ble:026]: Setting up BLE... [22:06:54] [22:06:54]Brownout detector was triggered [22:06:54] [22:06:54]ets Jun 8 2016 00:22:57 [22:06:54] [22:06:54]rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) [22:06:54]configsip: 0, SPIWP:0xee [22:06:54]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 [22:06:54]mode:DIO, clock div:1 [22:06:54]load:0x3fff0030,len:1344 [22:06:54]load:0x40078000,len:13864 [22:06:54]load:0x40080400,len:3608 [22:06:54]entry 0x400805f0 [22:06:54]E (338) psram: PSRAM ID read error: 0xffffffff [22:06:54][I][logger:258]: Log initialized [22:06:54][C][ota:469]: There have been 1 suspected unsuccessful boot attempts. [22:06:54][D][esp32.preferences:113]: Saving 1 preferences to flash... [22:06:54][D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed [22:06:54][I][app:029]: Running through setup()... [22:06:54][C][spi:023]: Setting up SPI bus... [22:06:55][E][display:100]: Could not allocate buffer for display! [22:06:55][C][esp32_ble:026]: Setting up BLE... [22:06:55] [22:06:55]Brownout detector was triggered
Also, apologies for closing the issue. I clicked on the wrong thing and apparently can't take it back!
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.
The problem
I'm trying to use an M5Stack to read the temperature from two Xiaomi Mijia sensors. I can create a minimal yaml which successfully reads the temperatures and relays them to an instance of HomeAssistant. But ideally I'd like the M5Stack to also display information on the screen so that I don't need a smartphone or computer to see what's going on. When I try to add the display though (information sourced from "https://github.com/koenvervloesem/M5Stack-Air-Quality-ESPHome") the wifi stops working and the device seems to go into some sort of reset loop.
Which version of ESPHome has the issue?
2023.2.1
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
N/A
What platform are you using?
ESP32
Board
m5stack-core-esp32
Component causing the issue
display
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response