Skip to main content
Selora Homes Selora Homes

How to Fix Shelly and Sonoff Wi-Fi Reliability Issues

Shelly or Sonoff Wi-Fi devices going unavailable, lagging or rebooting in Home Assistant? Check signal strength, firmware, roaming and inductive loads, with the settings for Shelly, Sonoff Matter, Tasmota and ESPHome.

Shelly Sonoff Troubleshooting Reliability Wi-Fi Connection Tasmota Esphome Matter

When a Shelly or Sonoff Wi-Fi relay, plug or switch keeps dropping off, work through four likely causes in order: weak Wi-Fi signal, the network configuration, old firmware, and electrical noise from the load it switches. Each step covers both brands.

Symptoms

  • The device shows as unavailable in Home Assistant, even though it is powered.
  • Commands take several seconds to act, or are missed.
  • The device reboots on its own, often when a motor, fan or pump switches.
  • Only a power cycle brings it back.
  • Energy readings have gaps for the periods the device was offline.

Step 1: Check the Signal Strength

Start with the signal, especially for a device inside a wall box or behind an appliance. Find the device’s signal strength (RSSI, in dBm, where closer to zero is stronger) in one of these places.

Shelly in Home Assistant: the Shelly integration has an RSSI sensor for every device, disabled by default. Open the device in Settings > Devices & Services > Shelly, enable the RSSI entity, and watch its history for a day. A value that drops when the device goes unavailable points to signal.

Shelly web page:

  • Gen1: open http://<device-ip>/status. The wifi_sta block shows the network, IP address and rssi.
  • Gen2 and later: open http://<device-ip>/rpc/WiFi.GetStatus. It returns rssi, ssid, channel and the connection status (disconnected, connecting, connected or got ip).

Sonoff: for a Matter or stock-firmware device, check the client list in the router or access point. On Tasmota, the Status 11 console command shows the current state message, including a Wifi block with the access point and signal.

See WiFi IoT devices not connecting for what the RSSI values mean and how to improve coverage.

Step 2: Check the Network

Both brands use 2.4 GHz Wi-Fi only. Sonoff lists “a stable 2.4GHz Wi-Fi network” as a requirement for its Matter devices, and Shelly’s Wi-Fi devices are 802.11 b/g/n on the 2.4 GHz band.

  1. Give the device a reserved address. Reserve an IP address in the router for each device, so it never comes back on a new address after a power cut.
  2. Keep it on the same network as Home Assistant. Shelly discovery uses mDNS, which does not cross VLANs without an mDNS relay. Sonoff’s Matter troubleshooting asks you to check that the device is on the same 2.4 GHz network as Home Assistant.
  3. Review the access point settings. A separate 2.4 GHz band, WPA2, channel width, fast roaming and client limits all affect these devices. Work through WiFi IoT devices not connecting, which covers each setting.

Step 3: Update the Firmware

Shelly: Home Assistant shows a Firmware update entity for mains-powered Shelly devices and can install the latest stable version. On Gen1 devices the entity is disabled by default, so enable it first. Battery devices only report that an update exists: update them from the Shelly app or their web page.

Sonoff Matter devices: update them in the eWeLink app. Sonoff says Home Assistant cannot update them.

Tasmota and ESPHome: update to a current release through the device’s own web page or the ESPHome dashboard.

Step 4: Tune the Device’s Wi-Fi Settings

Shelly

  • Gen1: turn on Internet & Security > WiFi Client AP Roaming, so the device moves to a closer access point instead of staying on a distant one.
  • Gen2 and later: the Wi-Fi settings have a roaming option. The device looks for a better access point every 60 seconds by default, and roams when its signal falls to the threshold, -80 dBm by default. In a home with several access points, a higher threshold such as -70 dBm makes it move sooner.
  • Gen1 push updates: if Home Assistant raises a repair saying push updates are not arriving, check the CoIoT peer setting in Shelly Integration Setup and allow UDP port 5683 between the device and Home Assistant.

Sonoff on Matter

Sonoff’s Matter devices (MINI-RBS, MINI-D, MINIR4M and M5 Matter at the time of writing) work locally, with no cloud dependency. If one is added but stops responding, Sonoff’s own steps are:

  1. Check that it is on the same 2.4 GHz network as Home Assistant.
  2. Check its IP address and Wi-Fi strength.
  3. Restart the device, or remove it and pair it again.

Sonoff on Tasmota

Run these commands from the Tasmota console:

  • SetOption56 1: scans for the strongest network when the device restarts.
  • SetOption57 1: rescans for networks periodically and switches to an alternate access point with a stronger signal.
  • WifiPower 0: adjusts the transmit power to the signal strength instead of using a fixed level.
  • WifiConfig 4: the default. The device retries the other access point without rebooting. Leave it unless you have changed it.

Leave Tasmota’s sleep setting alone. Dynamic sleep is on by default and gives the Wi-Fi stack time to keep the connection alive.

Sonoff on ESPHome

In the device’s wifi: configuration:

  • power_save_mode: none: ESPHome warns that higher power saving can cause frequent disconnections. ESP8266 devices already default to none. ESP32 devices default to light, so set it explicitly on mains-powered ESP32 devices.
  • output_power: do not set it to the 20.5 dB maximum. ESPHome warns it may cause unexpected restarts.
  • reboot_timeout: the device reboots after 15 minutes without Wi-Fi by default, because a full reboot is sometimes the only way to bring the interface back. Keep it enabled.

Step 5: Check for Electrical Noise

If the device reboots or freezes when its load switches, and the signal is fine, the cause is usually an inductive load: a motor, pump, fan, contactor or solenoid. Switching it produces voltage spikes.

Fit an RC snubber across the load. Shelly’s knowledge base describes the wiring and lists inductive loads with an RC snubber as a supported load type. Snubbers are wired into the mains circuit, so have an electrician fit them.

If the device still freezes with a snubber fitted and a good signal, replace it.

Type to search across

↑↓ navigate ↵ open
⌘K search