Sub device (BLE Mesh & ZigBee) works with homebridge-miot! #348
Replies: 8 comments 8 replies
-
Oh, that is very interesting. If that is indeed so easy then controlling bluetooth devices over the gateway should be simple |
Beta Was this translation helpful? Give feedback.
-
Yeah, simple than I thought, and zigbee sub device works well too. Tested with: And there's two issue now:
|
Beta Was this translation helpful? Give feedback.
-
I tried to use
|
Beta Was this translation helpful? Give feedback.
-
miot CLI works at most time, but sometime failed with
And I switch the first and the third command, still failed at the third command. Update: Here's the data captured from wireshark:
Seems miot retry not correctly working. |
Beta Was this translation helpful? Give feedback.
-
A little summary for now:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the summary and investigation. That is very helpful, i will have a look at the things and try to improve them to make mesh devices work better. |
Beta Was this translation helpful? Give feedback.
-
@0x5e In version 1.4.0 i included the deviceId into the accessory id generator which means that you should now be able to add multiple mesh devices to the plugin. |
Beta Was this translation helpful? Give feedback.
-
hello 0x5e my gateway is the Mi Smart Home Hub (lumi.gateway.mgl03) when i use the command miot send $GATEWAY_IP --token $GATEWAY_TOKEN get_properties "[{"did":"$DEVICE_ID","siid":2,"piid":1}]" i get the following error INFO Connecting to device at 192.168.1.XXXX if I try and use the gateway's deviceID i get the gateway's properties. but when i use the ble child devices deviceIDs I always get the error above. it seems that none of the child ble devices of the gateway are reachable through their deviceid... i noted that the deviceid of those ble child deviced have diferente formats than the "standalone" devices that connect via wifi, like the gateway itself, mi lightbulbs, mi space heater, etc... the latter have deviceids composed by 9 numbers, and the ble devices have deviceids like the following example "blt.2.13b07ds6cog83". is this not the correct deviceID? |
Beta Was this translation helpful? Give feedback.
-
Inspired by https://sspai.com/post/68306 (In Chinese)
This article shows how to control ble mesh device via gateway using
miiocli
command line:It sounds very easy, without ble hardware and driver in the computer.
So I have a try:
Add the device using gateway's ip, gateway's token, device's id, device's model. Save config and restart.
Although there's a warning says "the device model dosen't match", but it works.
My devices:
Gateway: 小爱音箱Pro, xiaomi.wifispeaker.lx06
Device: PTX蓝牙Mesh智能开关, 090615.switch.mesw2
Small issue: If I control the switch frequently, it won't respond and shows wrong status. I will test again later morning.
Beta Was this translation helpful? Give feedback.
All reactions