esphome / esphome/issues

Display ssd1306_i2c causes wifi connection failure, reason='Auth Expired'

Open
#3,782 5 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
No language data
Stars
313
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### The problem

I am trying to add a dht11 sensor and a ssd1306 display to a nodeMCU esp8266. The sensor alone works fine but when adding the display, wifi fails, but only when actually connected (code works fine if display physically disconnected). The sensor reads properly, and the display renders the "Goodbye World!" properly, the only failure is wifi can not connect if the display is physically connected.

The yaml I am using is below:

```
esphome:
name: temp-humid

esp8266:
board: nodemcuv2

# Enable logging
logger:

# Enable Home Assistant API
api:
encryption:
key: "[REDACTED]"

ota:
password: "[REDACTED]"

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

sensor:
- platform: dht
pin: D5 # GPI14, D5
temperature:
name: "Temperature"
humidity:
name: "Humidity"
update_interval: 60s
model: DHT11

i2c:
sda: D1 # GPIO5, D1
scl: D2 # GPIO4, D2

font:
# gfonts://family[@weight]
- file: "gfonts://Roboto"
id: roboto
size: 16

display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.print(0, 0, id(roboto), "Goodbye World!");
```

The logs are as follows:

```
[20:48:54][I][wifi:255]: WiFi Connecting to '[REDACTED]'...
[20:48:56][W][wifi_esp8266:482]: Event: Disconnected ssid='[REDACTED]' bssid=[redacted] reason='Auth Expired'
[20:48:56][W][wifi:547]: Error while connecting to network.
[20:48:56][W][wifi:583]: Restarting WiFi adapter...
```

### Which version of ESPHome has the issue?

2022.10.2

### What type of installation are you using?

Home Assistant Add-on

### Which version of Home Assistant has the issue?

2022.11.2

### What platform are you using?

ESP8266

### Board

nodemcu

### Component causing the issue

ssd1306_i2c

### Example YAML snippet

```yaml
i2c:
sda: D1 # GPIO5, D1
scl: D2 # GPIO4, D2

display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.print(0, 0, id(roboto), "Goodbye World!");
```

### Anything in the logs that might be useful for us?

```txt
[20:48:54][I][wifi:255]: WiFi Connecting to '[REDACTED]'...
[20:48:56][W][wifi_esp8266:482]: Event: Disconnected ssid='[REDACTED]' bssid=[redacted] reason='Auth Expired'
[20:48:56][W][wifi:547]: Error while connecting to network.
[20:48:56][W][wifi:583]: Restarting WiFi adapter...
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.