Shelly Plus Mini 1 going offline, although the router claims it stayed online

I see these logs (from this morning):

08:43:47.459 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shelly1mini:6055f9988f3c' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to connect to device - NoRouteToHostException: Geen route naar host
08:44:47.469 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shelly1mini:6055f9988f3c' changed from OFFLINE (COMMUNICATION_ERROR): Unable to connect to device - NoRouteToHostException: Geen route naar host to UNKNOWN (CONFIGURATION_PENDING): Initializing or device in sleep mode.
08:44:47.471 [INFO ] [mation.script.file.thingNietOnline.js] - "Lampen badkamer (2de verdieping)" schijnt niet meer online, en heeft nu status "OFFLINE".
08:44:47.585 [INFO ] [ng.shelly.internal.api2.Shelly2ApiRpc] - shelly1mini-6055f9988f3c: Bluetooth needs to be enabled to activate BLU Gateway mode
08:44:47.625 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shelly1mini:6055f9988f3c' changed from UNKNOWN (CONFIGURATION_PENDING): Initializing or device in sleep mode. to ONLINE

(In the meantime, I disabled BLU Gateway Support in openHAB, as I no longer use that Shelly as bluetooth gateway, but I can’t imagine that caused the offline going?)

My router, however, claims the device was never disconnected (today):

Does anyone recognize this behaviour, or know any additional logging I could provide?

No takers? :wink:

Your logs state „No Route to…“
Therefore I would first check if the Thing is configured with the same IP-Address than the router reports.
If this matches, I would sssh into the openHAB server and ping that device from the console.
If it responds, I would restart the Binding…

erik@MinipcLG2:~$ ping 192.168.1.36
PING 192.168.1.36 (192.168.1.36) 56(84) bytes of data.
64 bytes from 192.168.1.36: icmp_seq=1 ttl=255 time=4.38 ms
64 bytes from 192.168.1.36: icmp_seq=2 ttl=255 time=5.03 ms
[...]
^C
--- 192.168.1.36 ping statistics ---
36 packets transmitted, 36 received, 0% packet loss, time 35059ms
rtt min/avg/max/mdev = 2.967/4.365/6.604/1.000 ms

Hoe does one do that?

I had something similar yesterday with one Tapo P100 used in my towel rail. When the power lead is “embracing” the P100 it affects wifi comms. Router says the device is up, I can ping, but openHAB (and also the Tapo App) claim that the device is offline.

Solution was to put the power lead not surrounding the P100.

ssh into the openHAB server, enter

openhab-cli console

Pwd is habopen, unless you changed it.
You will see the Karaf console and enter

bundle:list

Find the number of the Shelly Binding and enter

bundle:restart <number-of-shelly-binding>

Exit console by entering

ctrl+d

Check in MainUI if the device is coming back online…

1 Like

Okay, I did this. Let’s see how it evolves. :slight_smile:

It happened again…

17:06:54.626 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shelly1mini:6055f9988f3c' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to connect to device - NoRouteToHostException: Geen route naar host
17:07:54.635 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shelly1mini:6055f9988f3c' changed from OFFLINE (COMMUNICATION_ERROR): Unable to connect to device - NoRouteToHostException: Geen route naar host to UNKNOWN (CONFIGURATION_PENDING): Initializing or device in sleep mode.
nu status "OFFLINE".
17:07:54.910 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shelly1mini:6055f9988f3c' changed from UNKNOWN (CONFIGURATION_PENDING): Initializing or device in sleep mode. to ONLINE

Again, the router claims the device didn’t disconnect.

But the last log entry shows it as ONLINE…

Yes, but after it supposedly went offline, which the router denies…

Well, it all happened in the same second, so I would not bother too much ….

The same minute? :wink:

Sorry, only compared last two lines…