Getting tired of zigbee2mqtt discovery

my z2m is not finding devices no matter what i do.
sonoff dongle -e - with latest 8 version firmware, core mqtt broker. no success. not finding either the router (itead dongle 3.0 with router firmware) or any of the sonoff devices.

below is configuration

version: 4
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: xxxx
  password: xxxx
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221110716-if00
  adapter: ember
  baudrate: 115200
  rtscts: false
advanced:
  log_level: debug
  channel: 15
  network_key:
    - 68
    - 125
    - 169
    - 255
    - 96
    - 15
    - 177
    - 45
    - 201
    - 20
    - 7
    - 39
    - 209
    - 222
    - 69
    - 249
  pan_id: 42165
  ext_pan_id:
    - 126
    - 168
    - 4
    - 158
    - 9
    - 30
    - 69
    - 142
  transmit_power: 20
frontend:
  enabled: true
  port: 8099
homeassistant:
  enabled: true
devices:
  '0x847127fffec9a46f':
    friendly_name: '0x847127fffec9a46f'

z2m logs - last few lines

oin_zigbee2mqtt","value_template":"{{ value_json.permit_join | lower }}"}'
[2025-05-07 22:09:07] debug: 	z2m: Discovering entities to Home Assistant
[2025-05-07 22:09:07] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/1221051039810110150109113116116_0xdc8e95fffe00a26f/connection_state/config', payload '{"device":{"hw_version":"EmberZNet 8.0.2 [GA]","identifiers":["zigbee2mqtt_bridge_0xdc8e95fffe00a26f"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"2.3.0"},"device_class":"connectivity","entity_category":"diagnostic","name":"Connection state","object_id":"zigbee2mqtt_bridge_connection_state","origin":{"name":"Zigbee2MQTT","sw":"2.3.0","url":"https://www.zigbee2mqtt.io"},"payload_off":"offline","payload_on":"online","state_topic":"zigbee2mqtt/bridge/state","unique_id":"bridge_0xdc8e95fffe00a26f_connection_state_zigbee2mqtt","value_template":"{{ value_json.state }}"}'
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'binary_sensor/1221051039810110150109113116116_0xdc8e95fffe00a26f/restart_required/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'button/1221051039810110150109113116116_0xdc8e95fffe00a26f/restart/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'select/1221051039810110150109113116116_0xdc8e95fffe00a26f/log_level/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'sensor/1221051039810110150109113116116_0xdc8e95fffe00a26f/version/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'sensor/1221051039810110150109113116116_0xdc8e95fffe00a26f/coordinator_version/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'sensor/1221051039810110150109113116116_0xdc8e95fffe00a26f/network_map/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'switch/1221051039810110150109113116116_0xdc8e95fffe00a26f/permit_join/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'sensor/0x847127fffec9a46f/light_indicator_level/config', already discovered
[2025-05-07 22:09:07] debug: 	z2m: Skipping discovery of 'sensor/0x847127fffec9a46f/linkquality/config', already discovered
[2025-05-07 22:14:00] debug: 	z2m: Saving state to file /config/zigbee2mqtt/state.json
[2025-05-07 22:19:00] debug: 	z2m: Saving state to file /config/zigbee2mqtt/state.json
[2025-05-07 22:24:00] debug: 	z2m: Saving state to file /config/zigbee2mqtt/state.json

I am a bit confused - when you say Z2M is not discovering them - do you mean that you can’t see them in Home Assistant? Are they on the Z2M devices list?

The error says they are already discovered by HA, if you go to the Devices tab under the MQTT integration, do they appear there?

I have the same question. You’ll need to provide a screenshot of the z2m interface you’re seeing so I can help you.

so, after i made the post, did a try resetting the zigbee devices and i could see joining.
here is the current screen shot

trying to figure out why the two snzb-03 motion sensors are not getting interviewed successfully.

Also i noticed the coordinator is showing as having router firmware. i flashed it with 8.0.x coordinator just yesterday.

Device Type: Router does not mean it is flashed with router firmware. It simply means that this device can route zigbee signals and is not an End Device (which you would fully expect for a coordinator)

Regarding your motion sensors, try pairing again. There should be a pairing button on them - press that every couple of seconds so that they don’t go to sleep halfway through the pairing process. Battery devices tend to do that to conserve battery, and you need to keep them awake while they pair