[SOLVED] Xiaomi Mi Smart Home - getting device information

I got after some time the Mi Smart Home Gateway v3 up and running. I have some sensors connected to the Gateway:

  • Xiaomi Mi Smart Home Gateway
  • Xiaomi Aqara Temperature, Humidity & Pressure Sensor
  • Xiaomi Aqara Motion Sensor
  • Xiaomi Mi Wireless Switch
  • Xiaomi Mijia Honeywell Fire Alarm Detector

After my first tries with text files, I started from scratch and using just PaperUI:
At first the binding (running on 2.2 stable) doesn’t recognize the Gateway as a Bridge, so I added it manually in PaperUI but then I couldn’t insert the Serial Number (not sure, if needed?). Then the Things were found (except the Gateway, which I installed manually with ist SerialNumber). So now I have the 5 Things online:

2017-12-25 17:13:46.626 [hingStatusInfoChangedEvent] - 'mihome:gateway:xxxxx' changed from INITIALIZING to ONLINE
2017-12-25 17:12:19.063 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:158d000xxxxxx' changed from INITIALIZING to ONLINE
2017-12-25 17:12:15.743 [hingStatusInfoChangedEvent] - 'mihome:sensor_motion_aq2:158d000xxxxxx' changed from INITIALIZING to ONLINE
2017-12-25 17:12:21.763 [hingStatusInfoChangedEvent] - 'mihome:sensor_switch:158d000xxxxxx' changed from INITIALIZING to ONLINE
2017-12-25 17:12:26.705 [hingStatusInfoChangedEvent] - 'mihome:smoke:158d000xxxxxx' changed from INITIALIZING to ONLINE

But, if I add some items from them, I don’t get much out of it, but the multi-Temperatur sensor, the motion sensor and the Switch (initially). After the first initial information, it seems, there are no more information being polled or sent or what the binding does…
I don’t find a place to change “pollingInterval” (Question: is it msec or sec?) in the PaperUI for the bridge, but also, when I add the Bridge, the Things and the items via files, I only get the information of the three above sensors at the start. Neither the Switch nor the Motion Sensor or the temperatures did I get when the sensors Change. The Information I get in the App are on Point, but the binding doesn’t seem to get them.

Do I miss something?

here’s my file-based approach:
xiaomi.things

// Xiaomi Gateway
Switch MiGateway_LightSwitch 		"Gateway Licht"				<light> 		(xiaomi) 		{ channel="mihome:gateway:rossbuehel:brightness" }
Dimmer MiGateway_Brightness 		"Gateway Licht Dimmer [%d %%]" 		<dimmablelight> 	(xiaomi)		{ channel="mihome:gateway:rossbuehel:brightness" }
Color  Gateway_Color 			"Gateway Licht Farbe"			<rgb> 			(xiaomi)		{ channel="mihome:gateway:rossbuehel:color" }
Dimmer Gateway_ColorTemperature	 	"Gateway Licht Farbtemeratur"		<heating> 		(xiaomi)		{ channel="mihome:gateway:rossbuehel:colorTemperature" }
Number Gateway_AmbientLight 		"Gateway Licht Ambient [%.1f]"		<sun> 			(xiaomi)		{ channel="mihome:gateway:rossbuehel:illumination" }
Number Gateway_Sound 			"Gateway Sound Lautstärke [%.1f]"	<soundvolume-0> 	(xiaomi)		{ channel="mihome:gateway:rossbuehel:sound" }
Switch Gateway_SoundSwitch 		"Gateway Sound"				<soundvolume_mute> 	(xiaomi)		{ channel="mihome:gateway:rossbuehel:enableSound" }
Dimmer Gateway_SoundVolume 		"Gateway Sound Volume"			<soundvolume> 		(xiaomi)		{ channel="mihome:gateway:rossbuehel:volume" }

xiaomi.items

// Xiaomi Temperature and Humidity Sensor
Number MiWeather_Temperature 		"Temperatursensor [%.1f C]"		<temperature> 		(xiaomi)		{ channel="mihome:sensor_weather_v1:rossbuehel:158d0001xxxxxx:temperature" }
Number MiWeather_Humidity 		"Feuchtigkeit [%.1f %]"			<humidity> 		(xiaomi)		{ channel="mihome:sensor_weather_v1:rossbuehel:158d0001xxxxxx:humidity" }
Number MiWeather_Pressure 		"Luftdruck [%.1f] hP"			<pressure> 		(xiaomi)		{ channel="mihome:sensor_weather_v1:rossbuehel:158d0001xxxxxx:pressure" }
Number MiWeather_Battery 		"Temperatursensor Batterie [%.0 %]"	<battery> 		(xiaomi)		{ channel="mihome:sensor_weather_v1:rossbuehel:158d0001xxxxxx:batteryLevel" }
Switch MiWeather_BatteryLow 		"Temperatursensor Batt leer"		<energy> 		(xiaomi)		{ channel="mihome:sensor_weather_v1:rossbuehel:158d0001xxxxxx:lowBattery" }

