Closed pjmsullivan closed 1 year ago
I’m having this same issue with two sonoff basics.
One has a DHT22 and an SGP30 sensor. The other is fairly basic with just the internal relay.
UPDATE: I can confirm that removing the captive_portal:
line from the YAML configuration fixes the issue.
esphome:
name: air-quality
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: [redacted]
ota:
password: [redacted]
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Air-Quality Fallback Hotspot"
password: [redacted]
captive_portal:
i2c:
scl: GPIO3
sda: GPIO1
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode:
input: true
pullup: true
inverted: true
name: Button
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: Switch
pin: GPIO12
id: relay
status_led:
pin:
number: GPIO13
inverted: true
sensor:
- platform: sgp30
eco2:
name: CO2
accuracy_decimals: 1
tvoc:
name: TVOC
accuracy_decimals: 1
compensation:
temperature_source: temperature
humidity_source: humidity
update_interval: 60s
- platform: dht
pin: GPIO14
temperature:
name: Temperature
id: temperature
humidity:
name: Humidity
id: humidity
update_interval: 60s
I have same issue with a sonoff basic, more details here Link to home assistant forum thread
I updated the affected sonoffs to 2022.11.5 and the connectivity issue is gone. Thank you.
The problem
After updating my devices to 2022.9.1, three sonoff basics couldn't connect to WiFi. After manually connecting to the devices over serial, erasing flash, uploading esphome, and checking the logs, I discovered the following:
esphome no matching network found
esphome Event: Disconnected ssid='[redacted]' reason='Probe Request Unsuccessful'
UPDATE: removing captive portal from a different sonoff basic does not resolve the issue, it remains unable to connect to wifi. Configs below.
Which version of ESPHome has the issue?
2022.9.1
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2022.9.6
What platform are you using?
ESP8266
Board
sonoff basic
Component causing the issue
captive portal (I believe)
Example YAML snippet
two configs that cause WiFi failures after update. The first works when I remove captive_portal, but not the second.
Second config file that does not work after update to 2022.9.0 (worked before):
Anything in the logs that might be useful for us?
Did the update to 2022.9.0 increase the compiled size that is causing WiFi to be unreliable? I
Additional information
Thank you so much for this amazing project.