Xiaomi Gateway stop working after a couply of minutes

Hi,

I’ve a xiaomi gateway, and it works a couple of minutes, but after that the bridge goes offline, and I need to restart the thing to put it working again (for another couple of minutes).

Anybody can help?

Best Regards,
Fernando Gomes

Can you post the logs, please?

When I start it:

openhab.log:

2019-08-29 17:05:11.342 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘mihome.things’
2019-08-29 17:05:11.945 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Having 1 Item Discovery listeners
2019-08-29 17:05:12.053 [DEBUG] [org.openhab.binding.mihome ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=417, service.bundleid=225, service.scope=singleton} - org.openhab.bi
nding.mihome
2019-08-29 17:05:12.127 [DEBUG] [org.openhab.binding.mihome ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.status.ConfigStatusProvider}={service.id=418, service.bundleid=225, service.scope=singleton} - org.open
hab.binding.mihome
2019-08-29 17:05:12.215 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Init socket on Port: 9898
2019-08-29 17:05:12.215 [DEBUG] [e.internal.socket.XiaomiBridgeSocket] - Setup socket
2019-08-29 17:05:12.261 [DEBUG] [e.internal.socket.XiaomiBridgeSocket] - Initialized socket to null:-1 on 0.0.0.0/0.0.0.0:9898
2019-08-29 17:05:12.262 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - There are 1 open sockets: {9898=java.net.MulticastSocket@1f2809d1}
2019-08-29 17:05:12.263 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Staring reveicer thread for socket on port 9898
2019-08-29 17:05:12.263 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Adding socket listener org.openhab.binding.mihome.internal.handler.XiaomiBridgeHandler@77e2424f
2019-08-29 17:05:12.277 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-451,5,main] waiting for data on port 9898
2019-08-29 17:05:13.264 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:7811dcfb2a9a: {“cmd”: “get_id_list”}
2019-08-29 17:05:13.265 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {“cmd”: “get_id_list”} to /192.168.1.10:9898
2019-08-29 17:05:13.276 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.1.10:9898 on Port 9898
2019-08-29 17:05:13.556 [TRACE] [internal.handler.XiaomiBridgeHandler] - Received message {“cmd”:“get_id_list_ack”,“sid”:“7811dcfb2a9a”,“token”:“1cTfehwly7RI6cZP”,“data”:"[“158d00032141f1”]"}
2019-08-29 17:05:13.597 [TRACE] [internal.handler.XiaomiBridgeHandler] - Updated “last time seen” for device 7811dcfb2a9a
2019-08-29 17:05:13.675 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:7811dcfb2a9a: {“cmd”: “read”, “sid”: “158d00032141f1”}
2019-08-29 17:05:13.676 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {“cmd”: “read”, “sid”: “158d00032141f1”} to /192.168.1.10:9898
2019-08-29 17:05:13.676 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:7811dcfb2a9a: {“cmd”: “read”, “sid”: “7811dcfb2a9a”}
2019-08-29 17:05:13.676 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {“cmd”: “read”, “sid”: “7811dcfb2a9a”} to /192.168.1.10:9898
2019-08-29 17:05:13.676 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2019-08-29 17:05:13.676 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-451,5,main] waiting for data on port 9898
2019-08-29 17:05:13.684 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.1.10:9898 on Port 9898
2019-08-29 17:05:13.685 [TRACE] [internal.handler.XiaomiBridgeHandler] - Received message {“cmd”:“read_ack”,“model”:“weather.v1”,“sid”:“158d00032141f1”,“short_id”:48312,“data”:"{“voltage”:2995,“temperature”:“2579”,“humidity”:“60
16”,“pressure”:“98987”}"}
2019-08-29 17:05:13.685 [TRACE] [internal.handler.XiaomiBridgeHandler] - Updated “last time seen” for device 158d00032141f1
2019-08-29 17:05:13.732 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Device 158d00032141f1 honored read request
2019-08-29 17:05:14.137 [DEBUG] [discovery.XiaomiItemDiscoveryService] - Discovered device - sid: 158d00032141f1 model: weather.v1
2019-08-29 17:05:14.875 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘mihome.things’
2019-08-29 17:05:15.065 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ‘mihome:sensor_weather_v1:158d00032141f1’ to inbox.
2019-08-29 17:05:15.076 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Adding item listener for device 7811dcfb2a9a
2019-08-29 17:05:15.076 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Having 1 Item listeners
2019-08-29 17:05:15.077 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Adding item listener for device 158d00032141f1
2019-08-29 17:05:15.077 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2019-08-29 17:05:15.077 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Having 2 Item listeners
2019-08-29 17:05:15.077 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-451,5,main] waiting for data on port 9898
2019-08-29 17:05:15.077 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.1.10:9898 on Port 9898
2019-08-29 17:05:15.080 [TRACE] [internal.handler.XiaomiBridgeHandler] - Received message {“cmd”:“read_ack”,“model”:“gateway”,“sid”:“7811dcfb2a9a”,“short_id”:0,“data”:"{“rgb”:0,“illumination”:815,“proto_version”:“1.1.2”}"}
2019-08-29 17:05:15.081 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 7811dcfb2a9a on channel mihome:gateway:7811dcfb2a9a:7811dcfb2a9a:brightness received command REFRESH
2019-08-29 17:05:15.081 [TRACE] [internal.handler.XiaomiBridgeHandler] - Updated “last time seen” for device 7811dcfb2a9a
2019-08-29 17:05:15.081 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 7811dcfb2a9a on channel mihome:gateway:7811dcfb2a9a:7811dcfb2a9a:illumination received command REFRESH
2019-08-29 17:05:15.081 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 7811dcfb2a9a on channel mihome:gateway:7811dcfb2a9a:7811dcfb2a9a:color received command REFRESH
2019-08-29 17:05:15.082 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 7811dcfb2a9a on channel mihome:gateway:7811dcfb2a9a:7811dcfb2a9a:colorTemperature received command REFRESH
2019-08-29 17:05:15.082 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 7811dcfb2a9a on channel mihome:gateway:7811dcfb2a9a:7811dcfb2a9a:enableSound received command REFRESH
2019-08-29 17:05:15.083 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 7811dcfb2a9a on channel mihome:gateway:7811dcfb2a9a:7811dcfb2a9a:sound received command REFRESH
2019-08-29 17:05:15.084 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 7811dcfb2a9a on channel mihome:gateway:7811dcfb2a9a:7811dcfb2a9a:volume received command REFRESH
2019-08-29 17:05:15.084 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 158d00032141f1 on channel mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1:temperature received command REFRESH
2019-08-29 17:05:15.084 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 158d00032141f1 on channel mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1:humidity received command REFRESH
2019-08-29 17:05:15.084 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Update Item 158d00032141f1 with retented message
2019-08-29 17:05:15.084 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 158d00032141f1 on channel mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1:pressure received command REFRESH
2019-08-29 17:05:15.084 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Item got update: {“cmd”:“read_ack”,“model”:“weather.v1”,“sid”:“158d00032141f1”,“short_id”:48312,“data”:"{“voltage”:2995,“temperature”:“2579”,“humidity”:“60
16”,“pressure”:“98987”}"}
2019-08-29 17:05:15.086 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 158d00032141f1 on channel mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1:batteryLevel received command REFRESH
2019-08-29 17:05:15.086 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Device 158d00032141f1 on channel mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1:lowBattery received command REFRESH
2019-08-29 17:05:15.087 [DEBUG] [internal.handler.XiaomiBridgeHandler] - Device 7811dcfb2a9a honored read request
2019-08-29 17:05:15.304 [DEBUG] [rnal.handler.XiaomiDeviceBaseHandler] - Item got update: {“cmd”:“read_ack”,“model”:“gateway”,“sid”:“7811dcfb2a9a”,“short_id”:0,“data”:"{“rgb”:0,“illumination”:815,“proto_version”:“1.1.2”}"}
2019-08-29 17:05:15.305 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2019-08-29 17:05:15.306 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-451,5,main] waiting for data on port 9898