// Xiaomi Motion Sensor
Switch MiMotionSensor_MotionStatus 	"Bewegung"				<motion>  		(xiaomi)		{ channel="mihome:sensor_motion_aq2:rossbuehel:158d0001xxxxxx:motion" }
Number MiMotionsSensor_Illumination	 "Bewegung Beleuchtung [%.1f]"		<sun>			(xiaomi)		{ channel="mihome:sensor_motion_aq2:rossbuehel:158d0001xxxxxx:illumination" }
// minimum 5 seconds - remember that the sensor only triggers every minute to save energy
Number MiMotionSensor_MotionTimer 	"Bewegung Timer [%.1f s]"		<clock> 		(xiaomi)		{ channel="mihome:sensor_motion_aq2:rossbuehel:158d0001xxxxxx:motionOffTimer" }
DateTime MiMotionSensor_LastMotion	"letzte Bewegung [%1$tY-%1$tm-%1$td  %1$tH:%1$tM]" <clock-on> 	(xiaomi)		{ channel="mihome:sensor_motion_aq2:rossbuehel:158d0001xxxxxx:lastMotion" }
Number MiMotionSensor_Battery 		"Bewegungssensor Batterie [%.1f %]"	<battery> 		(xiaomi)		{ channel="mihome:sensor_motion_aq2:rossbuehel:158d0001xxxxxx:batteryLevel" }
Switch NiMotionSensor_BatteryLow 	"Bewegungssensor Batterie leer"		<energy> 		(xiaomi)		{ channel="mihome:sensor_motion_aq2:rossbuehel:158d0001xxxxxx:lowBattery" }

// Xiaomi Firedetector
Number MiSmokeDetector_Density		"Luftdichte [%.1f]"			<sun>			(xiaomi)		{ channel="mihome:smoke:rossbuehel:158d0001xxxxxx:density" }
Switch MiSmokeDetector_Alarmihome	"FEUERALARM"				<fire>			(xiaomi)		{ channel="mihome:smoke:rossbuehel:158d0001xxxxxx:alarm" }
String MiSmokeDetector_Status		"Rauchmelder Status [%s]"		<fire>			(xiaomi)		{ channel="mihome:smoke:rossbuehel:158d0001xxxxxx:status" }
Number MiSmokeDetector_Battery 		"Rauchmelder Batterie [%.1f %]"		<battery> 		(xiaomi)		{ channel="mihome:smoke:rossbuehel:158d0001xxxxxx:batteryLevel" }
Switch MiSmokeDetector_BatteryLow 	"Rauchmelder Batterie leer"		<energy> 		(xiaomi)		{ channel="mihome:smoke:rossbuehel:158d0001xxxxxx:lowBattery" }

// Xiaomi Switch - see "xiaomi.rules" for action triggers
Number MiSwitch_Battery 		"Button Batterie [%.1f %]"		<battery> 		(xiaomi)		{ channel="mihome:sensor_switch:rossbuehel:158d0001xxxxxx:batteryLevel" }
Switch MiSwitch_BatteryLow 		"Button Batterie leer"			<battery> 		(xiaomi)		{ channel="mihome:sensor_switch:rossbuehel:158d0001xxxxxx:lowBattery" }

That is not a things file, that are items definitions. Things file looks like this:

Bridge mihome:bridge:34cexxxxxxxx "Xiaomi Gateway Bridge" @ "Flur oben" [ serialNumber="34cexxxxxxxx", ipAddress="192.168.2.26", port=9898, key="yxyxyxyxyxyxyxyxy", pollingInterval=6000 ] {
    Things:
    gateway 34cexxxxxxxx "Xiaomi Mi Smart Home Gateway" @ "Flur oben" [itemId="34cexxxxxxxx"]
    sensor_magnet 158d000yyyyyy "Xiaomi Mailbox Sensor" @ "Mailbox" [itemId="158d000yyyyyy"]
}

msec

Yes, it is needed, see the docs:
http://docs.openhab.org/addons/bindings/mihome/readme.html

Make sure you have the correct developer key from the app …

of Course! :wink: Wrong paste…

Bridge mihome:bridge:rossbuehel "Xiaomi Gateway" [ serialNumber="34cexxxxxx", ipAddress="192.168.xx.xx", port=9898, key="xx", pollingInterval=5 ] 
{
	Things:
		gateway			34cexxxxxx	"Xiaomi Mi Smart Home Gateway" 	@ "Rossbuehel"		[itemId="34cexxxxxx"]
		sensor_weather_v1	158d0001xxxxxx	"Xiaomi Temperature Sensor" 	@ "Rossbuehel OG"	[itemId="158d0001xxxxxx"]
		sensor_motion_aq2	158d0001xxxxxx 	"Xiaomi Motion Sensor" 		@ "Rossbuehel Eingang"	[itemId="158d0001xxxxxx"]
		sensor_switch		158d0001xxxxxx 	"Xiaomi Mi Wireless Switch" 	@ "Rossbuehel Eingang"	[itemId="158d0001xxxxxx"]
		smoke			158d0001xxxxxx 	"Xiaomi Smoke Detector" 	@ "Rossbuehel OG"	[itemID="158d0001xxxxxx"]
}

I must have, since the Things are online and all - and I get at least some Information (Switch, Gateway, Occupancy), but only on Startup (or if the Things file gets reloaded).

sensor_weather_v1	
sensor_motion_aq2	

I don’t think you can change the channel names, try without _xx

These two are the only ones sending information! :wink:
…and they were autodiscovered using that Suffixes before I used them in my Things.file:
image

