I am not sure why but this specific sonoff basic is proving hard to update. At the moment it is on 1.20.4 but I remember having some issue with the OTA at the time. It would not connect to the wifi. I eventually managed to reflash it with esptool.py
Now I am trying to OTA it to the latest software (2021.8.2) and again it is failing. This time even with esptool it won’t work.
I am wondering if there is something wrong with my config and would appreciate if someone could look at it?
substitutions: devicename: entrancelamp esphome: name: $devicename platform: ESP8266 board: esp01_1m wifi: ssid: !secret wifi_ssid password: !secret wifi_password web_server: port: 80 # Enable logging logger: # Enable Home Assistant API api: password: "secret password" ota: password: "secret password" binary_sensor: - platform: gpio pin: number: GPIO14 mode: INPUT_PULLUP inverted: True id: lamp_button on_state: - light.toggle: light_1 output: - platform: gpio pin: GPIO12 id: relay light: - platform: binary name: "Entrance Lamp" id: light_1 output: relay status_led: pin: number: GPIO13 inverted: yes