[still confused] Zigbee2mqtt - unable to pair new zigbee devices

Edit: added log text in 3rd comment if anyone sees something out of the ordinary. Also, was able to get it to work after replacing the CC2531. Not sure why? See 4th comment.

Hi,
I have hassio running on a Pi 3+, with Zigbee2MQTT addon and MQTT device discovery on HA enabled. I’m using cc2531, with Koenkk’s 20190619 source routing coordinator firmware.

I had two lights and two contact sensors (Aqara/Xiaomi) paired. They still work, but I’m unable to pair new devices. I’ve tried two different Xiaomi contact sensors, another of GE Link bulbs (same model as I have already paired). I’m not seeing the join message in the Z2M addon log, and it’s not adding that entity.

I’m including my Z2M config below. Pairing is enabled. I don’t know if there’s anything else that can prevent pairing from happening. I regularly see the “Successfully reenabled joining” in the Z2M log, if that helps.

The CC25831 USB dongle has a bright green LED on. I’ve tried the usual suspects (rebooting). Am I suppose to push one of the two buttons on the CC2531 dongle? I don’t remember having to do that before.

Any insights would be appreciated.

{
  "data_path": "/share/zigbee2mqtt",
  "devices": "devices.yaml",
  "groups": "groups.yaml",
  "homeassistant": true,
  "permit_join": true,
  "mqtt": {
    "base_topic": "zigbee2mqtt",
    "server": "mqtt://homeassistant",
    "user": "user",
    "password": "password"
  },
  "serial": {
    "port": "/dev/ttyACM0"
  },
  "advanced": {
    "pan_id": 6754,
    "channel": 11,
    "network_key": [
      1,
      1,
      5,
      7,
      9,
      11,
      13,
      15,
      0,
      2,
      4,
      6,
      8,
      10,
      12,
      13
    ],
    "availability_blacklist": []
  },
  "ban": [],
  "whitelist": [],
  "queue": {}
}

Your zigbee2mqtt logs may help.

Thanks, good point. Here’s my log (after bootup)

