Xiaomi mihome binding stops after 5 minutes with openvpn link

I’ve got an issue with the Xiaomi mihome binding and an openvpn link. I’ve been setting up a link between 2 OH machines (both running 2.5.3) over the vpn with mosquitto and that works well. However, shortly after I start the openvpn link, the local Xiaomi binding goes offline. If I restart the binding, it is alive for 5 minutes, then goes offline. Both ends of the openvpn link are running the Xiaomi binding. Right now I’m stumped and don’t know how to debug further. It is suspicious that the binding goes offline almost exactly 5 minutes after it is restarted.

Any ideas?

2020-04-12 16:23:14.986 [hingStatusInfoChangedEvent] - 'mihome:bridge:7811dcb90279' changed from INITIALIZING to ONLINE
2020-04-12 16:23:14.987 [hingStatusInfoChangedEvent] - 'mihome:gateway:7811dcb90279' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-12 16:23:14.988 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d0002c8db33' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-12 16:23:14.989 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:158d000212f5f4' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-12 16:23:14.989 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d00022ca086' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-12 16:23:15.022 [hingStatusInfoChangedEvent] - 'mihome:gateway:7811dcb90279' changed from INITIALIZING to ONLINE
2020-04-12 16:23:15.022 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:158d000212f5f4' changed from INITIALIZING to OFFLINE
2020-04-12 16:23:15.023 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d00022ca086' changed from INITIALIZING to ONLINE
2020-04-12 16:23:15.036 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d0002c8db33' changed from INITIALIZING to OFFLINE
2020-04-12 16:23:15.129 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:158d000212f5f4' changed from OFFLINE to ONLINE
2020-04-12 16:23:15.142 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d0002c8db33' changed from OFFLINE to ONLINE

2020-04-12 16:28:15.113 [hingStatusInfoChangedEvent] - 'mihome:bridge:7811dcb90279' changed from ONLINE to OFFLINE
2020-04-12 16:28:15.117 [hingStatusInfoChangedEvent] - 'mihome:sensor_wleak_aq1:158d000212f5f4' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 16:28:15.119 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d00022ca086' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 16:28:15.119 [hingStatusInfoChangedEvent] - 'mihome:gateway:7811dcb90279' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 16:28:15.119 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d0002c8db33' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

1 Like

I have found a workaround to this in case anyone else needs it. I found that stopping openvpn, restarting the mihome, waiting 5 minutes, then restarting the openvpn works. Then the mihome binding seems to work continuously afterwards. If I get a chance I will turn on the debug flag in the mihome and leave the openvpn link up and try to see if it gives any information on why it stops.