2017-12-25 19:14:56.279 [vent.ItemStateChangedEvent] - MiWeather_Humidity changed from 43.63999938964844 to 44.65999984741211
2017-12-25 19:14:56.291 [vent.ItemStateChangedEvent] - MiWeather_Temperature changed from 24.860000610351562 to 27.239999771118164
2017-12-25 19:14:56.313 [vent.ItemStateChangedEvent] - MiWeather_Pressure changed from 95.95999908447266 to 95.93000030517578
2017-12-25 19:14:56.322 [vent.ItemStateChangedEvent] - MiMotionSensor_Battery changed from NULL to 83
2017-12-25 19:14:56.360 [vent.ItemStateChangedEvent] - NiMotionSensor_BatteryLow changed from NULL to OFF
2017-12-25 19:14:56.414 [vent.ItemStateChangedEvent] - MiGateway_Brightness changed from 100 to 0

…unfortunately 19:14 was the last time, I saved the Things.file - and that was the last time, I had an entry in the logs:

[19:38:28] openhabian@openHAB2-huette:~$ ls -la /etc/openhab2/things/
insgesamt 16
drwxrwxr-x+  2 openhab    openhabian 4096 Dez 25 18:57 .
drwxrwxr-x+ 13 openhab    openhabian 4096 Dez 25 18:48 ..
-rw-rw-r--   1 openhab    openhabian  229 Dez 18 13:44 readme.txt
-rw-rw-r--   1 openhabian openhabian  731 Dez 25 19:14 xiaomi.things
[19:56:15] openhabian@openHAB2-huette:~$ ls -la /var/log/openhab2/
insgesamt 44
drwxrwxr-x+ 2 openhab openhabian  4096 Dez 25 18:53 .
drwxr-xr-x  7 root    root        4096 Dez 25 18:48 ..
-rw-rw-r--  1 openhab openhab        0 Dez 25 18:53 audit.log
-rw-rw-r--  1 openhab openhab    15045 Dez 25 19:14 events.log
-rw-rw-r--  1 openhab openhab    18231 Dez 25 19:14 openhab.log
-rwxrwxr-x  1 openhab openhabian     0 Dez 18 13:44 Readme.txt

it should at least change every six seconds? …is reaction to an action e.g. switch presses dependend on polling? or is ist real-time?

I installed the binding just two weeks ago and therefore not an expert, sorry.
My only sensor (sensor_magnet, the others are somewhere between China and Germany) is reporting instantly.
The polling interval is only valid for the gateway.
You should have a lot of entries in your events.log, every time an item is updating. Or do you only have the Xiaomi binding installed?

hehe - that one is my dev OH2, it’s clean, freshly installed and has only the mihome binding live. :wink:
and that is, what’s bothering me, I don’t see, what I did wrong… :thinking:

I think the basic problem is that your gateway was not autodiscovered …
I would delete your PaperUI configured stuff regarding the Xiaomi binding, uninstall the binding, reinstall it and try to autodiscover the gateway again … :sunglasses:

so, the gateway is autodescover-ready! :wink:
I suspect, I did exactly that more than one time, but you’ll never be sure.

…but I have LAN and Wifi for my OH2-pi - using Wifi for the Gateway. but with installation I got this message:

2017-12-25 18:54:37.148 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.ww.xx
2017-12-25 18:54:37.309 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.yy.zz:8080
2017-12-25 18:54:37.312 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.yy.zz:8443

=> so, my Pi has two IP-addresses and the Gateway is on http://192.168.yy… subnet. :thinking::thinking::thinking:

The gateway should connect to your router, not the server.
Turn off wifi on your server and let the gateway connect to the router …

To explain: I’ll be using that one Pi at my mountain cottage, but with a different network than my home network. That’s why I setup the cottage-network already at home.

  • 192.168.ww.xx is my home subnet
  • 192.168.yy.zz is the cottage subnet

At first, I had the Pi Setup via LAN (ww.xx) and then I connected the Wifi (yy.zz). They were both live as I installed the Pi.
The gateway is already in the cottage subnet (yy.zz) - and it hooked up in the cottage router getting an IP from that subnet.

So long story short: yes, the gateway is connected with the router and openHABian is also. The only thing, what is different from “standard” (as I said, the DEV OH2 is clean and fresh) is the two NICs.

Now you need to wait for a network guy … I have only experience with a single network … :joy::rofl:

1 Like

ok, but now that I set the binding to TRACE, I get just more information - and I think it’s unrelated to the network status:
It appears, that the polling is just odd, and there’s no connection whatsoever from LIVE-Actions, like pressing my Switch and not all movements of the occupancy sensor are transferred… but I Keep the binding in TRACE for the night and see whats going on.

