Yoda-x/ha-zha-new

Device WXKG03LM

Closed this issue · 5 comments

Hi,

I'm not sure if I can solve this by config or if I need to write a new device handler - happy to try and help code if needed.

I have a button labelled WXKG03LM which calls itself a lumi.remote.b186acn01 on binding (binding logs here - device is single button version here: ).

If I create a copy of lumi_remote_b1acn01.py to lumi_remote_b186acn01.py three sensors created, however no events are sent through to HA, With or without the newly copied file, on button click I get the following, with no HA event:

`2019-04-30 22:59:53 DEBUG (MainThread) [bellows.uart] Status _send_task.done: False
2019-04-30 22:59:53 DEBUG (MainThread) [bellows.uart] Data frame SEQ(6)/ReTx(0): b'6566b1ed542e14a059954b25ab5592d420f63f3212316f93fecc3689dd7f3fd78b7e'
2019-04-30 22:59:53 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2019-04-30 22:59:53 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2019-04-30 22:59:53 DEBUG (MainThread) [bellows.uart] Process Data frame SEQ(6)/ReTx(0): b'24904500040112000101000100009dbcb81899ffff0818030a5500210100'
2019-04-30 22:59:53 DEBUG (MainThread) [zigpy.zcl] [0x9918:1:0x0012] ZCL request 0x000a: [[<Attribute attrid=85 value=<zigpy.zcl.foundation.TypeValue object at 0x646df510>>]]
2019-04-30 22:59:53 DEBUG (MainThread) [zigpy.zcl] [0x9918:1:0x0012] Attribute report received: 85=1

Appreciate your help, thanks.
`

can you please enable also debugging for custom_components.
then do a reload and check if zha_new finds the device handler file you created during the init of the device.

Hi, please see full unedited log with custom_components set to debug: https://pastebin.com/MPkN5LmB
The lines around
2019-04-30 22:38:49 DEBUG (MainThread) [zigpy.zcl] [0x9918:1:0x0012] Attribute report received: 85=1
are when the remote is pressed.

There's some exceptions in there, possible it's to do with my set up? I have a Samsung Smartthings button that I can pair and use with standard zha, but aside from that no other zigbee devices.

Also, I've been emptying the zigbee.db file between restarts (>zigbee.db).

Hi,
You are using the build in zigpy lib. Did you ever used the normal zha?
Currently HA uses zha_new and the libs from zha, which are not compatible.
PS: seems the correct libs, but somehow the quirks code from mainstream zha gets loaded

Hi Yoda, yes I was trying earlier with the normal zha, I have it working there now after copying the remote_b286acn01 quirk and changing the identifiers. Thanks for the pointer.

welcome