I had working Sonoff Basic running Tasmota, but I decided to update it to ESPHome.
I configured it like it is recommended here: https://esphome.io/devices/sonoff_basic.html
esphome:
name: sonoff_basic_1
platform: ESP8266
board: esp01_1m
wifi:
ssid: "my_ssid"
password: "my_password"
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "AlarmDecoder Sonoff Button"
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: "AlarmDecoder Sonoff Relay"
pin: GPIO12
id: relay
status_led:
pin:
number: GPIO13
inverted: yes
I configured ESPHome firmware and uploaded to the device. Upload was successful. After that, I checked and before I disconnected the Sonoff device, it connected to my WiFi network and received the IP address.
After that I disconnected device and plugged in into the wall. It is not connecting to the WiFi and it is not picking up IP address.
The Sonoff is slow flashing green light.
Any ideas?