2017-12-25 20:58:04.806 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:4321 on Port 9898
2017-12-25 20:58:04.813 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"report","model":"sensor_motion.aq2","sid":"158d000xxxxxx","short_id":4632,"data":"{\"lux\":\"11\"}"}
2017-12-25 20:58:04.817 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d000xxxxxx
2017-12-25 20:58:04.823 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"report","model":"sensor_motion.aq2","sid":"158d000xxxxxx","short_id":4632,"data":"{\"lux\":\"11\"}"}
2017-12-25 20:58:04.831 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:04.837 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-45,5,main] waiting for data on port 9898
2017-12-25 20:58:04.840 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:4321 on Port 9898
2017-12-25 20:58:04.844 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"report","model":"sensor_motion.aq2","sid":"158d000xxxxxx","short_id":4632,"data":"{\"status\":\"motion\"}"}
2017-12-25 20:58:04.847 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d000xxxxxx
2017-12-25 20:58:04.853 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"report","model":"sensor_motion.aq2","sid":"158d000xxxxxx","short_id":4632,"data":"{\"status\":\"motion\"}"}
2017-12-25 20:58:04.868 [DEBUG] [ler.XiaomiSensorBaseHandlerWithTimer] - Cancelled running timer
2017-12-25 20:58:04.873 [DEBUG] [ler.XiaomiSensorBaseHandlerWithTimer] - Setting timer to 120s
2017-12-25 20:58:04.876 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:04.879 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-45,5,main] waiting for data on port 9898
2017-12-25 20:58:19.844 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.config.discovery.DiscoveryService}={component.name=org.openhab.binding.mihome.discovery.bridge, component.id=166, service.id=268, service.bundleid=235, service.scope=bundle} - org.openhab.binding.mihome
2017-12-25 20:58:19.875 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=binding.mihome, component.id=167, service.id=269, service.bundleid=235, service.scope=bundle} - org.openhab.binding.mihome
2017-12-25 20:58:19.910 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Handler disposes. Unregistering listener
2017-12-25 20:58:19.949 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Handler disposes. Unregistering listener
2017-12-25 20:58:19.976 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Handler disposes. Unregistering listener
2017-12-25 20:58:20.077 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Handler disposes. Unregistering listener
2017-12-25 20:58:20.096 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Handler disposes. Unregistering listener
2017-12-25 20:58:20.130 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Handler disposes. Unregistering listener
2017-12-25 20:58:20.146 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - dispose
2017-12-25 20:58:20.149 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Interrupting Thread Thread[Thread-45,5,main]
2017-12-25 20:58:20.152 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Closing socket java.net.MulticastSocket@1b4c948
2017-12-25 20:58:20.156 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Receiver thread was interrupted
2017-12-25 20:58:20.161 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Receiver thread ended
2017-12-25 20:58:20.172 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=289, service.bundleid=235, service.scope=singleton} - org.openhab.binding.mihome
2017-12-25 20:58:20.188 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.config.core.status.ConfigStatusProvider}={service.id=290, service.bundleid=235, service.scope=singleton} - org.openhab.binding.mihome
2017-12-25 20:58:20.225 [DEBUG] [org.openhab.binding.mihome          ] - BundleEvent STOPPING - org.openhab.binding.mihome
2017-12-25 20:58:20.237 [DEBUG] [org.openhab.binding.mihome          ] - BundleEvent STOPPED - org.openhab.binding.mihome
2017-12-25 20:58:20.243 [DEBUG] [org.openhab.binding.mihome          ] - BundleEvent STARTING - org.openhab.binding.mihome
2017-12-25 20:58:20.293 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={component.name=org.openhab.binding.mihome.discovery.bridge, component.id=212, service.id=340, service.bundleid=235, service.scope=bundle} - org.openhab.binding.mihome
2017-12-25 20:58:20.309 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=binding.mihome, component.id=213, service.id=341, service.bundleid=235, service.scope=bundle} - org.openhab.binding.mihome
2017-12-25 20:58:20.326 [DEBUG] [org.openhab.binding.mihome          ] - BundleEvent STARTED - org.openhab.binding.mihome
2017-12-25 20:58:20.885 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Having 1 Item Discovery listeners
2017-12-25 20:58:20.898 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=342, service.bundleid=235, service.scope=singleton} - org.openhab.binding.mihome
2017-12-25 20:58:20.928 [DEBUG] [org.openhab.binding.mihome          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.status.ConfigStatusProvider}={service.id=343, service.bundleid=235, service.scope=singleton} - org.openhab.binding.mihome
2017-12-25 20:58:20.948 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Init socket on Port: 9898
2017-12-25 20:58:20.954 [DEBUG] [e.internal.socket.XiaomiBridgeSocket] - Setup socket
2017-12-25 20:58:20.958 [DEBUG] [e.internal.socket.XiaomiBridgeSocket] - Initialized socket to null:-1 on 0.0.0.0/0.0.0.0:9898
2017-12-25 20:58:20.965 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - There are 1 open sockets: {9898=java.net.MulticastSocket@99ba95}
2017-12-25 20:58:20.965 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Staring reveicer thread for socket on port 9898
2017-12-25 20:58:20.969 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-60,5,main] waiting for data on port 9898
2017-12-25 20:58:20.970 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Adding socket listener org.openhab.binding.mihome.handler.XiaomiBridgeHandler@10f6d68
2017-12-25 20:58:21.867 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:4321 on Port 9898
2017-12-25 20:58:21.874 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"heartbeat","model":"gateway","sid":"34ce00xxxxxx","short_id":"0","token":"Dus3XEea0eiZJCM1g","data":"{\"ip\":\"192.168.yy.zz\"}"}
2017-12-25 20:58:21.877 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 34ce00xxxxxx
2017-12-25 20:58:21.888 [DEBUG] [discovery.XiaomiItemDiscoveryService] - Detected Xiaomi smart device - sid: 34ce00xxxxxx model: gateway
2017-12-25 20:58:21.965 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'mihome:gateway:34ce00xxxxxx' to inbox.
2017-12-25 20:58:21.973 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:21.974 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Adding item listener for device 34ce00xxxxxx
2017-12-25 20:58:21.974 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-60,5,main] waiting for data on port 9898
2017-12-25 20:58:21.976 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Having 1 Item listeners
2017-12-25 20:58:21.978 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Adding item listener for device 158d000xxxxxxx
2017-12-25 20:58:21.982 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Having 2 Item listeners
2017-12-25 20:58:21.982 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Triggered discovery
2017-12-25 20:58:21.984 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Adding item listener for device 158d000xxxxxx
2017-12-25 20:58:21.986 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:rossbuehel: {"cmd": "get_id_list"}
2017-12-25 20:58:21.988 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {"cmd": "get_id_list"} to /192.168.yy.zz:9898
2017-12-25 20:58:21.988 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Having 3 Item listeners
2017-12-25 20:58:21.990 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Adding item listener for device 158d000xxxxxxx
2017-12-25 20:58:21.995 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Having 4 Item listeners
2017-12-25 20:58:22.000 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Adding item listener for device 158d000xxxxxxx
2017-12-25 20:58:22.007 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Having 5 Item listeners
2017-12-25 20:58:22.023 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 34ce00xxxxxx on channel mihome:gateway:rossbuehel:34ce00xxxxxx:brightness received command REFRESH
2017-12-25 20:58:22.031 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Update Item 34ce00xxxxxx with retented message
2017-12-25 20:58:22.043 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"read_ack","model":"gateway","sid":"34ce00xxxxxx","short_id":0,"data":"{\"rgb\":0,\"illumination\":1292,\"proto_version\":\"1.0.9\"}"}
2017-12-25 20:58:22.080 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 34ce00xxxxxx on channel mihome:gateway:rossbuehel:34ce00xxxxxx:illumination received command REFRESH
2017-12-25 20:58:22.081 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 34ce00xxxxxx on channel mihome:gateway:rossbuehel:34ce00xxxxxx:color received command REFRESH
2017-12-25 20:58:22.094 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:9898 on Port 9898
2017-12-25 20:58:22.104 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"get_id_list_ack","sid":"34ce00xxxxxx","token":"YcKTE9tIi6SM1liT","data":"[\"158d000xxxxxxx\",\"158d000xxxxxx\",\"158d000xxxxxxx\",\"158d000xxxxxxx\"]"}
2017-12-25 20:58:22.105 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 34ce00xxxxxx on channel mihome:gateway:rossbuehel:34ce00xxxxxx:enableSound received command REFRESH
2017-12-25 20:58:22.111 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 34ce00xxxxxx
2017-12-25 20:58:22.116 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:rossbuehel: {"cmd": "read", "sid": "158d000xxxxxxx"}
2017-12-25 20:58:22.119 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {"cmd": "read", "sid": "158d000xxxxxxx"} to /192.168.yy.zz:9898
2017-12-25 20:58:22.094 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 34ce00xxxxxx on channel mihome:gateway:rossbuehel:34ce00xxxxxx:colorTemperature received command REFRESH
2017-12-25 20:58:22.124 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 34ce00xxxxxx on channel mihome:gateway:rossbuehel:34ce00xxxxxx:sound received command REFRESH
2017-12-25 20:58:22.128 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 34ce00xxxxxx on channel mihome:gateway:rossbuehel:34ce00xxxxxx:volume received command REFRESH
2017-12-25 20:58:22.130 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:sensor_weather_v1:rossbuehel:158d000xxxxxxx:humidity received command REFRESH
2017-12-25 20:58:22.129 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:sensor_weather_v1:rossbuehel:158d000xxxxxxx:temperature received command REFRESH
2017-12-25 20:58:22.133 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:sensor_weather_v1:rossbuehel:158d000xxxxxxx:pressure received command REFRESH
2017-12-25 20:58:22.136 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:sensor_weather_v1:rossbuehel:158d000xxxxxxx:lowBattery received command REFRESH
2017-12-25 20:58:22.134 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:sensor_weather_v1:rossbuehel:158d000xxxxxxx:batteryLevel received command REFRESH
2017-12-25 20:58:22.139 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxx on channel mihome:sensor_motion_aq2:rossbuehel:158d000xxxxxx:motion received command REFRESH
2017-12-25 20:58:22.142 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:rossbuehel: {"cmd": "read", "sid": "158d000xxxxxx"}
2017-12-25 20:58:22.140 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxx on channel mihome:sensor_motion_aq2:rossbuehel:158d000xxxxxx:illumination received command REFRESH
2017-12-25 20:58:22.145 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {"cmd": "read", "sid": "158d000xxxxxx"} to /192.168.yy.zz:9898
2017-12-25 20:58:22.156 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxx on channel mihome:sensor_motion_aq2:rossbuehel:158d000xxxxxx:batteryLevel received command REFRESH
2017-12-25 20:58:22.156 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxx on channel mihome:sensor_motion_aq2:rossbuehel:158d000xxxxxx:lastMotion received command REFRESH
2017-12-25 20:58:22.157 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:rossbuehel: {"cmd": "read", "sid": "158d000xxxxxxx"}
2017-12-25 20:58:22.158 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:sensor_switch:rossbuehel:158d000xxxxxxx:batteryLevel received command REFRESH
2017-12-25 20:58:22.160 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:sensor_switch:rossbuehel:158d000xxxxxxx:lowBattery received command REFRESH
2017-12-25 20:58:22.161 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:smoke:158d000xxxxxxx:density received command REFRESH
2017-12-25 20:58:22.164 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Update Item 158d000xxxxxxx with retented message
2017-12-25 20:58:22.168 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"read_ack","model":"smoke","sid":"158d000xxxxxxx","short_id":46212,"data":"{\"voltage\":3225,\"alarm\":\"0\"}"}
2017-12-25 20:58:22.146 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxx on channel mihome:sensor_motion_aq2:rossbuehel:158d000xxxxxx:motionOffTimer received command REFRESH
2017-12-25 20:58:22.176 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:smoke:158d000xxxxxxx:status received command REFRESH
2017-12-25 20:58:22.176 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:smoke:158d000xxxxxxx:alarm received command REFRESH
2017-12-25 20:58:22.179 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:smoke:158d000xxxxxxx:lowBattery received command REFRESH
2017-12-25 20:58:22.158 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxx on channel mihome:sensor_motion_aq2:rossbuehel:158d000xxxxxx:lowBattery received command REFRESH
2017-12-25 20:58:22.179 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Device 158d000xxxxxxx on channel mihome:smoke:158d000xxxxxxx:batteryLevel received command REFRESH
2017-12-25 20:58:22.158 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {"cmd": "read", "sid": "158d000xxxxxxx"} to /192.168.yy.zz:9898
2017-12-25 20:58:22.183 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:rossbuehel: {"cmd": "read", "sid": "158d000xxxxxxx"}
2017-12-25 20:58:22.186 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {"cmd": "read", "sid": "158d000xxxxxxx"} to /192.168.yy.zz:9898
2017-12-25 20:58:22.188 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Send to bridge mihome:bridge:rossbuehel: {"cmd": "read", "sid": "34ce00xxxxxx"}
2017-12-25 20:58:22.192 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Sending message: {"cmd": "read", "sid": "34ce00xxxxxx"} to /192.168.yy.zz:9898
2017-12-25 20:58:22.194 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:22.197 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-60,5,main] waiting for data on port 9898
2017-12-25 20:58:22.426 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:9898 on Port 9898
2017-12-25 20:58:22.429 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"read_ack","model":"weather.v1","sid":"158d000xxxxxxx","short_id":52896,"data":"{\"voltage\":3065,\"temperature\":\"2572\",\"humidity\":\"4079\",\"pressure\":\"95846\"}"}
2017-12-25 20:58:22.433 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d000xxxxxxx
2017-12-25 20:58:22.442 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Device 158d000xxxxxxx honored read request
2017-12-25 20:58:22.448 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"read_ack","model":"weather.v1","sid":"158d000xxxxxxx","short_id":52896,"data":"{\"voltage\":3065,\"temperature\":\"2572\",\"humidity\":\"4079\",\"pressure\":\"95846\"}"}
2017-12-25 20:58:22.473 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:22.478 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-60,5,main] waiting for data on port 9898
2017-12-25 20:58:22.480 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:9898 on Port 9898
2017-12-25 20:58:22.483 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"read_ack","model":"sensor_motion.aq2","sid":"158d000xxxxxx","short_id":4632,"data":"{\"voltage\":3035,\"lux\":\"11\"}"}
2017-12-25 20:58:22.485 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d000xxxxxx
2017-12-25 20:58:22.489 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Device 158d000xxxxxx honored read request
2017-12-25 20:58:22.495 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"read_ack","model":"sensor_motion.aq2","sid":"158d000xxxxxx","short_id":4632,"data":"{\"voltage\":3035,\"lux\":\"11\"}"}
2017-12-25 20:58:22.502 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:22.504 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-60,5,main] waiting for data on port 9898
2017-12-25 20:58:22.506 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:9898 on Port 9898
2017-12-25 20:58:22.509 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"read_ack","model":"switch","sid":"158d000xxxxxxx","short_id":13675,"data":"{\"voltage\":3112}"}
2017-12-25 20:58:22.511 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d000xxxxxxx
2017-12-25 20:58:22.514 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Device 158d000xxxxxxx honored read request
2017-12-25 20:58:22.520 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"read_ack","model":"switch","sid":"158d000xxxxxxx","short_id":13675,"data":"{\"voltage\":3112}"}
2017-12-25 20:58:22.526 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:22.528 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-60,5,main] waiting for data on port 9898
2017-12-25 20:58:22.531 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:9898 on Port 9898
2017-12-25 20:58:22.534 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message {"cmd":"read_ack","model":"smoke","sid":"158d000xxxxxxx","short_id":46212,"data":"{\"voltage\":3600,\"alarm\":\"0\"}"}
2017-12-25 20:58:22.536 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Updated "last time seen" for device 158d000xxxxxxx
2017-12-25 20:58:22.539 [DEBUG] [g.mihome.handler.XiaomiBridgeHandler] - Device 158d000xxxxxxx honored read request
2017-12-25 20:58:22.551 [DEBUG] [home.handler.XiaomiDeviceBaseHandler] - Item got update: {"cmd":"read_ack","model":"smoke","sid":"158d000xxxxxxx","short_id":46212,"data":"{\"voltage\":3600,\"alarm\":\"0\"}"}
2017-12-25 20:58:22.565 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Data received and notified 1 listeners
2017-12-25 20:58:22.569 [TRACE] [.mihome.internal.socket.XiaomiSocket] - Thread Thread[Thread-60,5,main] waiting for data on port 9898
2017-12-25 20:58:22.571 [DEBUG] [.mihome.internal.socket.XiaomiSocket] - Received Datagram from 192.168.yy.zz:9898 on Port 9898
2017-12-25 20:58:22.573 [TRACE] [g.mihome.handler.XiaomiBridgeHandler] - Received message (...)

