Sonoff WIFI devices becoming unavailable

Hey, I’m having some issues with Sonoff switches becoming unavailable in homeassistant intermittently. They do however come back online if the switch button is manually pressed. Or if the switch is activated via ewelink.

This issue appears to be specific to each button on the device. For example a doubble switch can have switch A available while B is unavailable, and the switch doesnt go offline in ewelink. This leads me to beleve this isnt a network connectivity issue.

They are all M5-1C-86W & M5-2C-86W wifi switches. For refrence i have 89 of them total so unsure if im hitting some kind of limitation in the free version of the API or is this is a know issue.

I did find a known issue that sounds similar, so just wondering if I am experiencing said issue or if not what are the next steps to diagnosing whats happening?

1 Like

Anyone?……………….

Hi Jake,

Same here. If have two Sonoff Basic R2 switched that I use for powering my 3D printer and the Octoprint controller. I already had a few 3D prints ***-up because one of the Sonoff switches decided to switch of the printer or controller, while printing.

I’ve improved wifi coverage in that area, but still the problem is there. I did a test:

March 10, 2025

  • BASICR202 - Printer Power turned on triggered by action Switch: Turn on
  • 06:29:32 - Last week - Guido

March 12, 2025

  • BASICR202 - Printer Power became unavailable

  • 08:13:58 - 4 days ago

  • BASICR202 - Printer Power turned off

  • 08:27:25 - 4 days ago

The switch was on for 2 days, then it became unavailable, and a few miutes later it’s switched off (I guess it became available at that point).

Apparently we’re not alone with this problem: Sonoff "unavailable"devices

1 Like

Hey!

I have now allocated all the switches static IP’s by using Bind IP to MAC in my router. I did this just to rule out any low level networking issues such as wifi signal or IP address conflicts.

I can sucessfully ping the devices that are offline in HA and as mentioned above, the device remains online in ewelink. The device also comes straight back online in HA if toggled on or off using ewelink.

So to conclude im certain this isnt a local network issue.

Are you running Openwrt on your router?

I have a separate 2.4g network
Wpa 2-PSK
Channel 6
20mhz
Wmm mode disabled

No disconnects with my sonoff devices anymore.

No WRT it’s all Draytek kit and the site has a large number of access points. There is already an SSID separate from the main network for IOT.

What’s the significance of your particular network settings?

  • Wpa 2-PSK
  • Channel 6
  • 20mhz
  • Wmm mode disabled

Again, I just can’t see this being a network issue simply because I wouldn’t be able to remotely operate the switch with the ewilink app which immediately brings it online in HA. The switch also pings without issue. But hey I’m open to trying anything at this point…

Similar issue. Switch goes off line. I goto the ewelink tab, switch is ok. Back to the main page switch is back on line.

Similar issue that I am having - I have a POWR3, 4 BasicR4’s and 3 4CHPRO3’s. All are running through a Deco P9 mesh system (with decent signal strength) and about 24 clients on the mesh at any time. My system is used to control the central heating and hot water via Home Assistant and, electrically, it’s fine, but it’s really frustrating to discover that these Sonoff units are randomly becoming unavailable (even though they can be seen by eWeLink) and will come back on line if powered off.

I guess my next step is to connect them all to a different router and hope that HA can still see them.

Certainly, as they are, it all seems like a pretty expensive waste of money!

Don’t use the Ewelink add-on, use Sonofflan

I’m using the Sonoff Integration (Version 3.8.2) - I only use eWelink to look at the units via my mobile phone if they appear to misbehave!