I have a sonoff rfr3, which i flashed using espflasher tool. I am able to receive logs using the serial port connection and it shows wifi signal strength as -41dB. Checking the router connected devices list, I can see my device as connected, however the blue led on the sonoff is flashing once per 2 seconds, which i understand means its not connected.
When i try to access logs OTA I receive a message saying “WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.8.223: [Errno 113] No route to host). Re-Trying in 1 seconds”.
Below is the yaml config file for the sonoff switch:
esphome:
name: sonoff_humidity-control
platform: ESP8266
board: esp01_1m
wifi:
ssid: "Abatha Gardens"
password: "81035120"
# Optional manual IP
manual_ip:
static_ip: 192.168.8.223
gateway: 192.168.8.1
subnet: 255.255.255.0
use_address: 192.168.8.223
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sonoff Humidity-Control"
password: "VDheuhABXV6s"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: 'humidityabatha'
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Humidity Control button"
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: "Humidity Control relay"
pin: GPIO12
id: relay
status_led:
pin:
number: GPIO13
inverted: yes
sensor:
- platform: wifi_signal
name: "Humidity Control WiFi signal"
update_interval: 60s
- platform: uptime
name: "Humidity Control uptime"
update_interval: 60s
text_sensor:
- platform: version
name: "Humidity Control ESPHome version"
Please help. Thanks!