sametime in my Events.log

2017-12-25 20:58:04.908 [vent.ItemStateChangedEvent] - MiMotionSensor_LastMotion changed from 2017-12-25T20:56:27.495+0100 to 2017-12-25T20:58:04.860+0100
2017-12-25 20:58:19.903 [hingStatusInfoChangedEvent] - 'mihome:smoke:rossbuehel:158d0001d37664' changed from UNINITIALIZED (HANDLER_CONFIGURATION_PENDING) to UNINITIALIZED
2017-12-25 20:58:19.943 [hingStatusInfoChangedEvent] - 'mihome:smoke:rossbuehel:158d0001d37664' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-12-25 20:58:19.959 [hingStatusInfoChangedEvent] - 'mihome:sensor_switch:rossbuehel:158d0001e14fc0' changed from ONLINE to UNINITIALIZED
2017-12-25 20:58:19.969 [hingStatusInfoChangedEvent] - 'mihome:sensor_switch:rossbuehel:158d0001e14fc0' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-12-25 20:58:20.057 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:rossbuehel:158d0001b980c3' changed from ONLINE to UNINITIALIZED
2017-12-25 20:58:20.075 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:rossbuehel:158d0001b980c3' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-12-25 20:58:20.086 [hingStatusInfoChangedEvent] - 'mihome:sensor_motion_aq2:rossbuehel:158d0001ad5c7f' changed from ONLINE to UNINITIALIZED
2017-12-25 20:58:20.099 [hingStatusInfoChangedEvent] - 'mihome:sensor_motion_aq2:rossbuehel:158d0001ad5c7f' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-12-25 20:58:20.109 [hingStatusInfoChangedEvent] - 'mihome:gateway:rossbuehel:34ce00fb700d' changed from ONLINE to UNINITIALIZED
2017-12-25 20:58:20.133 [hingStatusInfoChangedEvent] - 'mihome:gateway:rossbuehel:34ce00fb700d' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-12-25 20:58:20.139 [hingStatusInfoChangedEvent] - 'mihome:smoke:158d0001d37664' changed from ONLINE to UNINITIALIZED
2017-12-25 20:58:20.147 [hingStatusInfoChangedEvent] - 'mihome:smoke:158d0001d37664' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-12-25 20:58:20.159 [hingStatusInfoChangedEvent] - 'mihome:bridge:rossbuehel' changed from ONLINE to UNINITIALIZED
2017-12-25 20:58:20.216 [hingStatusInfoChangedEvent] - 'mihome:bridge:rossbuehel' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-12-25 20:58:20.815 [me.event.ThingUpdatedEvent] - Thing 'mihome:bridge:rossbuehel' has been updated.
2017-12-25 20:58:20.832 [me.event.ThingUpdatedEvent] - Thing 'mihome:gateway:rossbuehel:34ce00fb700d' has been updated.
2017-12-25 20:58:20.842 [me.event.ThingUpdatedEvent] - Thing 'mihome:sensor_weather_v1:rossbuehel:158d0001b980c3' has been updated.
2017-12-25 20:58:20.855 [me.event.ThingUpdatedEvent] - Thing 'mihome:sensor_motion_aq2:rossbuehel:158d0001ad5c7f' has been updated.
2017-12-25 20:58:20.863 [me.event.ThingUpdatedEvent] - Thing 'mihome:sensor_switch:rossbuehel:158d0001e14fc0' has been updated.
2017-12-25 20:58:20.886 [me.event.ThingUpdatedEvent] - Thing 'mihome:smoke:rossbuehel:158d0001d37664' has been updated.
2017-12-25 20:58:20.896 [hingStatusInfoChangedEvent] - 'mihome:smoke:158d0001d37664' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2017-12-25 20:58:20.941 [hingStatusInfoChangedEvent] - 'mihome:bridge:rossbuehel' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2017-12-25 20:58:21.002 [hingStatusInfoChangedEvent] - 'mihome:gateway:rossbuehel:34ce00fb700d' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2017-12-25 20:58:21.005 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:rossbuehel:158d0001b980c3' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2017-12-25 20:58:21.010 [hingStatusInfoChangedEvent] - 'mihome:sensor_motion_aq2:rossbuehel:158d0001ad5c7f' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2017-12-25 20:58:21.015 [hingStatusInfoChangedEvent] - 'mihome:sensor_switch:rossbuehel:158d0001e14fc0' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2017-12-25 20:58:21.031 [hingStatusInfoChangedEvent] - 'mihome:smoke:rossbuehel:158d0001d37664' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2017-12-25 20:58:21.899 [hingStatusInfoChangedEvent] - 'mihome:bridge:rossbuehel' changed from INITIALIZING to ONLINE
2017-12-25 20:58:21.906 [hingStatusInfoChangedEvent] - 'mihome:smoke:158d0001d37664' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2017-12-25 20:58:21.930 [hingStatusInfoChangedEvent] - 'mihome:sensor_switch:rossbuehel:158d0001e14fc0' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2017-12-25 20:58:21.962 [hingStatusInfoChangedEvent] - 'mihome:sensor_motion_aq2:rossbuehel:158d0001ad5c7f' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2017-12-25 20:58:21.969 [hingStatusInfoChangedEvent] - 'mihome:gateway:rossbuehel:34ce00fb700d' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2017-12-25 20:58:21.973 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:rossbuehel:158d0001b980c3' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2017-12-25 20:58:22.030 [home.event.InboxAddedEvent] - Discovery Result with UID 'mihome:gateway:34ce00fb700d' has been added.
2017-12-25 20:58:22.033 [hingStatusInfoChangedEvent] - 'mihome:gateway:rossbuehel:34ce00fb700d' changed from INITIALIZING to ONLINE
2017-12-25 20:58:22.037 [hingStatusInfoChangedEvent] - 'mihome:smoke:rossbuehel:158d0001d37664' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)
2017-12-25 20:58:22.040 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:rossbuehel:158d0001b980c3' changed from INITIALIZING to OFFLINE
2017-12-25 20:58:22.045 [hingStatusInfoChangedEvent] - 'mihome:sensor_motion_aq2:rossbuehel:158d0001ad5c7f' changed from INITIALIZING to OFFLINE
2017-12-25 20:58:22.055 [hingStatusInfoChangedEvent] - 'mihome:sensor_switch:rossbuehel:158d0001e14fc0' changed from INITIALIZING to OFFLINE
2017-12-25 20:58:22.128 [hingStatusInfoChangedEvent] - 'mihome:smoke:158d0001d37664' changed from INITIALIZING to OFFLINE
2017-12-25 20:58:22.450 [hingStatusInfoChangedEvent] - 'mihome:sensor_weather_v1:rossbuehel:158d0001b980c3' changed from OFFLINE to ONLINE
2017-12-25 20:58:22.472 [vent.ItemStateChangedEvent] - MiWeather_Humidity changed from 41.04999923706055 to 40.790000915527344
2017-12-25 20:58:22.488 [vent.ItemStateChangedEvent] - MiWeather_Temperature changed from 25.799999237060547 to 25.719999313354492
2017-12-25 20:58:22.544 [vent.ItemStateChangedEvent] - MiWeather_Pressure changed from 95.83999633789062 to 95.84600067138672
2017-12-25 20:58:22.552 [hingStatusInfoChangedEvent] - 'mihome:sensor_motion_aq2:rossbuehel:158d0001ad5c7f' changed from OFFLINE to ONLINE
2017-12-25 20:58:22.591 [hingStatusInfoChangedEvent] - 'mihome:sensor_switch:rossbuehel:158d0001e14fc0' changed from OFFLINE to ONLINE
2017-12-25 20:58:22.624 [hingStatusInfoChangedEvent] - 'mihome:smoke:158d0001d37664' changed from OFFLINE to ONLINE
2017-12-25 21:02:47.470 [vent.ItemStateChangedEvent] - MiMotionsSensor_Illumination changed from 11 to 13
2017-12-25 21:02:47.523 [vent.ItemStateChangedEvent] - MiMotionSensor_LastMotion changed from 2017-12-25T20:58:04.860+0100 to 2017-12-25T21:02:47.497+0100
2017-12-25 21:04:47.524 [vent.ItemStateChangedEvent] - MiMotionSensor_MotionStatus changed from ON to OFF
2017-12-25 21:10:58.375 [vent.ItemStateChangedEvent] - MiMotionSensor_MotionStatus changed from OFF to ON
2017-12-25 21:10:58.381 [vent.ItemStateChangedEvent] - MiMotionSensor_LastMotion changed from 2017-12-25T21:02:47.497+0100 to 2017-12-25T21:10:58.349+0100

