Xiaomi Control Hub Not Compatible Anymore

the binding will replace the command with the received response.
Though in the debug log you might see bit more detail (like error codes)

get_device_list[] no answer

get_device_prop[] no answer

get_device_prop_exp[] gives {"result":[],"code":0,"id":503}

get_lumi_bind[] gives {"result":{"bind_num":1,"total_page":1,"cur_page":0,"page":[{"id":1111}],"fac_scene_enable":0},"code":0,"message":"ok","id":509}

get_ip_info[] no answer

enable_telnet_service[] no answer, and port 23 not open. This is consistent with other posts suggesting that until the gateway is rooted telnet and ssh are not possible

get_device_prop ["lumi.0", "device_list"] no answer

Also tried Volume channels (Alarm, Doorbell, Gateway). They work

Were these responses via the command or the rpc channel?
Would you mind trying the same via the “Execute RPC” channel

I think the get_device_prop_exp[] needs something in the brackets (something like the device and the property 
 but don’t know the exact format)


All previous tests were made with direct connection and command channel. Now I made some more tests:

  1. with direct connection no response from RPC channel
  2. with cloud connection no response from command channel
  3. with cloud connection and RPC channel the following commands had a response

get_device_prop_exp[] gives {"code":0,"exe_time":5,"id":401,"otlocalts":1612891050804300,"result":[]}

get_lumi_bind[] gives {"code":0,"exe_time":6,"id":434,"message":"ok","otlocalts":1612891407342783,"result":{"bind_num":1,"cur_page":0,"fac_scene_enable":0,"page":[{"id":1111}],"total_page":1}}

Note: after the tests of the previous post I’ve removed the thing (and its items), paired one child device with the gateway, and created the thing (and its items) again. Channels of this child device do not appear in OH. WIth this new thing the results of this morning’s had minor changes, so I’ve edit my previous post to reflect them

get_device_prop_exp[["lumi.158d00054222ef","temperature","humidity"]] gives {"result":[[2050,5951]],"code":0,"id":706}

How did I discover that ? Your binding reports {"code":0,"message":"ok","result":{"list":[{"did":"275954150","token":"*******","longitude":"0.00000000","latitude":"0.00000000","name":"Mi Control Hub","pid":"0","localip":"192.168.131.16","mac":"50:EC:50:EE:52:75","ssid":"Aveiro-Guest","bssid":"E0:63:DA:71:21:E3","parent_id":"","parent_model":"","show_mode":1,"model":"lumi.gateway.mieu01","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":true,"desc":"Device online ","extra":{"isSetPincode":0,"fw_version":"3.5.8_147","needVerifyCode":0,"isPasswordEncrypt":0,"mcu_version":"0143"},"uid":6361316538,"pd_id":657,"password":"","p2p_id":"","rssi":0,"family_id":0,"reset_flag":0},{"did":"lumi.158d00049dc9f1","token":"","longitude":"0.00000000","latitude":"0.00000000","name":"Water Leak Sensor","pid":"3","localip":"","mac":"","ssid":"Aveiro-Guest","bssid":"E0:63:DA:71:21:E3","parent_id":"275954150","parent_model":"lumi.gateway.mieu01","show_mode":1,"model":"lumi.sensor_wleak.aq1","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":false,"desc":"Device offline ","extra":{"isSetPincode":0},"uid":6361316538,"pd_id":385,"password":"","p2p_id":"","rssi":0,"family_id":0,"reset_flag":0},{"did":"lumi.158d00054222ef","token":"","longitude":"0.00000000","latitude":"0.00000000","name":"Aqara Temperature and Humidity Sensor","pid":"3","localip":"","mac":"","ssid":"Aveiro-Guest","bssid":"E0:63:DA:71:21:E3","parent_id":"275954150","parent_model":"lumi.gateway.mieu01","show_mode":1,"model":"lumi.weather.v1","adminFlag":1,"shareFlag":0,"permitLevel":16,"isOnline":true,"desc":"23℃ |55% |100kPa ","extra":{"isSetPincode":0},"prop":{"humidity":"5470","pressure":"100110","temperature":"2285"},"uid":6361316538,"pd_id":354,"password":"","p2p_id":"","rssi":0,"family_id":0,"reset_flag":0}]}}

Am I right in thinking that it’s now possible to read the sensors, as well as manage the gateway, using these hieroglyphic commands ?

@marcel_verpaalen Maybe a bit off-topic, but as I don’t like to have IoT devices with internet access, and your bindind seems to depend on xiaomi cloud, do you think that I can use miIO.ota to load another firmware ? I’ve noticed that a Openwrt hack is available.

Yes, that might be possible. The parameters are like this:

{"mode":"normal", "install":"1", "app_url":"http://#ipaddress-of-your-computer#/#yourfirmware#.pkg", "file_md5":"#md5#","proc":"dnld install"}

Hi!

First of all, @marcel_verpaalen congratulations from your great job.

I am a complete newbie, but I got a mi home kit with a lumi.gateway.mieu01, and also have the automatically files generated by the binding. I am willing to send whatever is required for helping, but I do not know how to use the “execute command” yet, and I cannot see the “execute RPC command” (I am not using the OpemHab 3.0 versión, I guess it is because of that).

Anyway, I prefer not to depend on third party servers, and therefore the idea of using miIO.ota sounds great. @moody_blue did you manage to flash the openlumi firmware over the air?

Thank you!

Not tried yet. My gateway is available for @marcel_verpaalen testing.

I’ve bought a Sonoff ZBBridge, tasmotized, paired Xiaomi devices that came with the kit, and so far I have no definitive plans about the gateway. Maybe I’ll use it as an auxiliary doorbell for my garden.

Ok, I managed to install openHab3 in my Synology, run some commands through the cloud and see the results :slight_smile:

@marcel_verpaalen Let me know if I can help running any test. Now there are two gateways available in this thread!

The hub works beautifully as an auxiliary doorbell to my Hikvision video intercom (OH4 with miio binding). Would it be possible to load announcements (pre-recorded mp3’s) and play them ?

1 Like