ESPHome dropping off network every 30 seconds

Hey guys,

Ive migrated some devices from Tasmota to ESPhome after reading that its better integrated, better supported ect. And its just awful, keeps dropping off the network every 20s or so. These is the same for all three devices that are a mixture of different types (one magic home and two kogan filament bulbs)

Have I made a mistake here? should I switch back? Or is it a wrong setting?

esphome:
  name: right_bedside_lamp
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "secret"
  password: "secret"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Right Bedside Lamp"
    password: "secret"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

light:
  - platform: monochromatic
    name: "Right Bedside Lamp"
    output: output_component1


output:
  - platform: esp8266_pwm
    id: output_component1
    pin: GPIO14

I may have fixed this with a static IP for each.

But any suggestions for stability would be very welcome

Try and add power_save_mode: none under wifi:

wifi:
  power_save_mode: none

I found this solved a similar issue.

3 Likes

If you fixed it by static IP you have a very serious DHCP server configuration in your network ! In other case what are logs of ESP ? What do you use as power supply ?

I had a similar issue with one ESP board in the garage . Swapped out the board but still got the same issue, used static IP and some of the other suggests from the board. Nothing fixed it.

In the end the problem was the WIFI Access point in the garage I have a separate one that is hardwired to the rest of my network. I ended up resetting the WiFi device to factory and assigned a static IP address to it and that cleared up the issue, now no dropouts at all. Not sure exactly the issue but it might have been something to do with the WiFi security settings.

Thanks, I have seen this around, see how stable it is, keep it in the bank for now :slight_smile:

HAHA correlation, unfortunately is not causation. I was doing a few other things as well. These are all flashed consumer products, like Kogan bulbs and Magic Home strip controllers. Anyway, hope it stays stable :slight_smile:

Ahh ok, I have a mesh network and was getting -45db (give or take) so wifi wasn’t the issue for me.

Its annoying though.

For me it was not the signal strength as the WIFI and ESP Device was only 3 ft apart.

What brand of equipment are you using. I have a Unifi mesh and I had a similar issue with my WLED equipment dropping off the network. The fix for me was to add the Unifi Secure Gateway (USG) - very weird on why. But, after doing so, all my devices amazingly don’t drop off the network. In my belief it’s the passing of the DHCP/Reservation requests to other DHCP servers.

could you elaborate please? I also have Unifi setup (UDM + 2 AC Pros) and having similar issues. thanks in advance.

I am not familiar with the Dream Machine and it’s capabilities. The USG is Unifi’s Secure Gateway, a firewall/DHCP Server/Gateway, kind of like your home service providers(ISP) router here in the States. I have turned off all those services on my ISP’s router and replaced with the USG.
I had someone tell me about this same issue that we are/have experienced and I decided to install the USG to see and surprise it fixed my issues of dropping my WLED entities. I have also noticed an increase in speeds with the new USG, mind you my ISP router is older.
Hope this helps.