These are the devices in the app. They have definitely changed since restarting the binding. At present, the motion occupancy sensor placed in front of me sends updates regularly.

OK - got it solved already…
My bad! With the Wifi power saving active on my Pi, the gateway had trouble coming through. I’ll file an Feature request for openHABian to add this, as I expect, running openHABian as a server you probably will need it alive at any time - also on Wifi.

with powersaving off:

2017-12-26 15:42:07.002 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'mihome:bridge:34ce00xxxxx' to inbox.

and my items get updated regularly, I’m not quite content with the intervals, but I’ll manage. At least the switch button reacts in realtime and the motion sensor gives away its data also in realtime now.

2 Likes

hey thomas,

as i understand you right, you are using the AQARA Gateway - not the MIJIA Gateway v2
without a problem using the Xiaomi Binding ?

does all the “old” sensors/switches work with this new Gateway ? or only the “new” AQARA Stuff ?

and have you tested the HomeKit functionality ?

thank you!

sorry for late Reply! I use the v2 Version of the Gateway. The one with Radio and built in LEDs.
What do you mean with “homekit” functionality?

in your first post you are talking about the v3 ?

now you say you are using the v2 ? i am confused now :smiley:

this is the v2

this is the v3

you can see the difference on the Logo ( Mijia (v2) or Aqara (v3) )

Aqara gateway comes with HomeKit Support and the Mijia also works with HomeKit, but only with Homebridge as far as i know, but i wanted to know if OpenHab is working with the v2+HomeKit as well (without Homebridge) :wink:

because on the v3 only the Aqara Stuff is actually supported and not the whole Mijia product range :wink:
thanks

Sorry to have confused you! :wink:
In fact I’m using the v2 as stated (the v3 were typos, I’m afraid!). It’s the one with the Mi Logo in the front and with Radio support - not the one with “Aqara” written on it.
I’m afraid I’m of no help with homekit - as I don’t have it (no Apple user…).

hey @RiotMode,
actually there is a v3 Mijia gateway. I have one :wink:
two questions:

  • do you have the Aqara gateway? can you confirm, that it’s running with openHAB?
  • you can connect openHAB to Homekit and have it work as a hub. so it’s possible to integrate the MiHome lineup with Homekit. The OH Homekit binding does not support a lot of devices at the moment though. You might have to use a motion sensor as a light switch and so on, but it is possible!