./run.sh: line 16: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
2019-08-20T00:06:41: PM2 log: Launching in no daemon mode
2019-08-20T00:06:41: PM2 log: App [npm:0] starting in -fork mode-
2019-08-20T00:06:41: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.5.1
> node index.js
  zigbee2mqtt:info 8/20/2019, 12:06:52 AM Logging to directory: '/share/zigbee2mqtt/log/2019-08-20.00-06-48'
  zigbee2mqtt:info 8/20/2019, 12:06:52 AM Starting zigbee2mqtt version 1.5.1 (commit #unknown)
  zigbee2mqtt:info 8/20/2019, 12:06:52 AM Starting zigbee-shepherd
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM zigbee-shepherd started
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM Coordinator firmware version: '20190619'
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM Currently 6 devices are joined:
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM 0x00158d0003217cce (0x00158d0003217cce): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM 0x7ce524000004be52 (0x7ce524000004be52): 22670 - GE Link smart LED light bulb, A19/BR30 soft white (2700K) (Router)
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM 0x00158d0003502634 (0x00158d0003502634): WXKG01LM - Xiaomi MiJia wireless switch (EndDevice)
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM 0x00158d000315bfd1 (0x00158d000315bfd1): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM 0x00158d00031af85a (0x00158d00031af85a): WXKG02LM - Xiaomi Aqara double key wireless wall switch (EndDevice)
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM 0x00158d00029bd378 (0x00158d00029bd378): MFKZQ01LM - Xiaomi Mi/Aqara smart home cube (EndDevice)
  zigbee2mqtt:warn 8/20/2019, 12:06:55 AM `permit_join` set to  `true` in configuration.yaml.
  zigbee2mqtt:warn 8/20/2019, 12:06:55 AM Allowing new devices to join.
  zigbee2mqtt:warn 8/20/2019, 12:06:55 AM Set `permit_join` to `false` once you joined all devices.
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM Zigbee: allowing new devices to join.
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM Connecting to MQTT server at mqtt://homeassistant
  zigbee2mqtt:info 8/20/2019, 12:06:55 AM zigbee-shepherd ready
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM Connected to MQTT server
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'zigbee2mqtt/0x00158d0003217cce', payload '{"contact":false,"linkquality":55,"battery":100,"voltage":3035}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'zigbee2mqtt/0x7ce524000004be52', payload '{"brightness":30,"linkquality":73,"state":"OFF"}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'zigbee2mqtt/0x00158d0003502634', payload '{"linkquality":81,"battery":100,"voltage":3072}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'zigbee2mqtt/0x00158d000315bfd1', payload '{"contact":true,"linkquality":105,"battery":100,"voltage":3075}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'zigbee2mqtt/0x00158d00031af85a', payload '{"linkquality":76,"battery":100,"voltage":3005}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'zigbee2mqtt/0x00158d00029bd378', payload '{"angle":-60.3,"linkquality":110,"from_side":5,"to_side":0,"side":0}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'homeassistant/binary_sensor/0x00158d0003217cce/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/0x00158d0003217cce","json_attributes_topic":"zigbee2mqtt/0x00158d0003217cce","name":"0x00158d0003217cce_contact","unique_id":"0x00158d0003217cce_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003217cce"],"name":"0x00158d0003217cce","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'homeassistant/sensor/0x00158d0003217cce/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d0003217cce","json_attributes_topic":"zigbee2mqtt/0x00158d0003217cce","name":"0x00158d0003217cce_battery","unique_id":"0x00158d0003217cce_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003217cce"],"name":"0x00158d0003217cce","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'homeassistant/sensor/0x00158d0003217cce/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d0003217cce","json_attributes_topic":"zigbee2mqtt/0x00158d0003217cce","name":"0x00158d0003217cce_linkquality","unique_id":"0x00158d0003217cce_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003217cce"],"name":"0x00158d0003217cce","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'homeassistant/light/0x7ce524000004be52/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/0x7ce524000004be52/set","state_topic":"zigbee2mqtt/0x7ce524000004be52","name":"0x7ce524000004be52_light","unique_id":"0x7ce524000004be52_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x7ce524000004be52"],"name":"0x7ce524000004be52","sw_version":"Zigbee2mqtt 1.5.1","model":"Link smart LED light bulb, A19/BR30 soft white (2700K) (22670)","manufacturer":"GE"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'homeassistant/sensor/0x7ce524000004be52/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x7ce524000004be52","json_attributes_topic":"zigbee2mqtt/0x7ce524000004be52","name":"0x7ce524000004be52_linkquality","unique_id":"0x7ce524000004be52_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x7ce524000004be52"],"name":"0x7ce524000004be52","sw_version":"Zigbee2mqtt 1.5.1","model":"Link smart LED light bulb, A19/BR30 soft white (2700K) (22670)","manufacturer":"GE"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'homeassistant/sensor/0x00158d0003502634/click/config', payload '{"icon":"mdi:toggle-switch","value_template":"{{ value_json.click }}","state_topic":"zigbee2mqtt/0x00158d0003502634","json_attributes_topic":"zigbee2mqtt/0x00158d0003502634","name":"0x00158d0003502634_click","unique_id":"0x00158d0003502634_click_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003502634"],"name":"0x00158d0003502634","sw_version":"Zigbee2mqtt 1.5.1","model":"MiJia wireless switch (WXKG01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:56 AM MQTT publish: topic 'homeassistant/sensor/0x00158d0003502634/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d0003502634","json_attributes_topic":"zigbee2mqtt/0x00158d0003502634","name":"0x00158d0003502634_battery","unique_id":"0x00158d0003502634_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003502634"],"name":"0x00158d0003502634","sw_version":"Zigbee2mqtt 1.5.1","model":"MiJia wireless switch (WXKG01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d0003502634/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d0003502634","json_attributes_topic":"zigbee2mqtt/0x00158d0003502634","name":"0x00158d0003502634_linkquality","unique_id":"0x00158d0003502634_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003502634"],"name":"0x00158d0003502634","sw_version":"Zigbee2mqtt 1.5.1","model":"MiJia wireless switch (WXKG01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/binary_sensor/0x00158d000315bfd1/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/0x00158d000315bfd1","json_attributes_topic":"zigbee2mqtt/0x00158d000315bfd1","name":"0x00158d000315bfd1_contact","unique_id":"0x00158d000315bfd1_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000315bfd1"],"name":"0x00158d000315bfd1","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d000315bfd1/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d000315bfd1","json_attributes_topic":"zigbee2mqtt/0x00158d000315bfd1","name":"0x00158d000315bfd1_battery","unique_id":"0x00158d000315bfd1_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000315bfd1"],"name":"0x00158d000315bfd1","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d000315bfd1/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d000315bfd1","json_attributes_topic":"zigbee2mqtt/0x00158d000315bfd1","name":"0x00158d000315bfd1_linkquality","unique_id":"0x00158d000315bfd1_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000315bfd1"],"name":"0x00158d000315bfd1","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00031af85a/click/config', payload '{"icon":"mdi:toggle-switch","value_template":"{{ value_json.click }}","state_topic":"zigbee2mqtt/0x00158d00031af85a","json_attributes_topic":"zigbee2mqtt/0x00158d00031af85a","name":"0x00158d00031af85a_click","unique_id":"0x00158d00031af85a_click_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00031af85a"],"name":"0x00158d00031af85a","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara double key wireless wall switch (WXKG02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00031af85a/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d00031af85a","json_attributes_topic":"zigbee2mqtt/0x00158d00031af85a","name":"0x00158d00031af85a_battery","unique_id":"0x00158d00031af85a_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00031af85a"],"name":"0x00158d00031af85a","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara double key wireless wall switch (WXKG02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00031af85a/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00031af85a","json_attributes_topic":"zigbee2mqtt/0x00158d00031af85a","name":"0x00158d00031af85a_linkquality","unique_id":"0x00158d00031af85a_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00031af85a"],"name":"0x00158d00031af85a","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara double key wireless wall switch (WXKG02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00029bd378/action/config', payload '{"icon":"mdi:gesture-double-tap","value_template":"{{ value_json.action }}","state_topic":"zigbee2mqtt/0x00158d00029bd378","json_attributes_topic":"zigbee2mqtt/0x00158d00029bd378","name":"0x00158d00029bd378_action","unique_id":"0x00158d00029bd378_action_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00029bd378"],"name":"0x00158d00029bd378","sw_version":"Zigbee2mqtt 1.5.1","model":"Mi/Aqara smart home cube (MFKZQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00029bd378/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d00029bd378","json_attributes_topic":"zigbee2mqtt/0x00158d00029bd378","name":"0x00158d00029bd378_battery","unique_id":"0x00158d00029bd378_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00029bd378"],"name":"0x00158d00029bd378","sw_version":"Zigbee2mqtt 1.5.1","model":"Mi/Aqara smart home cube (MFKZQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00029bd378/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00029bd378","json_attributes_topic":"zigbee2mqtt/0x00158d00029bd378","name":"0x00158d00029bd378_linkquality","unique_id":"0x00158d00029bd378_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00029bd378"],"name":"0x00158d00029bd378","sw_version":"Zigbee2mqtt 1.5.1","model":"Mi/Aqara smart home cube (MFKZQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:06:57 AM MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.5.1","commit":"unknown","coordinator":20190619,"log_level":"info","permit_join":true}'
  zigbee2mqtt:info 8/20/2019, 12:07:26 AM MQTT publish: topic 'zigbee2mqtt/0x00158d0003217cce', payload '{"contact":false,"linkquality":55,"battery":100,"voltage":3035}'
  zigbee2mqtt:info 8/20/2019, 12:07:26 AM MQTT publish: topic 'zigbee2mqtt/0x7ce524000004be52', payload '{"brightness":30,"linkquality":73,"state":"OFF"}'
  zigbee2mqtt:info 8/20/2019, 12:07:26 AM MQTT publish: topic 'zigbee2mqtt/0x00158d0003502634', payload '{"linkquality":81,"battery":100,"voltage":3072}'
  zigbee2mqtt:info 8/20/2019, 12:07:26 AM MQTT publish: topic 'zigbee2mqtt/0x00158d000315bfd1', payload '{"contact":true,"linkquality":105,"battery":100,"voltage":3075}'
  zigbee2mqtt:info 8/20/2019, 12:07:26 AM MQTT publish: topic 'zigbee2mqtt/0x00158d00031af85a', payload '{"linkquality":76,"battery":100,"voltage":3005}'
  zigbee2mqtt:info 8/20/2019, 12:07:26 AM MQTT publish: topic 'zigbee2mqtt/0x00158d00029bd378', payload '{"angle":-60.3,"linkquality":110,"from_side":5,"to_side":0,"side":0}'
  zigbee2mqtt:info 8/20/2019, 12:08:04 AM MQTT publish: topic 'zigbee2mqtt/0x00158d000315bfd1', payload '{"contact":false,"linkquality":110,"battery":100,"voltage":3075}'
  zigbee2mqtt:info 8/20/2019, 12:08:05 AM MQTT publish: topic 'zigbee2mqtt/0x00158d000315bfd1', payload '{"contact":false,"linkquality":102,"battery":100,"voltage":3035}'
  zigbee2mqtt:info 8/20/2019, 12:09:35 AM Successfully reenabled joining

Hey, new update. Using the same sdcard, I installed a new CC2531. This CC2531 was newly flashed with the same image that was flashed on the old CC2531. And joining now works.

Again, I’m using the 20190619 with source routing coordinator. I know nothing about how the cc2531 works on the inside, so I’m not sure how to troubleshoot. The log looks pretty much the same as what I posted above, just with the join message.

The thing that was different about the old cc2531 is that I let it run for 3 days in a row. Previously, when it was letting devices join, I was still experimenting, and so it was only on for an hour a day for a few days. Again, not sure if that helps narrow the issue.

new log file:

./run.sh: line 16: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
2019-08-20T00:20:10: PM2 log: Launching in no daemon mode
2019-08-20T00:20:11: PM2 log: App [npm:0] starting in -fork mode-
2019-08-20T00:20:11: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.5.1
> node index.js
  zigbee2mqtt:info 8/20/2019, 12:20:22 AM Logging to directory: '/share/zigbee2mqtt/log/2019-08-20.00-20-18'
  zigbee2mqtt:info 8/20/2019, 12:20:22 AM Starting zigbee2mqtt version 1.5.1 (commit #unknown)
  zigbee2mqtt:info 8/20/2019, 12:20:22 AM Starting zigbee-shepherd
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM zigbee-shepherd started
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM Coordinator firmware version: '20190619'
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM Currently 3 devices are joined:
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM 0x00158d0003217cce (0x00158d0003217cce): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM 0x7ce524000004be52 (0x7ce524000004be52): 22670 - GE Link smart LED light bulb, A19/BR30 soft white (2700K) (Router)
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM 0x00158d00031af85a (0x00158d00031af85a): WXKG02LM - Xiaomi Aqara double key wireless wall switch (EndDevice)
  zigbee2mqtt:warn 8/20/2019, 12:20:28 AM `permit_join` set to  `true` in configuration.yaml.
  zigbee2mqtt:warn 8/20/2019, 12:20:28 AM Allowing new devices to join.
  zigbee2mqtt:warn 8/20/2019, 12:20:28 AM Set `permit_join` to `false` once you joined all devices.
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM Zigbee: allowing new devices to join.
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM Connecting to MQTT server at mqtt://homeassistant
  zigbee2mqtt:info 8/20/2019, 12:20:28 AM zigbee-shepherd ready
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM Connected to MQTT server
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'zigbee2mqtt/0x00158d0003217cce', payload '{"contact":true,"linkquality":115}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'zigbee2mqtt/0x7ce524000004be52', payload '{"brightness":14,"linkquality":115,"state":"OFF"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/binary_sensor/0x00158d0003217cce/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/0x00158d0003217cce","json_attributes_topic":"zigbee2mqtt/0x00158d0003217cce","name":"0x00158d0003217cce_contact","unique_id":"0x00158d0003217cce_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003217cce"],"name":"0x00158d0003217cce","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/sensor/0x00158d0003217cce/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d0003217cce","json_attributes_topic":"zigbee2mqtt/0x00158d0003217cce","name":"0x00158d0003217cce_battery","unique_id":"0x00158d0003217cce_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003217cce"],"name":"0x00158d0003217cce","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/sensor/0x00158d0003217cce/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d0003217cce","json_attributes_topic":"zigbee2mqtt/0x00158d0003217cce","name":"0x00158d0003217cce_linkquality","unique_id":"0x00158d0003217cce_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0003217cce"],"name":"0x00158d0003217cce","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/light/0x7ce524000004be52/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/0x7ce524000004be52/set","state_topic":"zigbee2mqtt/0x7ce524000004be52","name":"0x7ce524000004be52_light","unique_id":"0x7ce524000004be52_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x7ce524000004be52"],"name":"0x7ce524000004be52","sw_version":"Zigbee2mqtt 1.5.1","model":"Link smart LED light bulb, A19/BR30 soft white (2700K) (22670)","manufacturer":"GE"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/sensor/0x7ce524000004be52/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x7ce524000004be52","json_attributes_topic":"zigbee2mqtt/0x7ce524000004be52","name":"0x7ce524000004be52_linkquality","unique_id":"0x7ce524000004be52_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x7ce524000004be52"],"name":"0x7ce524000004be52","sw_version":"Zigbee2mqtt 1.5.1","model":"Link smart LED light bulb, A19/BR30 soft white (2700K) (22670)","manufacturer":"GE"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00031af85a/click/config', payload '{"icon":"mdi:toggle-switch","value_template":"{{ value_json.click }}","state_topic":"zigbee2mqtt/0x00158d00031af85a","json_attributes_topic":"zigbee2mqtt/0x00158d00031af85a","name":"0x00158d00031af85a_click","unique_id":"0x00158d00031af85a_click_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00031af85a"],"name":"0x00158d00031af85a","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara double key wireless wall switch (WXKG02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00031af85a/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d00031af85a","json_attributes_topic":"zigbee2mqtt/0x00158d00031af85a","name":"0x00158d00031af85a_battery","unique_id":"0x00158d00031af85a_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00031af85a"],"name":"0x00158d00031af85a","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara double key wireless wall switch (WXKG02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'homeassistant/sensor/0x00158d00031af85a/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00031af85a","json_attributes_topic":"zigbee2mqtt/0x00158d00031af85a","name":"0x00158d00031af85a_linkquality","unique_id":"0x00158d00031af85a_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00031af85a"],"name":"0x00158d00031af85a","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara double key wireless wall switch (WXKG02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:20:29 AM MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.5.1","commit":"unknown","coordinator":20190619,"log_level":"info","permit_join":true}'
  zigbee2mqtt:info 8/20/2019, 12:20:55 AM MQTT publish: topic 'zigbee2mqtt/0x00158d0003217cce', payload '{"contact":true,"linkquality":115}'
  zigbee2mqtt:info 8/20/2019, 12:20:55 AM MQTT publish: topic 'zigbee2mqtt/0x7ce524000004be52', payload '{"brightness":14,"linkquality":115,"state":"OFF"}'
  zigbee2mqtt:info 8/20/2019, 12:22:52 AM New device 'lumi.sensor_magnet.aq2' with address 0x00158d000321430c connected!
  zigbee2mqtt:info 8/20/2019, 12:22:52 AM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":"0x00158d000321430c","meta":{"modelID":"lumi.sensor_magnet.aq2"}}'
  zigbee2mqtt:info 8/20/2019, 12:22:52 AM MQTT publish: topic 'homeassistant/binary_sensor/0x00158d000321430c/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/0x00158d000321430c","json_attributes_topic":"zigbee2mqtt/0x00158d000321430c","name":"0x00158d000321430c_contact","unique_id":"0x00158d000321430c_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000321430c"],"name":"0x00158d000321430c","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:22:52 AM MQTT publish: topic 'homeassistant/sensor/0x00158d000321430c/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d000321430c","json_attributes_topic":"zigbee2mqtt/0x00158d000321430c","name":"0x00158d000321430c_battery","unique_id":"0x00158d000321430c_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000321430c"],"name":"0x00158d000321430c","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:22:52 AM MQTT publish: topic 'homeassistant/sensor/0x00158d000321430c/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d000321430c","json_attributes_topic":"zigbee2mqtt/0x00158d000321430c","name":"0x00158d000321430c_linkquality","unique_id":"0x00158d000321430c_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000321430c"],"name":"0x00158d000321430c","sw_version":"Zigbee2mqtt 1.5.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/20/2019, 12:23:08 AM Successfully reenabled joining
  zigbee2mqtt:info 8/20/2019, 12:23:14 AM Device incoming...
  zigbee2mqtt:info 8/20/2019, 12:23:14 AM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
  zigbee2mqtt:info 8/20/2019, 12:23:34 AM MQTT publish: topic 'zigbee2mqtt/0x00158d000321430c', payload '{"contact":true,"linkquality":78}'

I had a similar problem. After re-flashing I was able to connect devices. I have

  • Controller CC2531
  • Router 01 CC2530
  • Router 02 CC2530
  • Router 03 CC2531 flashed with CC2531 router firmware (not pairing with coordinator)

I have 44 devices connected. Due to using three (two functional) routers and multiple devices that ought to act as routers (Hue light bulbs for example), I should easily be able to connect more devices. However, it does not work.

I am hesitant to re-flashing my coordinator, as that would mean I’d have to re-pair 44 devices as well. Previously I was able to stop the zigbee2mqtt docker container, unplug the coordinator, plug it back in, then restart the docker container - and then I’d be able to pair new devices. This does, however, not work any longer.

I had posted this in zigbee2mqtt’s github issue section, but did not get any input. I just tried once again, hopefully there will be some information. I don’t desperately need to pair any more devices as everything I really need is set up - but it’d be nice having the option to add more devices if desired, anyway.

Regarding the issue of re-flashing: with the 20190619 firmware, I think the zigbee network and pairing info is stored inside the addon itself (docker container). So when I swapped cc2531 coordinators, all I did was turn the Pi off, remove the old cc2531, and plug in the new one. The previously paired zigbee sensors were working right away once the system booted up. I then paired a new device and saw that pairing was working again, which I couldn’t do with the old cc2531.

I can try re-flashing the old cc2531 to see if that fixes the problem of not pairing. I haven’t tried it, wanted to keep the “broken” coordinator if it helps devs troubleshoot.

I haven’t been able to get a lot of feedback on the z2m dicourse site either. Not sure if there’s a better place besides that and the HA forum for z2M questions.

Tirns out in my particular case, the issue was caused by a hue light that was paired, but had some connectivity problem.

I unpaired it, stopped the docker container, unplugged the stick, and restarted. After repairing the hue light, pairing other devices worked fine.

Thank you for clarifying this. If I won’t have to manually pair everything all over again it’ll still be an option to start with a fresh container if nothing else works in case this occurs in the future again.

Hello guys,

Devices:

Old Pi3 + HassOS + HassIO + CC2531 without antenna ( coordinator)
New Pi4 + Rasberian + HassIO + CC2531 WITH antenna (coordinator)
Zigbee Router ( CC2530 + CC2591 )

Hello, guys recently I move from Pi3-CC2531 to Pi4 - CC2531- with an antenna. With Pi3 I configure CC2530 + CC2591 based on documentation and when I plug it into the wall socket after few minutes it appear

the problem is when i move to new Pi4 with new CC2531 with antenna i cannot see CC2530 + CC2591 ( router )

I check the voltage and I can see that CC2530 + CC2591 board get 5V which means power is fine

Any idea if I need to re-flash it when I move from one coordinator to another. I’m not sure if there is some limitation to which coordinator to join

I also don’t know how to check if CC2530 + CC2591 is working fine because there is no LED indicators … nothing i test it with a multimeter

Any ideas on how to troubleshoot. Im not aware how to sniff Zigbee network to check if CC2530 + CC2591 is there. Im not sure if a router join coordinator network it use just that network and cannot join other.

As for as I know, the cc2530 is a 3.3v device. 5v will kill it.

Check https://www.zigbee2mqtt.io/how_tos/how_to_create_a_cc2530_router.html
HLK-PM03 is 240V > 5VDC / 3W … maybe you refer to watt ?

It was working perfectly with old coordinator.

I also tried re-paring with procedure below:

Re-pairing CC2530/CC2530 router

  • CC2531 can be re-paired pressing the S2 button for 5 seconds.
  • СС2530 can be re-paired if you power on/power off the device three times (power on, wait 2 seconds, power off, repeat this cycle three times). <<< that one

You are correct. The story is I order 3.3V but shipment from China is very long, so a friend of mine gave me HLK-PM01 ( 5V ) and I didn’t realize I need HLK-PM03 ( 3V ). Somehow it was working fine with 5V not sure why is still alive because i re-flash it today. Tonight I will solder it to 3V and see if its going to join my zigbee network.

HLK-PM01 = 5V
HLK-PM03 = 3V

I re-flash it successfully and solder it to 3V HLK-PM03 but it still does not work. Any chance to brick it with 5V but still able to flash it ? Im not sure if its partially dead flash will pass successful. Weird is that with 5V it was working fine ,so I assume its something else but I don’t know how to troubleshoot it. Maybe I need to sniff the traffic with CC sniffer.

UPDATE [ 6-Nov-19 ]
Solved with USB extender and moving away CC2531 from Pi4

Mother of god… I put extender and move away from the CC2531 USB and now everything is working like a charm. Even I able to connect my router at first it didnt show up but after 3 power off / on ( re-pair ) it shows up.

zigbee2mqtt:info 11/3/2019, 12:22:04 AM New device 'lumi.router' with address 0x00124b00199ddad2 connected!

I connect 3 devices to my CC2531 USB and they pair with a single try its incredible how this extender fixes all my issues. It seems PI4 interference of radio signals and electrical components is very strong … stronger than Pi3.

Thanks for the help.

1 Like

I wonder if I’ve got a similar problem. Today I successfully paired a Xiaomi door/window sensor. Then when I tried to pair the second one, NOTHING. Absolutely no hint of it appearing in the logs bar ONE (one!) mention early on when it said it couldn’t recognise the type.

Since then I’ve tried restarting Zigbee2mqtt several times, restarting Home Assistant, a long 10s+ ‘reset’ on the sensor itself and a full host reboot of the Pi. I haven’t tried pulling the plug on the CC2531 but I will tomorrow.

Any tips?!

Pull the plug, seems an important strategy.

Thanks. I’ve now upgraded to 1.7 and besides an initial moan that it was missing a parameter in the config and thus refused to start, that bit went remarkably well once I added in the “missing” parameter.
I’ve done a full power off of the chip and will try re-adding the sensor after lunch. If it STILL won’t work I’m going to presume it’s a faulty Xiaomi module. I’ve not seen ANY reports of this ever happening online so I’m not sure if it can reliably said to be faulty at this/that point! Thanks

I’ve decided that the sensor must be faulty because normally when I try to pair new zigbee devices and it’s not going smoothly, I at least get vague errors in the log - with this one, besides the first one, there were no subsequent errors.

Can anyone tell me: when you reach your limit of 15 devices, does zigbee2mqtt TELL you, or does it just silently fail to pair new ones?

Thanks

I’ve posted about this on Github because with different devices across two different brands, Zigbee2Mqtt is still silently refusing to entertain the notion of accepting any new devices to the network. Anyone else seen this??

I have the same error, the already paired device works without problem, new device aren’t seen my zigbee coordinator. Very strange

I’ve got the same. Tried to pair a Tradfri Switch again. No matter what. It doesn’t pair. It’s not on my priority list though.

EDIT: I had a problem with pairing new devices. There where errors on my Z2M-logs. Devices missing etc. So I fixed the errors. Repairing was a breeze.

can you explain what you did?