Hi!
I would like to get some help or instructions how can I configure it?
I have received my first gateway 1 month ago, and mi home app offered me to update the firmware (I thought why not…)
It is visible as things and getting the informations from sensors for 2 hours, and after 2 hours all things except bridge become offline, after thing rescan all become online again for another 2 hours. I have enabled wireless communcation protocol in mi home app, get the password and insert developer key to bridge.
Another problem, when I trying to send any command to gateway (like change brightness, etc…) nothing happened. I saw somewhere the gw device should be on same wifi network with openhab server (running on ubuntu linux).
I put a wifi card to server and changed the routing to access gw on wifi card, other communications on LAN card, and I can see the tcpdump traffic, can see the heartbeats too.
In tcpdump I saw: “Invalid key len”
heartbeat tcpdump output:
19:35:11.780534 IP (tos 0x0, ttl 255, id 56888, offset 0, flags [none], proto UDP (17), length 164)
192.168.0.110.4321 > 224.0.0.50.9898: [udp sum ok] UDP, length 136
E…8…;…n…2…&…{“cmd”:“heartbeat”,“model”:“gateway”,“sid”:“7811dcdc2cfc”,“short_id”:“0”,“token”:“iUz1SF18wnyX83IY”,“data”:"{“ip”:“192.168.0.110”}"}
invalid key output:
19:59:15.775170 IP (tos 0x0, ttl 255, id 249, offset 0, flags [none], proto UDP (17), length 109)
192.168.0.110.9898 > nas.9898: [udp sum ok] UDP, length 81
E…m…83…n…&.&…Y.){“cmd”:“write_ack”,“sid”:“7811dcdc2cfc”,“data”:"{“error”:“Invalid key len”}"}
openhab.log:
2018-09-01 20:00:29.278 [WARN ] [g.mihome.handler.XiaomiBridgeHandler] - No token received from the gateway yet. Unable to encrypt the access key.
ps: I have regenereated and changed the password at least 100 times with no luck.
What else informations do you need for debug?
Thanks!
Gabor