I’m able to bind my Ikea E1743 and E1766 On Off Remotes to a light group with erikkt’s steps, but it took a lot more debugging to get the Ikea E1745 Motion Sensor working.
Binding on a created group always failed for me. The trick is to find the correct autogenerated No name group
by repeatedly binding all clusters and checking the zha logs until you find the correct auto-generated group.
- Enable ZHA debug logs in case binding doesn’t work
- Add light via ZHA Add Device
- Note the existing ZHA groups
- Add motion sensor via ZHA Add Device
- Check for a new ZHA group
No name group 0x****
- If this motion sensor has been previously added, the group may have already appeared
- Add light to the group
- Go to motion sensor’s Manage Clusters > Group Binding > Select the identified group > Select all the cluster options
- Make sure the motion sensor state is
Clear
, then trigger the motion to be Detected
- Select Bind Group, and keep checking the logs, they should say
[<Status.SUCCESS: 0>]
2021-02-28 14:50:48 DEBUG (MainThread) [zigpy.zdo] [0x6c37:zdo] 0x6c37: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 4 to group: 0xb3e8 completed: [<Status.SUCCESS: 0>]
2021-02-28 14:50:48 DEBUG (MainThread) [zigpy.zdo] [0x6c37:zdo] 0x6c37: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 3 to group: 0xb3e8 completed: [<Status.SUCCESS: 0>]
2021-02-28 14:50:48 DEBUG (MainThread) [zigpy.zdo] [0x6c37:zdo] 0x6c37: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 8 to group: 0xb3e8 completed: [<Status.SUCCESS: 0>]
2021-02-28 14:50:48 DEBUG (MainThread) [zigpy.zdo] [0x6c37:zdo] 0x6c37: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 4096 to group: 0xb3e8 completed: [<Status.SUCCESS: 0>]
2021-02-28 14:50:48 DEBUG (MainThread) [zigpy.zdo] [0x6c37:zdo] 0x6c37: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 6 to group: 0xb3e8 completed: [<Status.SUCCESS: 0>]
2021-02-28 14:50:48 DEBUG (MainThread) [zigpy.zdo] [0x6c37:zdo] 0x6c37: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 25 to group: 0xb3e8 completed: [<Status.SUCCESS: 0>]
- If only one or a few of them say
SUCCESS
, select all the clusters and Bind Group again to the same group.
- If all of them say
failed
, then repeat steps 6 through 9.
- Once all of the clusters has returned success at least once (they don’t all need to say success at the same time), proceed to step 10.
- Reconfigure Device for the motion sensor
- Reconfigure Device for the light(s) in the group
- Ensure that the motion sensor state is
Clear
, then trigger motion detection. The lights should now work without Home Assistant running!
Motion Sensor Device signature:
{
"node_descriptor": "NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4476, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=0)",
"endpoints": {
"1": {
"profile_id": 260,
"device_type": "0x0850",
"in_clusters": [
"0x0000",
"0x0001",
"0x0003",
"0x0009",
"0x0020",
"0x1000",
"0xfc7c"
],
"out_clusters": [
"0x0003",
"0x0004",
"0x0006",
"0x0008",
"0x0019",
"0x1000"
]
}
},
"manufacturer": "IKEA of Sweden",
"model": "TRADFRI motion sensor",
"class": "zhaquirks.ikea.motionzha.IkeaTradfriMotionE1745"
}
Original Debug log:
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy.zdo] [0xfef0:zdo] processing 0xfef0: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 4096 to group: 0x0003
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy.device] [0xfef0] Extending timeout for 0x1b request
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 27 under 28 request id, data: b'1b7a6a50feff72025c010010010300'
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (30, 28, 0, <DeconzAddressEndpoint address_mode=2 address=0xFEF0 endpoint=0>, 0, <ZDOCmd.Bind_req: 0x0021>, 0, b'\x1bzjP\xfe\xffr\x02\\\x01\x00\x10\x01\x03\x00', 2, 0)
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 28]
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 28: 00
2021-02-28 11:56:37 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x1c 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xfef0 endpoint=0>, status: 0x00
2021-02-28 11:57:05 DEBUG (MainThread) [zigpy.zdo] [0xfef0:zdo] 0xfef0: Bind_req 5c:02:72:ff:fe:50:6a:7a, ep: 1, cluster: 4096 to group: 0x0003 failed:
Regards,
Also Richard