Looking for solutions to re-pair a light bulb or delete its entity in ZHA

Hi there!

I recently added a few Ikea light bulbs in Zigbee Home Automation (ZHA) via Sonoff ZB Bridge. Everything worked fine. But I needed to test a thing on the Ikea Tradfri environment so I paired one bulb with the Tradfri Bridge. After finishing, I tried to pair the bulb again with ZHA. It gives me some errors:

Skip initialization for existing device [MAC_ADDRESS]
[0x37d4:zdo] ZDO request ZDOCmd.Device_annce: [0x37D4,  [MAC_ADDRESS], 142]
[0x37d4:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=136 command_id=2>
[0x37d4:1:0x0004] ZCL request 0x0002: [255, []]
[0x37d4:1:0x0004] No handler for cluster command 2
[0x37d4:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=140 command_id=2>
Device 0x37d4 ( [MAC_ADDRESS]) joined the network
Skip initialization for existing device  [MAC_ADDRESS]
[0x37d4:zdo] ZDO request ZDOCmd.Device_annce: [0x37D4,  [MAC_ADDRESS], 142]
[0x37d4:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=142 command_id=2>
Device 0x37d4 ( [MAC_ADDRESS]) joined the network
Skip initialization for existing device  [MAC_ADDRESS]
[0x37d4:zdo] ZDO request ZDOCmd.Device_annce: [0x37D4,  [MAC_ADDRESS], 142]
[0x37d4:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=144 command_id=2>
Device 0x37d4 ( [MAC_ADDRESS]) joined the network
Skip initialization for existing device  [MAC_ADDRESS]
[0x37d4:zdo] ZDO request ZDOCmd.Device_annce: [0x37D4,  [MAC_ADDRESS], 142]
[0x37d4:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=146 command_id=2>
Device 0x37d4 ( [MAC_ADDRESS]) joined the network
Skip initialization for existing device d0:cf:5e:ff:fe:29:e1:f6
[0x37d4] Delivery error for seq # 0x94, on endpoint id 1 cluster 0x0004: message send failure
[0x37d4:1] Failed to sync-up group membership
Device 0x37d4 ( [MAC_ADDRESS]) joined the network
Skip initialization for existing device  [MAC_ADDRESS]
Device 0x37d4 ( [MAC_ADDRESS]) joined the network
Skip initialization for existing device  [MAC_ADDRESS]
[0x37d4] Cancelling old group rescan
[0x37d4:zdo] ZDO request ZDOCmd.Device_annce: [0x37D4,  [MAC_ADDRESS], 142]
[0x37d4:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=150 command_id=2>
[0x37d4:1:0x0004] ZCL request 0x0002: [255, []]
[0x37d4:1:0x0004] No handler for cluster command 2
[0x37d4:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=152 command_id=2>
[0x37d4:zdo] ZDO request ZDOCmd.Match_Desc_req: [0xFFFD, 260, [25], []]
[0x37d4:1:0x0019] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=2 command_id=1>
[0x37d4:1:0x0019] ZCL request 0x0001: [1, 4476, 10241, 318846322, 1]
[0x37d4:1:0x0019] OTA query_next_image handler for 'IKEA of Sweden TRADFRI bulb E27 CWS opal 600lm': field_control=1, manufacture_id=4476, image_type=10241, current_file_version=318846322, hardware_version=1
[0x37d4:1:0x0019] No OTA image is available

As a solution I am trying to figure out how to delete the entity from the system and try to pair as new. But it does not allow me to do that.

So any ideas how to delete the entity? Or any idea how to solve this and re-pair the bulb in ZHA?

I would imagine that you click “Remove Device” on the device page within the ZHA Integration (I can’t really test this because I do not want to remove this lamp in my setup):

You may need to restart HA and if the entity still exists after that then I am guessing there may be an option to delete it.

Like you I am using ZHA with the Sonoff Zigbee bridge.

Hey Jonah1970! Thank you for your advice. I tried that, including restarting HA. Unfortunately it did not work.

But fortunately, the bulb joined the network somehow.
So case closed in a way. :confused:

Glad to hear you got it sorted :smiley:

1 Like