Zigbee2mqtt with Ikea tradfri motion sensor

Tags: #<Tag:0x00007f73ac1db470> #<Tag:0x00007f73ac1db330>

I just bought a tradfri motion sensor from IKEA, which I’d like to connect to my Home Assistant instance via zigbee2mqtt. Has anyone any experience with these devices?

According to the website, the motion sensor should be compatible to zigbee2mqtt. However, although I can pair it initially, I never get a signal from the device.

These are the relevant logs from the zigbee2mqtt add-on. After that, nothing else comes from the sensor:

zigbee2mqtt:debug 5/30/2019, 3:46:10 PM Received zigbee message of type 'devInterview' with data '"0x000d6ffffe00950d"'
  zigbee2mqtt:debug 5/30/2019, 3:46:14 PM Received zigbee message of type 'readRsp' with data '{"cid":"genAlarms","data":{"65533":1}}' of device 'TRADFRI motion sensor' (0x000d6ffffe00950d) of endpoint 1
  zigbee2mqtt:debug 5/30/2019, 3:46:14 PM Received zigbee message of type 'devInterview' with data '"0x000d6ffffe00950d"'
  zigbee2mqtt:debug 5/30/2019, 3:46:16 PM Received zigbee message of type 'devInterview' with data '"0x000d6ffffe00950d"'
  zigbee2mqtt:debug 5/30/2019, 3:46:20 PM Received zigbee message of type 'readRsp' with data '{"cid":"haDiagnostic","data":{"65533":1}}' of device 'TRADFRI motion sensor' (0x000d6ffffe00950d) of endpoint 1
  zigbee2mqtt:debug 5/30/2019, 3:46:21 PM Received zigbee message of type 'devInterview' with data '"0x000d6ffffe00950d"'
  zigbee2mqtt:debug 5/30/2019, 3:46:25 PM Received zigbee message of type 'readRsp' with data '{"cid":"lightLink","data":{"65533":1}}' of device 'TRADFRI motion sensor' (0x000d6ffffe00950d) of endpoint 1
  zigbee2mqtt:debug 5/30/2019, 3:46:25 PM Received zigbee message of type 'devInterview' with data '"0x000d6ffffe00950d"'
  zigbee2mqtt:debug 5/30/2019, 3:46:25 PM Accept device incoming with ieeeAddr '0x000d6ffffe00950d' permit join is 'true'
  zigbee2mqtt:debug 5/30/2019, 3:46:25 PM Allowing device '0x000d6ffffe00950d' to join
  zigbee2mqtt:debug 5/30/2019, 3:46:25 PM Received zigbee message of type 'devIncoming' with data '"0x000d6ffffe00950d"' of device 'TRADFRI motion sensor' (0x000d6ffffe00950d) of endpoint 1
  zigbee2mqtt:info 5/30/2019, 3:46:25 PM Device incoming...
  zigbee2mqtt:info 5/30/2019, 3:46:25 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
  zigbee2mqtt:debug 5/30/2019, 3:46:25 PM Received zigbee message of type 'devStatus' with data '"online"' of device 'TRADFRI motion sensor' (0x000d6ffffe00950d) of endpoint 1
  zigbee2mqtt:debug 5/30/2019, 3:48:07 PM Saving state to file /share/zigbee2mqtt/state.json
zigbee2mqtt:info 5/30/2019, 8:27:47 PM 0x000d6ffffe00950d (0x000d6ffffe00950d): E1525 - IKEA TRADFRI motion sensor (EndDevice)
  zigbee2mqtt:info 5/30/2019, 8:27:47 PM 0x000d6ffffe17d167 (0x000d6ffffe17d167): E1525 - IKEA TRADFRI motion sensor (EndDevice)
  zigbee2mqtt:info 5/30/2019, 8:27:47 PM Zigbee: disabling joining new devices.
  zigbee2mqtt:info 5/30/2019, 8:27:47 PM Connecting to MQTT server at mqtt://homeassistant
  zigbee2mqtt:debug 5/30/2019, 8:27:47 PM Configuring 0x000d6ffffe00950d (0x000d6ffffe00950d) ... 
zigbee2mqtt:info 5/30/2019, 8:27:49 PM MQTT publish: topic 'zigbee2mqtt/0x000d6ffffe00950d', payload '{"battery":87,"linkquality":120}'
zigbee2mqtt:info 5/30/2019, 8:27:49 PM MQTT publish: topic 'homeassistant/binary_sensor/0x000d6ffffe00950d/occupancy/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.occupancy }}","device_class":"motion","state_topic":"zigbee2mqtt/0x000d6ffffe00950d","json_attributes_topic":"zigbee2mqtt/0x000d6ffffe00950d","name":"0x000d6ffffe00950d_occupancy","unique_id":"0x000d6ffffe00950d_occupancy_zigbee2mqtt","device":{"identifiers":"zigbee2mqtt_0x000d6ffffe00950d","name":"0x000d6ffffe00950d","sw_version":"Zigbee2mqtt 1.4.0","model":"TRADFRI motion sensor (E1525)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'

HI

I know is one and a half year later … but have you solved this ?

The IKEA tradfri motion sensors work fine with zigbee2mqtt.

Yes, I did. I think I found a way using the dev-branch of zigbee2mqtt, but I can’t quite remember. It’s been a while and I have moved since and build everything new from scratch. The motion sensors work fine now.

:ok_hand:
Have you tried to change the “defuse” delay interval? As far as I notice this is set to 3 minutes.

Reviving an old thread, but I have just paired one of these directly to the HA controller, It appears in the Zigbee2MQTT list and as a device/entity, but cannot get any notification of motion. Any suggestions on what I am doing wrong?

There should have been a binary sensor created called xxx_occupancy (xxx = your friendly name)

image

@francisp, there is, it just never registers movement. I’m wondering if I need to do something else.

image

[edit]

Could it be the old CC2531 controller I have?

[edit2]
Yes is the answer it seems. I was still running a 2018 version of the firmware, updated it and the motion is now detected.