Page 1 of 1

Xiaomi gateway-Aqara wireless relay

Posted: Saturday 11 January 2020 11:55
by trtrak
Hi all!

I cannot detect the relay in Domoticz, but do see show up in the logs.

2020-01-11 11:23:46.106 Status: XiaomiGateway (ID=2): unhandled model: , name: Xiaomi Switch
2020-01-11 11:23:48.973 Status: XiaomiGateway (ID=2): unhandled model: , name: Xiaomi Switch
2020-01-11 11:23:48.973 Status: {"cmd":"report","model":"","sid":"158d00033e5a75","short_id":59557,"data":"{\"channel_0\":\"on\"}"}
2020-01-11 11:23:52.353 Status: XiaomiGateway (ID=2): unhandled model: , name: Xiaomi Switch
2020-01-11 11:23:52.353 Status: {"cmd":"report","model":"","sid":"158d00033e5a75","short_id":59557,"data":"{\"channel_1\":\"on\"}"}
2020-01-11 11:23:58.087 Status: XiaomiGateway (ID=2): unhandled model: , name: Xiaomi Switch
2020-01-11 11:23:58.087 Status: {"cmd":"report","model":"","sid":"158d00033e5a75","short_id":59557,"data":"{\"channel_0\":\"off\"}"}
2020-01-11 11:24:03.014 Status: XiaomiGateway (ID=2): unhandled model: , name: Xiaomi Switch
2020-01-11 11:24:03.014 Status: {"cmd":"report","model":"","sid":"158d00033e5a75","short_id":59557,"data":"{\"channel_1\":\"off\"}"}

Any ideas?
Thanks

Re: Xiaomi gateway-Aqara wireless relay

Posted: Sunday 12 January 2020 20:48
by ak97
Model has no name: "model":"" :(
Wait for gateway firmware update

Re: Xiaomi gateway-Aqara wireless relay

Posted: Monday 16 March 2020 21:59
by Huupke
Still NOK in latest version. I reported an issue via the Xiaomi app with the request that they fix reporting the model. It should report 'lumi.relay.c2acn01'.

Re: Xiaomi gateway-Aqara wireless relay

Posted: Wednesday 29 July 2020 9:42
by 19leva89
There is already support in the Xiaomi gateway:

Version code: 272
Gateway ID:83872***
Zigbee channel:20
Gateway information:
{"ap":{"bssid":"EC:41:18:9D:**:**","rssi":-53,"ssid":"******"},"cfg_time":0,"fw_ver":"1.4.1_176","hw_ver":"MW300","life":452***,"mac":"78:11:DC:FB:**:**","mcu_fw_ver":"0220","mmfree":163***,"model":"lumi.gateway.v3","netif":{"gw":"192.168.**.**","gw_mac":"EC:41:18:**:**:**","localIp":"192.168.**.**","mask":"255.255.255.0"},"ot":"otu","ott_stat":[0,0,0,0],"otu_stat":[309,281,31530,10,*****,****],"token":"7438c2a00c892816********************","wifi_fw_ver":"SD878x-14.76.36.p84-702.1.0-WM"}

Sub-device information:
*{"model":"lumi.relay.c2acn01","did":"lumi.158d0003c******","name":"********"},
*{"model":"lumi.relay.c2acn01","did":"lumi.158d000********","name":"*********"},

Re: Xiaomi gateway-Aqara wireless relay

Posted: Monday 21 December 2020 12:21
by Alain
19leva89 wrote: Wednesday 29 July 2020 9:42 There is already support in the Xiaomi gateway:

Version code: 272
Gateway ID:83872***
Zigbee channel:20
Gateway information:
{"ap":{"bssid":"EC:41:18:9D:**:**","rssi":-53,"ssid":"******"},"cfg_time":0,"fw_ver":"1.4.1_176","hw_ver":"MW300","life":452***,"mac":"78:11:DC:FB:**:**","mcu_fw_ver":"0220","mmfree":163***,"model":"lumi.gateway.v3","netif":{"gw":"192.168.**.**","gw_mac":"EC:41:18:**:**:**","localIp":"192.168.**.**","mask":"255.255.255.0"},"ot":"otu","ott_stat":[0,0,0,0],"otu_stat":[309,281,31530,10,*****,****],"token":"7438c2a00c892816********************","wifi_fw_ver":"SD878x-14.76.36.p84-702.1.0-WM"}

Sub-device information:
*{"model":"lumi.relay.c2acn01","did":"lumi.158d0003c******","name":"********"},
*{"model":"lumi.relay.c2acn01","did":"lumi.158d000********","name":"*********"},
How are you getting this info? I need the token to implement my Aqara Gateway into Domoticz, but in the app, I can't enable developer mode. I have tried numerous older versions of the apk, but even those aren't allowing me to enable developer mode.

I have tried Wireshark and Colasoft Capsa on my network to see if I can sniff the packets being sent to the China Mainland server, but aren't picking up any traffic through that route either.

Re: Xiaomi gateway-Aqara wireless relay

Posted: Monday 21 December 2020 12:38
by 19leva89

Re: Xiaomi gateway-Aqara wireless relay

Posted: Monday 21 December 2020 13:25
by Alain
The wiki assumes you have successfully added the Gateway to Domoticz. The wiki is, however, out of date because the instructions telling you to tap the three dots in the top right and then select "About" is no longer valid. The app doesn't have this option anymore. Xiaomi has changed it.