Installed ESPHome on a Sonoff Basic. Works fine except the status LED won’t stop blinking.
status_led:
pin:
number: 13
So, I want to see the logs (wireless connection) to determine what error the slow-flash of the status LED means. Nothing there. Perfectly normal log page.
Now the weirdness: I look at the Sonoff Basic again and the LED has stopped blinking.
So, I stop the log page and… the Status LED starts blinking again.
Open log and the LED stops blinking.
Close log and the LED blinks.
The built in ESPHome status light default blink action is if the device does not have any active connection. If you connect to the device to view logs, there’s an active connection and the light stops blinking. If you connect to the API, there’s an active connection and the light stops blinking. If it’s connected to HA the light doesn’t blink, but then restart HA and it starts blinking until HA connects again. The blinking can also indicate no wireless connection, but then you wouldn’t be able to connect to view logs.
I think that if wireless is not connected it blinks even more aggressive/faster. Two levels of warnings/errors are indicated with slow and fast blinking afaik.
According esphome’s manual slow blink shows a warning:
Blink slowly (about every second) when a warning is active. Warnings are active when for example reading a sensor value fails temporarily or the WiFi/MQTT connections are disrupted.
Blink quickly (multiple times per second) when an error is active. Errors indicate that ESPHome has found an error while setting up. In most cases, ESPHome will still try to recover from the error and continue with all other operations.
So I have my answer, though I don’t understand why I haven’t noticed this behavior after flashing dozens of ESP devices over the past few years. The WiFi is connecting, but the API is not. Until I connect to the logs by WiFi. Then the API connects.
Hm… i guess it’s not normal… try to “tinker” with api…like try with password, without password… also try to delete device from HA, restart sonoff and see if HA will find it.