wolfgang ziegler


„make stuff and blog about it“

Fix unavailable Shelly Devices in Home Assistant

January 10, 2022

The Problem

I faced the problem of my Shelly devices becoming regularly unavailable in Home Assistant. Looking at the availability history this problem was quite obvious and especially annoying when a Home Assistant automation (e.g. lights on/off) should run and the Shelly device would not respond.

Shelly becomes unavailable every few minutes

The Reason

I lived with this problem for way too long given that there is actually a straigh-forward reason and fix for it.

Sometimes it actually helps to read the documentation. Looking at the Shelly Home Assistant integration page, it clearly states.

We recommend using unicast for communication. To enable this, enter the local IP address of the Home Assistant server and port 5683 into the CoIoT peer field and push SAVE button.

OK, so let's do that ...

The Fix

  • Open your Shelly's settings in a browser using its IP address (the settings we are looking for are not available in the app). There, find Advanced - Developer Settings.

Shelly Developer Settings

On this page, you find the CoIoT settings where you need to enter the IP address and port of your Home Assistant installation.

Shelly CoIoT settings.

  • Reboot the Shelly device.

Reboot Shelly

  • Done!

As far as I can tell for now this has fixed the problem. The "unavailable phases" have disappeared.

I guess, sometimes it pays off to read the documentation in the first place.