Closed tvwerkhoven closed 3 years ago
It's a bit of a long shot, but I recently ran into quite an obscure issue when using font/display, causing the ESP8266 to crash with reboots: what version of the pillow python library do you use? Could you try upgrading pillow (using pip3)?
I found a solution: increase the update_interval to e.g. 10s, i.e. this works for me:
display:
- platform: ssd1327_i2c
model: "SSD1327 128x128"
update_interval: 30s
address: 0x3C
[...]
Problem (from source): "The display used the I2C protokoll. Maximum rate for the Wemos D1 seem to bee 100khz, which seem to be too slow to keep the default display refresh rate at 5s! As a result, it looks like this breaks the hard requirement of the ESPHome "scheduler" to not spend more than 10ms. In the end, the other components don't get a chance to handle their loops."
@mmakaay for the record (I don't think this was it), I have Pillow version 8.1.0.
For the record: you are right. That version of pillow has no issue.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
pip3 esphome 1.16.2 / esptool 2.8
ESP (ESP32/ESP8266, Board/Sonoff):
Wemos D1 mini pro (ESP8266)
ESPHome version (latest production, beta, dev branch)
esphome 1.16.2 / esptool 2.8 Affected component:
https://esphome.io/components/display/ssd1327.html
Description of problem: When I enable the OLED in the YAML file and upload it, the board either:
Problem-relevant YAML-configuration entries:
This works (wifi, no OLED):
When I append the following the wifi or the OLED breaks:
Logs (if applicable):
This is the debug log when wifi fails (and OLED works):
This is the debug log when OLED fails (and wifi works):
Additional information and things you've tried: There are multiple sensors connected to the board (1 Dallas, 1 bme280, 1 mh-z19b, 1 SDS011), but these all work fine as long as the oled is disabled (and possible even with the oled enabled). The wifi only breaks when I enable the oled.