Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new device Aqara Wall Switch (WXKG03LM) Multistate cluster 12 #915

Closed
wassfila opened this issue Nov 1, 2018 · 15 comments
Closed

new device Aqara Wall Switch (WXKG03LM) Multistate cluster 12 #915

wassfila opened this issue Nov 1, 2018 · 15 comments

Comments

@wassfila
Copy link

wassfila commented Nov 1, 2018

I got a new aqara switch 0x00158D00028CAD58 that I could not pair with phoscon, then I realized that it's actually paired with deconz and when I press it reports to deconz on cluster 12. It does not even has a cluster 6 (On Off).
Actually I had a previous aqara switch 0x00158D00024B3E45 pairing with phoscon displayed there, and reporting in the webapi. That old switch is reporting on cluster 6 (Of Off) that the new one does not have.
For the new one, I could not read any attribute even pressing read and switch click many times.

Should this be handled as a new device request or is there a change required to deconz to handle the cluster 12. I'm not sure how this relates to the special handling of Xiomi devices, I started reading the of the rest

plugin code but still a bit lost in what is specified in the general.xml, what is coded in deconz and what is xiomi custom.

2018-11-01-152031_1435x905_scrot

2018-11-01-152314_1435x914_scrot

2018-11-01-152436_1435x914_scrot

extracts from logs

log with "deCONZ --dbg-info=1 --dbg-aps=1 --dbg-zcl=1 --dbg-zdp=1"

`15:26:08:318 ZCL attribute report 0x00158D00028CAD58 for cluster 0x0012, ep 0x01

15:26:08:398 ZDP status = 0x00 -> SUCCESS
`

request_device_support.log

log with more options
`13:03:36:254 APS-DATA.indication srcAddr: 0x00158d00028cad58, srcEp: 0x01 dstAddrMode: 2, profile: 0x0104, cluster: 0x0012, lqi: 255, rssi: -16

13:03:36:254 asdu: 18440a5500210100

13:03:36:254 ZCL attribute report 0x00158D00028CAD58 for cluster 0x0012, ep 0x01

13:03:36:254 payload: 5500210100

13:03:36:254 APS-DATA.indication from child 0x3254

13:03:36:254 Delay APS request diff = 182

13:03:36:254 Node data 0x00158d00028cad58 profileId: 0x0104, clusterId: 0x0012

13:03:36:291 Node 0x00158D00028CAD58 is known by 1 neighbors, last seen 0 s

13:03:36:430 Delay APS request diff = 357
`

If needed the log file with more options
OpenSwitch_full.log

I would like to give it a try to add the support for this switch myself, for that any hints would be appreciated.

@ebaauw
Copy link
Collaborator

ebaauw commented Nov 1, 2018

What’s the Model Identifier in the Basic cluster? Same as in #890?

@wassfila
Copy link
Author

wassfila commented Nov 1, 2018

I tried a dozen times to click on read attributes, this time it worked when I double clicked on the attribute window to open it then read.
the model id is close to #890 but yet differs with one number, it is :

lumi.remote.b186acn01

#890 has .b286 instead of .b186 not sure if that changes everything.

I'll go again through the details of #890 as the info there might be helpful.
2018-11-01-185859_1287x895_scrot

Note I'm using deconz-dev-2.05.44.deb

image

@wassfila
Copy link
Author

wassfila commented Nov 1, 2018

Additional info:

  • this is a battery powered single switch, I do not have a Xiomi gateway so never updated its firmware.

  • I saw in the debug that it is well reporting on the Multistate Input cluster 12, and in the screenshot the Present value updated to 1, but contrary to Aqara Wall Switch WXKG02LM not reporting App/Rest-API #890 the Number of states is 0 not 6.

  • Not sure if this is related, but this log line looked like an error, extract from OpenSwitch_full.log of first comment "13:03:37:036 reject aps request to enddevice node queue is full (4)"

So if I understood #890 right, same here, the model would have to be whitelisted and a buttonmap created.

cluster_12_states_0

wireless switch 1 button

@ebaauw
Copy link
Collaborator

ebaauw commented Nov 1, 2018

#890 has .b286 instead of .b186 not sure if that changes everything.
this is a battery powered single switch

Probably the difference single vs dual switch. Typically they share the same firmware, and they would be exposed as the same, as a ZHASwitch sensor, but with fewer buttonevent values.

@wassfila
Copy link
Author

wassfila commented Nov 2, 2018

OK, great.

@manup
Copy link
Member

manup commented Nov 2, 2018

The smart thing groovy device handler contains some useful information

https://github.com/bspranger/Xiaomi/blob/a7ecc57eddac0d9d8a8f7a429a3808b4324b05c7/devicetypes/bspranger/xiaomi-aqara-button.src/xiaomi-aqara-button.groovy

To get the model identifier I would suggest start sensor search and reset the switch by pressing both buttons for 10 (?) seconds, it should then rejoin and provide the information in basic cluster.

@wassfila
Copy link
Author

wassfila commented Nov 2, 2018

@manup , I managed to get the model identifier already, it is : lumi.remote.b186acn01
as the 1 in .b186 stands for a single switch as visible in the picture, so long press of 10 sec has worked.
Thank you for the reference, I'll have a look at that.

@wassfila wassfila changed the title Unrecognized Aqara Wall Switch reporting on cluster 12 new device Aqara Wall Switch Multistate cluster 12 Nov 2, 2018
@carloscae
Copy link

I also got single and double switch Aqara Remotes and I'm facing the same issue. It's the new international version (this is the new version that is supposed to work with their new homekit bridge). The previous version I could pair to Phoscom with no issues.

unfortunately I have no access to the rest api as I'm running it from Hassio.

@manup manup changed the title new device Aqara Wall Switch Multistate cluster 12 new device Aqara Wall Switch (WXKG03LM) Multistate cluster 12 Nov 3, 2018
@carloscae
Copy link

My devices are:
Aqara Wireless Remote Switch (Single Rocker) - WXKG03LM
Aqara Wireless Remote Switch (Double Rocker) - WXKG02LM

@wassfila
Copy link
Author

wassfila commented Nov 3, 2018

@manup , @carloscae ,
note that the reference WXKG03LM was already supported with an old model id : lumi.sensor_86sw, the novelty here is the new model id lumi.remote.b186acn01. Basically Xiaomi has multiple model ids for the same reference WXKG03LM and they don't work the same.

@ebaauw
Copy link
Collaborator

ebaauw commented Nov 3, 2018

Or rather, they use the same reference for different products. Maybe it's actually the same hardware, with different firmware versions (which is not upgradable over the air). Anyways, we best use the Model Identifier to refer to these devices. Unfortunately, it's a bit of a wheel of fortune which one you'll get when ordering one.

@zilluss
Copy link

zilluss commented Nov 4, 2018

I confirmed that the switch worked if you just copy the cases for lumi.remote.b1acn01 and replace it with lumi.remote.b186acn01. Now I can use the switch with the button event 1002.

@carloscae
Copy link

Guess I’ll need a windows pc to try that out. :/

@manup
Copy link
Member

manup commented Nov 9, 2018

@manup
Copy link
Member

manup commented Nov 24, 2018

Please continue discussion in #811

Closing this issue so we have just one to track progress on the matter.

@manup manup closed this as completed Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants