Closed TheJulianJES closed 3 years ago
I'll add that to the next release. Thanks!
@TheJulianJES If you is having one groupe 0x0000 (the default coordinator group if ZHA have making it) you can trying unbinding it from the dimmer switch and if its working you is losing the event reporting if not the new groupe is having the coordinator added. It was working most of the time with EZSP before the fix was made.
Edit first binding and then unbinding the group 0x0000.
Tried calling reset_all
on the Groups cluster of the dimmer switch. It also didn't seem to work.
I think the coordinator is bonded with device NWK 0x0000 and not with group binding ala Philips HUE. In tasmota it was possible binding group but was not working until sending unbind device 0x0000 then it was start working.
I tried simply adding adding this to zdo_converters:
ZDOCmd.Unbind_req: (
(
lambda addr, SrcAddress, SrcEndpoint, ClusterID, DstAddress: (
c.ZDO.UnBindReq.Req(
Dst=addr.address,
Src=SrcAddress,
SrcEndpoint=SrcEndpoint,
ClusterId=ClusterID,
Address=addr.mode,
DstEndpoint=SrcEndpoint, # What should be here?
)
)
),
(lambda addr: c.ZDO.UnBindRsp.Callback(partial=True, Src=addr.address)),
(lambda rsp: (ZDOCmd.Unbind_rsp, {"Status": rsp.Status})),
),
But zigpy calls this without "giving" the DstEndpoint
. However, it seems to be required by zdo.py: UnBindReq
.
Should DstEndpoint=SrcEndpoint?
There's also the difference between zigpy_znp.types.named.AddrModeAddress
and AddrMode
I guess you got this, puddly
After https://github.com/home-assistant/core/pull/42854 was merged, Home Assistant can now unbind a device from the Zigbee coordinator. This is required for a Philips Hue Dimmer Switch (RWL021) as they can only be bound to one group/device because of the binding table size being 1. When trying this using a ZZH with zigpy-znp, the following is displayed in the (debug) logs:
It looks like the
ZDOCmd.Unbind_req
"command" isn't implemented in https://github.com/zigpy/zigpy-znp/blob/dev/zigpy_znp/zigbee/zdo_converters.py.