events.log:

2019-08-29 17:04:58.768 [hingStatusInfoChangedEvent] - ‘mihome:gateway:7811dcfb2a9a:7811dcfb2a9a’ changed from OFFLINE (BRIDGE_OFFLINE) to UNINITIALIZED
2019-08-29 17:04:59.135 [hingStatusInfoChangedEvent] - ‘mihome:gateway:7811dcfb2a9a:7811dcfb2a9a’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2019-08-29 17:04:59.138 [hingStatusInfoChangedEvent] - ‘mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1’ changed from OFFLINE (BRIDGE_OFFLINE) to UNINITIALIZED
2019-08-29 17:04:59.139 [hingStatusInfoChangedEvent] - ‘mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2019-08-29 17:04:59.154 [hingStatusInfoChangedEvent] - ‘mihome:bridge:7811dcfb2a9a’ changed from OFFLINE to UNINITIALIZED
2019-08-29 17:05:00.523 [hingStatusInfoChangedEvent] - ‘mihome:bridge:7811dcfb2a9a’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2019-08-29 17:05:12.174 [hingStatusInfoChangedEvent] - ‘mihome:bridge:7811dcfb2a9a’ changed from UNINITIALIZED to INITIALIZING
2019-08-29 17:05:12.267 [hingStatusInfoChangedEvent] - ‘mihome:gateway:7811dcfb2a9a:7811dcfb2a9a’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2019-08-29 17:05:12.270 [hingStatusInfoChangedEvent] - ‘mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2019-08-29 17:05:13.598 [hingStatusInfoChangedEvent] - ‘mihome:bridge:7811dcfb2a9a’ changed from INITIALIZING to ONLINE
2019-08-29 17:05:14.085 [hingStatusInfoChangedEvent] - ‘mihome:gateway:7811dcfb2a9a:7811dcfb2a9a’ changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-08-29 17:05:14.085 [hingStatusInfoChangedEvent] - ‘mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1’ changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-08-29 17:05:15.066 [home.event.InboxAddedEvent] - Discovery Result with UID ‘mihome:sensor_weather_v1:158d00032141f1’ has been added.
2019-08-29 17:05:15.079 [hingStatusInfoChangedEvent] - ‘mihome:gateway:7811dcfb2a9a:7811dcfb2a9a’ changed from INITIALIZING to ONLINE
2019-08-29 17:05:15.080 [hingStatusInfoChangedEvent] - ‘mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1’ changed from INITIALIZING to ONLINE

After 5 minutes:

2019-08-29 17:10:15.088 [hingStatusInfoChangedEvent] - ‘mihome:bridge:7811dcfb2a9a’ changed from ONLINE to OFFLINE
2019-08-29 17:10:15.091 [hingStatusInfoChangedEvent] - ‘mihome:gateway:7811dcfb2a9a:7811dcfb2a9a’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2019-08-29 17:10:15.092 [hingStatusInfoChangedEvent] - ‘mihome:sensor_weather_v1:7811dcfb2a9a:158d00032141f1’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

Thanks for the help,
Fernando

1 Like