Page 1 of 1

Xiaomi Aqara wireless switches not recognized.

Posted: Wednesday 26 September 2018 21:46
by tristanp
Hi all!

I have received my brand new Xiaomi Aqara wireless switches today (3x single rocker + 1x dual rocker).
They should be supported by Domoticz, but I get the following log message from hell:

2018-09-26 20:53:24.710 Status: XiaomiGateway (ID=2): unhandled model: remote.b186acn01

Can someone confirm whether their setup works??
I am on the latest beta (V4.10007)
I've also tried the latest stable (V4.9700)

neither work.....
any ideas??

Thanks in advance!

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Wednesday 26 September 2018 22:14
by tristanp
I have found in the source code that

single wireless switch is defined as 86sw1
dual wireless switch is defined as 86sw2

for some reason my gateway reports

single wireless switch as remote.b186acn01
dual wireless switch as remote.b286acn01

is there a way for me to make domoticz recognize remote.b186acn01 as 86sw1 and remote.b286acn01 as 86sw2?

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Wednesday 26 September 2018 23:00
by waaren
tristanp wrote: Wednesday 26 September 2018 21:46 I have received my brand new Xiaomi Aqara wireless switches today (3x single rocker + 1x dual rocker).
They should be supported by Domoticz, but I get the following log message from hell:

2018-09-26 20:53:24.710 Status: XiaomiGateway (ID=2): unhandled model: remote.b186acn01
Dual rocker switch works for me but I might have an older model. If I look in the hub info using the app on Android phone it shows me "model":"lumi.sensor_86sw2.v1 for this switch

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Thursday 27 September 2018 6:18
by ak97
in domoticz, create a user variable:
XiaomiMessage, Integer, 1

restart domoticz and show logs

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Thursday 27 September 2018 9:16
by tristanp
I have done that and get the following result:

2018-09-27 09:10:43.148 Status: XiaomiGateway (ID=2): unhandled model: remote.b186acn01
2018-09-27 09:10:43.148 Status: {"cmd":"read_ack","model":"remote.b186acn01","sid":"158d00028f886d","short_id":21458,"data":"{\"voltage\":3195}"}
2018-09-27 09:10:43.149 Status: XiaomiGateway (ID=2): unhandled model: remote.b286acn01
2018-09-27 09:10:43.149 Status: {"cmd":"read_ack","model":"remote.b286acn01","sid":"158d00027c2a1b","short_id":33032,"data":"{\"voltage\":3195}"}

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Thursday 27 September 2018 11:26
by ak97
tristanp
ok. please, turn on this switch, then turn off. and show logs?

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Thursday 27 September 2018 23:36
by tristanp
ak97 wrote: Thursday 27 September 2018 11:26 tristanp
ok. please, turn on this switch, then turn off. and show logs?
Here you go:

DUAL:
2018-09-27 23:27:34.952 Status: XiaomiGateway (ID=2): unhandled model: remote.b286acn01
2018-09-27 23:27:34.952 Status: {"cmd":"report","model":"remote.b286acn01","sid":"158d00027c2a1b","short_id":33032,"data":"{"channel_0":"click"}"}
2018-09-27 23:27:37.953 Status: XiaomiGateway (ID=2): unhandled model: remote.b286acn01
2018-09-27 23:27:37.953 Status: {"cmd":"report","model":"remote.b286acn01","sid":"158d00027c2a1b","short_id":33032,"data":"{"channel_1":"click"}"}

SINGLE:

2018-09-27 23:32:50.424 Status: XiaomiGateway (ID=2): unhandled model: remote.b186acn01
2018-09-27 23:32:50.424 Status: {"cmd":"heartbeat","model":"remote.b186acn01","sid":"158d00028f886d","short_id":21458,"data":"{"voltage":3185}"}
2018-09-27 23:32:56.496 Status: XiaomiGateway (ID=2): unhandled model: remote.b186acn01
2018-09-27 23:32:56.497 Status: {"cmd":"report","model":"remote.b186acn01","sid":"158d00028f886d","short_id":21458,"data":"{"channel_0":"click"}"}

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Friday 05 October 2018 8:48
by Boredcat
You might try to update to the latest beta, I looked into the code and found that the remote.b186acn01 is in there (code was last updated 5 days ago).
Hope this solves your issue.

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Sunday 11 November 2018 16:26
by Blokmeister
I'm having the same problem. I cannot detect the switch in Domoticz, but do see remote.b186acn01 show up in the logs. I'm running in a FreeNAS jail, so I can't update to the latest beta. Are workarounds available for this issue?

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Sunday 25 October 2020 14:12
by Ruudhoevenaar
Hi all,

I'm facing the same issue here.
I also switched to Beta instead of stable build to try and fix it but it didn't fix the issue.
With the user variable in place, I get the following results in the log:

2020-10-25 09:52:00.896 Status: XiaomiGateway (ID=6): unhandled model: 'remote.b286acn02', name: 'Unknown Xiaomi device'
2020-10-25 09:52:00.896 Status: {"cmd":"report","model":"remote.b286acn02","sid":"158d00054b1679","short_id":53866,"data":"{\"channel_1\":\"click\"}"}

2020-10-25 09:52:01.315 Status: XiaomiGateway (ID=6): unhandled model: 'remote.b286acn02', name: 'Unknown Xiaomi device'
2020-10-25 09:52:01.315 Status: {"cmd":"report","model":"remote.b286acn02","sid":"158d00054b1669","short_id":7331,"data":"{\"channel_1\":\"click\"}"}

Is there any known fix by now?

Also, does anyone know if it's possible to read the log and use the SID and data/channel_1/click as a switch?
For example with the help of Lua/DzVents ?

Thanks in advance!

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Saturday 05 December 2020 14:34
by deennoo
it just need to be add on xiaomigateway hardware on domoticz source like 86sw2 :

https://github.com/domoticz/domoticz/bl ... Hardware.h

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Friday 05 February 2021 10:40
by waaren
it just need to be add on xiaomigateway hardware on domoticz source like 86sw2 :
@Ruudhoevenaar, @Deennoo
Should be fixed in build 12914

Re: Xiaomi Aqara wireless switches not recognized.

Posted: Wednesday 19 May 2021 7:01
by Ruudhoevenaar
@Waaren, thnx!
Indeed, it works now.