Hi,
First thanks for the great work done around openhab. Even if I’m not fan of having such a big and slow machinery around home automation, I have to say I’m impressed by the work that is done.
I played a little bit with my gateway and noticed few of my xiaomi items were not discovered by openhab. So I plugged wireshark in the loop and noticed some UDP packets sent to openhab.
If some one of the xiaomi binding developers could take a look and add them in the bindings that would be great, the last version, as of today, don’t contain these models. Here are some (json ?) traces from wireshark, I think that should be more than enough to add them.
square aqara temp,humidity and pressure sensor:
{“cmd”:“report”,“model”:“weather.v1”,“sid”:“158d0001a4bxxx”,“short_id”:27095,“data”:“{"temperature":"2281"}”}
{“cmd”:“report”,“model”:“weather.v1”,“sid”:“158d0001a4bxxx”,“short_id”:27095,“data”:“{"humidity":"6914"}”}
{“cmd”:“report”,“model”:“weather.v1”,“sid”:“158d0001a4bxxx”,“short_id”:27095,“data”:“{"pressure":"100847"}”}
{“cmd”:“heartbeat”,“model”:“weather.v1”,“sid”:“158d0001a4bxxx”,“short_id”:27095,“data”:“{"voltage":3065,"temperature":"2281","humidity":"6914","pressure":"100847"}”
aqara door sensor:
{“cmd”:“report”,“model”:“sensor_magnet.aq2”,“sid”:“158d0001a64xxx”,“short_id”:50997,“data”:“{"status":"open"}”}
{“cmd”:“report”,“model”:“sensor_magnet.aq2”,“sid”:“158d0001a64xxx”,“short_id”:50997,“data”:“{"status":"close"}”}
{“cmd”:“heartbeat”,“model”:“sensor_magnet.aq2”,“sid”:“158d0001a64xxx”,“short_id”:50997,“data”:“{"voltage":3145,"status":"close"}”}
square aqara wireless switch:
{“cmd”:“report”,“model”:“sensor_switch.aq2”,“sid”:“158d0001a66xxx”,“short_id”:37302,“data”:“{"status":"double_click"}”}
{“cmd”:“report”,“model”:“sensor_switch.aq2”,“sid”:“158d0001a66xxx”,“short_id”:37302,“data”:“{"status":"click"}”
{“cmd”:“heartbeat”,“model”:“sensor_switch.aq2”,“sid”:“158d0001a66xxx”,“short_id”:37302,“data”:“{"voltage":3105}”}
For users of the android Mi-home app, the square wireless switch doesn’t show up in the app (it seems ok in IOS app). However the gateway recognizes them and send events through the API. So as soon as openhab xiaomi bindings are updated, you could use it.
Hope that helps !