Skip to content

Stale NCP source route is never invalidated after SOURCE_ROUTE_FAILURE; end device unreachable until re-pair #772

Description

@tsmvp

Summary

An end device changed parents. After that, the coordinator kept sending to it through the old source route. Every unicast came back with ROUTE_ERROR_SOURCE_ROUTE_FAILURE for the device's NWK. Uplink from the device kept working, but every downlink command timed out. Retries with FORCE_ROUTE_DISCOVERY failed the same way. Several many-to-one route refreshes (MTORRs) happened, and other routers answered them with route records, yet the stale entry stayed. The only thing that recovers the device is re-pairing it.

bellows receives the route errors, but handle_route_error() only logs them. Nothing invalidates the NCP's source-route entry, triggers a refresh for that destination, or falls back to plain AODV.

Environment

  • Home Assistant 2026.10.4, ZHA 2.3.1, bellows 1.1.0, zigpy 2.3.0
  • Home Assistant Connect ZBT-1, firmware 7.5.1.0 build 0 (20260224005823)
  • zigpy source_routing at its default (off). The host never calls setSourceRoute or xncp_set_manual_source_route (0 occurrences in the debug log), so the stale route comes from the NCP's own concentrator table.

Device

  • Aqara H1 no-neutral switch lumi.switch.b1laus01, EndDevice, NWK 0x8F55
  • Old parent: 0xFB91 (IKEA VINDSTYRKA, router). New parent: 0xD34C (IKEA TOFSMYGGA outdoor plug), according to the neighbor tables.
  • zigbee.db, relays_v15 for this device: 0191FB. That is the last route record, still via 0xFB91.

What the logs show

  1. A read of OnOff from the host results in a sendUnicast to 0x8F55. The messageSentHandler to the first hop reports SUCCESS or NO_APS_ACK.
  2. About 0.3 s later:
incomingNetworkStatusHandler [ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11, 0x8F55]
incomingRouteErrorHandler  {'status': SOURCE_ROUTE_FAILURE: 169, 'target': 0x8F55}
Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
  1. zigpy retries with APS_OPTION_RETRY|APS_OPTION_FORCE_ROUTE_DISCOVERY. The same route error comes back each time, and the request times out after 44 s. 10 of 11 reads failed this way over roughly 15 minutes, with 18 route errors logged for 0x8F55.
  2. MTORRs did go out. Route records arrived from other routers (0xFB91, 0x7C5A, 0xD14F, 0xF65E and others) within seconds.
  3. The device was then physically operated twice. Its reports arrived as INCOMING_UNICAST from 0x8F55 (last hop LQI 100 to 104, RSSI -85), once about 10 s after a refresh burst. No route record for 0x8F55 arrived either time, so the stale entry was never replaced.

Expected

Once a source route to a destination keeps failing with SOURCE_ROUTE_FAILURE, it should stop being used. The stack or bellows should drop the entry, or let AODV route discovery take over, so the device becomes reachable through its new parent without re-pairing.

Notes

  • The new parent apparently never sending a route record for its child (step 5) is what triggers this. That may be specific to the router or the device. But the coordinator has no recovery path once that happens.
  • Also enable AODV route discovery on source-routed unicasts #719 (route discovery on source-routed unicasts) only applies when source_routing is enabled, so it doesn't cover this case. Here route discovery was already requested, and was even forced, but the NCP's source-route table still took precedence.
  • A sanitized debug log excerpt is in the first comment. Device IEEE addresses are masked as <ieee>.

Activity

  1. tsmvp commented on Oct 28, 2026

    @tsmvp
    Author

    Debug log excerpt (bellows.zigbee.application, bellows.ezsp.protocol, zigpy.application at DEBUG), filtered to the relevant lines. It covers the sends to 0x8F55, the route errors, every route record received, and the incoming frames from 0x8F55, including the two physical presses at 00:13:41 and 00:16:41. Device IEEE addresses are masked.

    Log (120 lines)
    2026-10-28 00:06:18.069 [bellows.ezsp.protocol] Sending command  sendUnicast: () {'type': <EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 'indexOrDestination': 0x8F55, 'apsFrame': EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=18), 'messageTag': 252, 'messageContents': b'\x00\x12\x00\x00\x00'}
    2026-10-28 00:06:18.091 [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 36693, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=78), 252, <EmberStatus.SUCCESS: 0>, b'']
    2026-10-28 00:06:18.121 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:06:18.124 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:06:18.394 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:06:18.398 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:06:18.919 [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 36693, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=59), 233, <EmberStatus.NO_APS_ACK: 201>, b'']
    2026-10-28 00:06:21.150 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 124, -80, [])
    2026-10-28 00:06:21.263 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 124, -80, [])
    2026-10-28 00:06:27.048 [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 36693, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=67), 241, <EmberStatus.NO_APS_ACK: 201>, b'']
    2026-10-28 00:06:33.842 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 124, -80, [])
    2026-10-28 00:06:34.028 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 124, -80, [])
    2026-10-28 00:06:34.191 [bellows.zigbee.application] Processing route record request: (0xC4F3, <ieee>, 100, -86, [0x7C5A])
    2026-10-28 00:06:39.463 [bellows.zigbee.application] Processing route record request: (0x18F2, <ieee>, 108, -84, [0x7C5A])
    2026-10-28 00:06:39.580 [bellows.zigbee.application] Processing route record request: (0x18F2, <ieee>, 108, -84, [0x7C5A])
    2026-10-28 00:06:46.212 [bellows.ezsp.protocol] Sending command  sendUnicast: () {'type': <EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 'indexOrDestination': 0x8F55, 'apsFrame': EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_FORCE_ROUTE_DISCOVERY: 576>, groupId=0, sequence=18), 'messageTag': 15, 'messageContents': b'\x00\x12\x00\x00\x00'}
    2026-10-28 00:06:46.501 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:06:46.505 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:06:54.347 [bellows.ezsp.protocol] Sending command  sendUnicast: () {'type': <EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 'indexOrDestination': 0x8F55, 'apsFrame': EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_FORCE_ROUTE_DISCOVERY: 576>, groupId=0, sequence=18), 'messageTag': 28, 'messageContents': b'\x00\x12\x00\x00\x00'}
    2026-10-28 00:06:54.641 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:06:54.644 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:06:55.771 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:06:55.775 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:07:03.544 [bellows.zigbee.application] Processing route record request: (0x443F, <ieee>, 112, -83, [0x1067, 0x1179])
    2026-10-28 00:07:03.699 [bellows.zigbee.application] Processing route record request: (0x443F, <ieee>, 108, -84, [0x1067, 0x1179])
    2026-10-28 00:07:03.853 [bellows.zigbee.application] Processing route record request: (0x443F, <ieee>, 112, -83, [0x1067, 0x1179])
    2026-10-28 00:07:03.920 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:07:03.924 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:07:05.022 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:07:05.026 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:13:41.445 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=112), 100, -86, 0x8F55, 255, 3, b'\x18\xda\n\x00\x00\x10\x01\xf5\x00#\x00U\x8f\x03']
    2026-10-28 00:13:42.032 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=18, sourceEndpoint=41, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=113), 104, -85, 0x8F55, 255, 3, b'\x18\xdb\nU\x00!\x01\x00']
    2026-10-28 00:13:49.643 [bellows.zigbee.application] Processing route record request: (0x7C5A, <ieee>, 108, -84, [])
    2026-10-28 00:13:49.752 [bellows.zigbee.application] Processing route record request: (0x7C5A, <ieee>, 100, -86, [])
    2026-10-28 00:14:18.366 [bellows.zigbee.application] Processing route record request: (0x7C5A, <ieee>, 104, -85, [])
    2026-10-28 00:14:18.494 [bellows.zigbee.application] Processing route record request: (0x7C5A, <ieee>, 104, -85, [])
    2026-10-28 00:14:32.863 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 128, -79, [])
    2026-10-28 00:14:33.009 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 120, -81, [])
    2026-10-28 00:14:49.289 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:14:49.435 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 176, -67, [0xE2B3])
    2026-10-28 00:14:50.008 [bellows.ezsp.protocol] Sending command  sendUnicast: () {'type': <EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 'indexOrDestination': 0x8F55, 'apsFrame': EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=20), 'messageTag': 29, 'messageContents': b'\x00\x14\x00\x00\x00'}
    2026-10-28 00:14:50.032 [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 36693, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=111), 29, <EmberStatus.SUCCESS: 0>, b'']
    2026-10-28 00:14:50.331 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:14:50.335 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:14:55.377 [bellows.zigbee.application] Processing route record request: (0x443F, <ieee>, 116, -82, [0x1067, 0x1179])
    2026-10-28 00:14:55.488 [bellows.zigbee.application] Processing route record request: (0x443F, <ieee>, 112, -83, [0x1067, 0x1179])
    2026-10-28 00:14:55.531 [bellows.zigbee.application] Processing route record request: (0x443F, <ieee>, 112, -83, [0x1067, 0x1179])
    2026-10-28 00:14:55.678 [bellows.zigbee.application] Processing route record request: (0x443F, <ieee>, 112, -83, [0x1067, 0x1179])
    2026-10-28 00:14:57.032 [bellows.zigbee.application] Processing route record request: (0x7C5A, <ieee>, 104, -85, [])
    2026-10-28 00:14:57.145 [bellows.zigbee.application] Processing route record request: (0x7C5A, <ieee>, 100, -86, [])
    2026-10-28 00:14:58.866 [bellows.zigbee.application] Processing route record request: (0x18F2, <ieee>, 104, -85, [0x7C5A])
    2026-10-28 00:14:58.993 [bellows.zigbee.application] Processing route record request: (0x18F2, <ieee>, 100, -86, [0x7C5A])
    2026-10-28 00:15:00.846 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:00.864 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:00.872 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:00.922 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:00.988 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:00.999 [bellows.zigbee.application] Processing route record request: (0xDFBC, <ieee>, 104, -85, [])
    2026-10-28 00:15:01.041 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:01.050 [bellows.zigbee.application] Processing route record request: (0xDFBC, <ieee>, 100, -86, [])
    2026-10-28 00:15:01.076 [bellows.zigbee.application] Processing route record request: (0xDFBC, <ieee>, 96, -87, [])
    2026-10-28 00:15:01.105 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:01.160 [bellows.zigbee.application] Processing route record request: (0xDFBC, <ieee>, 96, -87, [])
    2026-10-28 00:15:01.221 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:01.268 [bellows.zigbee.application] Processing route record request: (0xDFBC, <ieee>, 108, -84, [])
    2026-10-28 00:15:02.468 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:02.589 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:02.694 [bellows.zigbee.application] Processing route record request: (0x97C6, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:10.199 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 180, -66, [0xE2B3])
    2026-10-28 00:15:18.154 [bellows.ezsp.protocol] Sending command  sendUnicast: () {'type': <EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 'indexOrDestination': 0x8F55, 'apsFrame': EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_FORCE_ROUTE_DISCOVERY: 576>, groupId=0, sequence=20), 'messageTag': 73, 'messageContents': b'\x00\x14\x00\x00\x00'}
    2026-10-28 00:15:18.448 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:15:18.452 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:15:26.289 [bellows.ezsp.protocol] Sending command  sendUnicast: () {'type': <EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 'indexOrDestination': 0x8F55, 'apsFrame': EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_FORCE_ROUTE_DISCOVERY: 576>, groupId=0, sequence=20), 'messageTag': 76, 'messageContents': b'\x00\x14\x00\x00\x00'}
    2026-10-28 00:15:26.609 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:15:26.613 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:15:27.681 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:15:27.685 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:15:28.986 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 116, -82, [])
    2026-10-28 00:15:29.105 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 112, -83, [])
    2026-10-28 00:15:35.810 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:15:35.814 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:15:36.937 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:15:36.941 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:15:45.094 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:15:45.099 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:15:45.889 [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 36693, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=155), 73, <EmberStatus.NO_APS_ACK: 201>, b'']
    2026-10-28 00:15:54.025 [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 36693, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=158), 76, <EmberStatus.NO_APS_ACK: 201>, b'']
    2026-10-28 00:16:11.442 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 108, -84, [])
    2026-10-28 00:16:11.576 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 112, -83, [])
    2026-10-28 00:16:11.715 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 112, -83, [])
    2026-10-28 00:16:28.988 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 184, -65, [0xE2B3])
    2026-10-28 00:16:29.105 [bellows.zigbee.application] Processing route record request: (0xD14F, <ieee>, 184, -65, [0xE2B3])
    2026-10-28 00:16:32.532 [bellows.zigbee.application] Processing route record request: (0xF65E, <ieee>, 255, -43, [0xB8F4])
    2026-10-28 00:16:32.619 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 128, -79, [])
    2026-10-28 00:16:32.651 [bellows.zigbee.application] Processing route record request: (0xF65E, <ieee>, 255, -43, [0xB8F4])
    2026-10-28 00:16:32.772 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 128, -79, [])
    2026-10-28 00:16:41.195 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=114), 104, -85, 0x8F55, 255, 3, b'\x18\xdc\n\x00\x00\x10\x00\xf5\x00#\x00U\x8f\x03']
    2026-10-28 00:16:41.759 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=18, sourceEndpoint=41, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=115), 104, -85, 0x8F55, 255, 3, b'\x18\xdd\nU\x00!\x01\x00']
    2026-10-28 00:17:34.634 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_ENABLE_ROUTE_DISCOVERY: 320>, groupId=0, sequence=116), 100, -86, 0x8F55, 255, 3, b'\x1c_\x11\xde\n\xf7\x00A\x1bd\x10\x00\x03(\x15\x05!\x01\x00\x9a \x00\x08!"\x01\x0b \x00\n!L\xd3\x0c \x01']
    2026-10-28 00:17:34.942 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:17:34.946 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:17:36.229 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_ENABLE_ROUTE_DISCOVERY: 320>, groupId=0, sequence=116), 104, -85, 0x8F55, 255, 3, b'\x1c_\x11\xde\n\xf7\x00A\x1bd\x10\x00\x03(\x15\x05!\x01\x00\x9a \x00\x08!"\x01\x0b \x00\n!L\xd3\x0c \x01']
    2026-10-28 00:17:36.509 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:17:36.513 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:17:37.785 [bellows.zigbee.application] Processing route record request: (0xF65E, <ieee>, 255, -43, [0xB8F4])
    2026-10-28 00:17:37.829 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_ENABLE_ROUTE_DISCOVERY: 320>, groupId=0, sequence=116), 108, -84, 0x8F55, 255, 3, b'\x1c_\x11\xde\n\xf7\x00A\x1bd\x10\x00\x03(\x15\x05!\x01\x00\x9a \x00\x08!"\x01\x0b \x00\n!L\xd3\x0c \x01']
    2026-10-28 00:17:37.885 [bellows.zigbee.application] Processing route record request: (0xF65E, <ieee>, 255, -43, [0xB8F4])
    2026-10-28 00:17:37.912 [bellows.zigbee.application] Processing route record request: (0xF65E, <ieee>, 255, -43, [0xB8F4])
    2026-10-28 00:17:38.012 [bellows.zigbee.application] Processing route record request: (0xF65E, <ieee>, 255, -43, [0xB8F4])
    2026-10-28 00:17:38.129 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:17:38.132 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:17:39.452 [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY|APS_OPTION_ENABLE_ROUTE_DISCOVERY: 320>, groupId=0, sequence=116), 104, -85, 0x8F55, 255, 3, b'\x1c_\x11\xde\n\xf7\x00A\x1bd\x10\x00\x03(\x15\x05!\x01\x00\x9a \x00\x08!"\x01\x0b \x00\n!L\xd3\x0c \x01']
    2026-10-28 00:17:39.725 [bellows.zigbee.application] Received incomingNetworkStatusHandler frame with [<EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE: 11>, 0x8F55]
    2026-10-28 00:17:39.728 [bellows.zigbee.application] Processing route error: status=sl_Status.ZIGBEE_SOURCE_ROUTE_FAILURE, nwk=0x8F55
    2026-10-28 00:17:50.704 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 112, -83, [])
    2026-10-28 00:17:50.817 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 112, -83, [])
    2026-10-28 00:17:50.834 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 116, -82, [])
    2026-10-28 00:17:50.946 [bellows.zigbee.application] Processing route record request: (0x1179, <ieee>, 116, -82, [])
    2026-10-28 00:18:32.370 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 124, -80, [])
    2026-10-28 00:18:32.531 [bellows.zigbee.application] Processing route record request: (0xFB91, <ieee>, 124, -80, [])
    
  2. puddly commented on Oct 28, 2026

    @puddly
    Member

    The debug log doesn't contain much info here. If you haven't enabled source routing, it shouldn't be in use unless you enabled it and then disabled it again. What would be most helpful here is a traffic capture. Can you attach a traffic capture PCAP?

    https://github.com/zigpy/ziggurat/blob/dev/crates/ziggurat-tools/src/bin/pcap_rekey.rs contains a tool to change the network key of a PCAP.

  3. added
    needs more information
    on Oct 28, 2026
  4. dickesW commented on Nov 15, 2026

    @dickesW

    Same symptom here, with a capture. Short version: the coordinator learns the end device's source route only from route records. After the device moved to a new parent, no route records for it arrive at all, so the old entry (via the old parent) is never replaced. SOURCE_ROUTE_FAILURE from the old parent and a correct route reply from the new parent do not change that.

    Setup: HA 2026.11.1 (HAOS), ZHA, Home Assistant Connect ZBT-2, EmberZNet 7.5.1.0. source_routing is not set in zigpy_config (default off, also confirmed in the ZHA diagnostics data.config). Sniffer: second stick with ember-zli sniff on the same channel, placed next to the coordinator.

    Device: HOBEIAN ZG-204ZM presence sensor (battery end device), NWK 0x2710.

    • Old parent: 0xdb74, Signify 440400982842, firmware 0x01002900.
    • New parent: 0x72f0, OSRAM CLA60 RGBW, firmware 0x01020510.

    The parent is taken from the MAC destination of the sensor's own frames (data requests and data).

    Attached PCAP (bellows-772.pcap, linktype 195):

    • Network key replaced by 01030507090b0d0f00020406080a0c0d. Frames were decrypted with the real key and re-encrypted with this one, keeping counters and headers unchanged.
    • Dropped frames: frames without NWK security, i.e. joins. None fell into these windows.
    • FCS recalculated. ember-zli does not write a valid FCS.

    Two windows, times in UTC+1:

    Window Parent of 0x2710 What the capture shows
    2026-11-13 12:00–12:05 0xdb74 201 route records from 0x2710, first relay 0xdb74. Coordinator unicasts to 0x2710 use source route [0xdb74, 0xfa81], which is correct.
    2026-11-15 10:28–10:38 0x72f0 (only MAC destination of its own frames) 0 route records from 0x2710. All 338 coordinator unicasts to 0x2710 still carry source route [0xdb74, 0xfa81]. 0xdb74 sends 488 × network status 0x0B (SOURCE_ROUTE_FAILURE) for 0x2710 to the coordinator. The coordinator's route requests for 0x2710 are answered by route replies that originate at 0x72f0; 0xdb74 never originates one (it only relays some of the replies that originate at 0x72f0).

    Over the whole morning, the coordinator used a source route ending at 0xdb74 for every unicast to 0x2710 from 05:58 onward: 2 611 frames. The first relay varied (0x4f64, 0x806a, 0xfa81, 0x7085, 0x4a13), but the last relay was always 0xdb74. The sensor has not been at 0xdb74 since at least 03:19 (start of that capture). The old parent keeps transmitting to the absent child: 13 014 MAC frames to 0x2710 in 20 minutes, against 349 frames arriving at it for 0x2710. In the same 20 minutes the coordinator originated 308 route requests for 0x2710.

    Second instance, 2026-11-14 (not in the PCAP): another ZG-204ZM (0x75f0) with the same pair of parents, old 0xdb74 and new 0x72f0. It showed the same pattern: the old parent hammered the absent child, and the coordinator ran route discoveries for 0x75f0. It started right after an HA restart (09:05) and stopped by itself after 48 minutes, when the sensor's uplink went through 0xdb74 again. I did not decode the source-route headers that time.

    NCP reset during the episode (2026-11-15 10:52:43, not in the PCAP): nobody reloaded anything. bellows raised NcpFailure: ERROR_EXCEEDED_MAXIMUM_ACK_TIMEOUT_COUNT in _get_extended_timeout while replying to 0x2710 (same trace as #735), and ZHA reconnected by itself. The NCP counters reset, and from 10:52:47 on the coordinator sends to 0x2710 without a source route (next hop 0x4f64, path ending at 0x72f0). In the following 34 minutes there were 850 unicasts to 0x2710, all without a source route, with no SOURCE_ROUTE_FAILURE, no route request for 0x2710 and still no route record from 0x2710. So the NCP reset cleared the stale entry, and it did not come back. On 2026-11-14 (second instance above) the restart did not end it. The sensor had moved to 0x72f0 at some point between 03:48 and 09:39 (sniffer gap), and I did not decode whether the route used after that restart was a source route.

    What this points to, as far as I can tell:

    1. While the end device sits under 0x72f0, no route record for it reaches the coordinator. The ticket also says "new parent apparently never sending a route record". Whether 0x72f0 drops them or the end device stops sending them under this parent, I can't tell from the capture. The sensor itself is out of the sniffer's range.
    2. The NCP keeps the stale source-route entry until it is reset (here for at least five hours), despite repeated SOURCE_ROUTE_FAILURE and despite a fresh, working AODV route via 0x72f0 from its own route discovery.
    3. As in the original report, nothing on the host side (handle_route_error() only logs) invalidates it. I am not aware of an EZSP command on 7.5.1 that drops a single source-route entry.

    Happy to provide longer captures or to test a build.

    bellows-772.zip

  5. MattWestb commented on Nov 15, 2026

    @MattWestb
    Contributor

    Puddly be aware of some older hue routers is not timing out children and can giving problem with source routing if its not reporting it have jumping away to the network (i dont remember if the old parent or the new or both shall doing it).
    The Osram i dont knowing if they have fixing there old firmware problems but need see if its accouterments its new child OK to the network or the network cant updating its router topography for it.
    I dont digging in the sniff

  6. dickesW commented on Nov 15, 2026

    @dickesW

    Thanks @MattWestb. I checked the announcements around the parent change in the same capture (decrypted):

    The child announces itself, and the coordinator hears it. 2026-11-15 01:56:59 (UTC+1): 0x2710 sends a rejoin request to 0x72f0, gets a rejoin response with status 0, and one second later broadcasts a Device_annce. Nine devices relay that broadcast, among them the coordinator itself and 0x72f0. At 01:57:00.068 0x72f0 also sends an APS Update-Device for the child to the coordinator, which MAC-acks it. That frame has NWK security only, no APS security. The first unicast to 0x2710 afterwards (01:57:08.117) still carries the source route [0xdb74, 0x806a], and 0xdb74 answers with the first 0x0B at 01:57:08.393. Until the NCP reset at 10:52 that was 2 911 unicasts via 0xdb74.

    Route records came from the old parent, not from the child. Every route record with NWK source 0x2710 is first heard with MAC source 0xdb74 and relay list [0xdb74]. The child itself never sends one, only data frames. The last one was at 01:45:12, twelve minutes before the rejoin. None since. In fact only three routers in this network ever originate route records (two newer Signify, 0xdb74 and 0xfa81, and one other), without any many-to-one route request. No OSRAM router and none of the older Hue bulbs do, as long as the coordinator sends no many-to-one route requests (see edit below).

    The OSRAM parent looks pre-R21.

    • The coordinator sent Parent_annce at 2026-11-14 16:54:47 and 2026-11-15 10:53:01 (right after the NCP reset). Every OSRAM router the sniffer hears (OUIs 7c:b0:3e and 84:18:26), including 0x72f0, answered with a Parent_annce_rsp with status 0x84 (NOT_SUPPORTED). Hue and the one other non-OSRAM router did not answer, which is expected since the listed child is not theirs.
    • The child's End Device Timeout Request to 0x72f0 got no response. In three days of capture, End Device Timeout Responses come only from the coordinator, the Hue 0xdb74 and one non-OSRAM router.
    • The second sensor (0x75f0) rejoined at 0x72f0 three times on 2026-11-14, with no End Device Timeout exchange at all.

    So the new parent neither generates route records for its child nor supports the R21 parent mechanisms without many-to-one route requests the new parent generates no route records for its child, and it does not support the R21 parent mechanisms, but the child's Device_annce and the parent's Update-Device do reach the coordinator.

    On the host side I checked the code myself (bellows 1.2.1 and zigpy 2.4.1, as pinned by HA 2026.11.1):

    • handle_route_error only logs. Route records only update zigpy's device.relays, and those are not used while source_routing is off. Nothing resets relays on a rejoin or Device_annce.
    • With the default config, bellows calls setConcentrator(on=False). The capture agrees: in 25 hours the coordinator sent no many-to-one route request at all, only ordinary ones. So the stale entry lives entirely in the NCP's own source route table, which keeps being filled from route records even though the NCP is not a concentrator.
    • Turning on source_routing would not fix it directly either. On EZSP ≥ 9 set_source_route is a no-op, and with manual_source_routing the XNCP override would install zigpy's relays, which are just as stale. See the edit below for what source_routing: true does change.

    On the firmware side, the public source route API only allows reading. The stack does export sli_zigbee_source_route_delete_entry(id), though: it is declared in protocol/zigbee/stack/zigbee/source-route-table-update.h (GSDK 4.5.0 and SiSDK 2025.6.3) and is a global symbol in libzigbee-source-route.a. So an XNCP command could drop a single entry, much like the existing route table commands use sli_zigbee_route_table.

    @puddly: is it expected that the NCP keeps using learned source routes while the concentrator is off? And would a fix along these lines be acceptable: an XNCP command that deletes the source route entry for a node, called by bellows when a Device_annce, an Update-Device or a SOURCE_ROUTE_FAILURE arrives for it?

    Edit (same day): I enabled source_routing: true and restarted HA. The coordinator now sends many-to-one route requests, 0x72f0 answers with route records for 0x2710 ([0x72f0]), and the coordinator's source route to 0x2710 is now [0x72f0], with no 0x0B. So the OSRAM routers behave per spec once there is an MTORR. Whether this avoids the stale route on the next Hue → OSRAM parent change is still open; I'll report back.

  7. puddly commented on Nov 15, 2026

    @puddly
    Member

    @dickesW Did you migrate your network from a TI radio? Source routing is kind of sticky and will stay on even if you don't keep it on because routers keep the state in memory. You may need to power cycle routers to get them to stop.

    Regarding the bad Hue router: @TheJulianJES looked into this before and I reported it to Hue a long time ago. If I recall correctly, route records passing through the device have the router's NWK address added to the source routes chain but with swapped endianness (i.e. 0xABCD is flipped to 0xCDAB), this will absolutely mess up all source routes. Not sure if this is the case here. Do you have any old Hue lamps or OSRAM devices?

  8. dickesW commented on Nov 15, 2026

    @dickesW

    Thanks @puddly.

    Migration: not from TI, but from a ConBee II (deCONZ). The network was migrated to a ZBT-1 years ago, and on 2026-10-18 to the ZBT-2. The coordinator IEEE still carries the dresden elektronik OUI 00:21:2e. source_routing is currently not set. It is now set to true, see the edit in my earlier comment.

    Sticky source routing: that would fit what I see. It doesn't, see my next comment. Only three routers in this network originate route records without an MTORR: 0xdb74, 0xfa81 (both newer Signify) and 0x4a13. They do it without any many-to-one route request from the coordinator (none in 25 hours of capture). I'll power cycle 0xdb74 and 0xfa81, keep 0x4a13 as a control, and check with the sniffer whether they stop. (Done for 0xfa81 only, see my next comment.)

    Swapped relays: I had exactly that in October. Hue Bloom/Iris on 67.116.10 flipped the relay addresses in route records, and I downgraded them to 5.127.1.26581 on 2026-10-23. In the capture from 2026-11-14 12:12 to 2026-11-15 15:00, every router that forwards route records leaves the relay list unchanged. The stale routes to 0x2710 ([0xdb74, 0xfa81], [0xdb74, 0x806a], …) only contain real addresses, so that is not it here.

    Old Hue / OSRAM: yes, both. About a dozen OSRAM/Ledvance routers, including the new parent 0x72f0, and five older Hue bulbs. None of them originates route records without an MTORR. With source_routing: true they do, see the edit in my earlier comment.

  9. dickesW commented on Nov 15, 2026

    @dickesW

    Update on the power cycle test. I only power cycled 0xfa81. 0xdb74 had already been without power for several hours a few weeks ago and has originated route records on every captured day since, so it already answers the question.

    0xfa81 was silent from 15:14:29 to 15:16:57 (UTC+1). Its NWK frame counter jumped to the next 4096 boundary (0xA0B001), and it sent its own route records again at 15:16:58 and 15:17:05. There was no many-to-one route request from anyone, neither then nor anywhere in about two weeks of capture since 2026-10-17 (the first night still on the ZBT-1).

    So these routers send route records on their own, not from leftover state, and I take back "that would fit what I see". The stale entries come from those route records, and power cycling doesn't stop them.

  10. dickesW commented on Nov 15, 2026

    @dickesW

    Result. Thanks @puddly and @MattWestb, your hints about old Hue and OSRAM routers pointed in the right direction. The floods I captured started when an end device rejoined at such a router, while a parent change to a newer Hue went cleanly. Without a many-to-one route request (MTORR) these routers don't originate route records for their children. So the NCP keeps the source route entry via the old parent, and every unicast fails with SOURCE_ROUTE_FAILURE.

    With source_routing: true the coordinator sends an MTORR about every 60 s, and after that these routers send route records too. Since then I could check two parent changes of this kind:

    • From an old Hue (LLC011) to an OSRAM CLA60, after I powered off the old parent: route record via the new parent after 16 s, no SOURCE_ROUTE_FAILURE.
    • From an IKEA bulb that kept running to a Hue LST002, a natural change: route record after 2 s, and all 72 unicasts in the next five minutes went via the new parent. Near the end the LST002 itself reported SOURCE_ROUTE_FAILURE for the child, and the child moved on a minute later. That looks like a separate issue.

    Before the change, a parent change from a newer Hue that kept running to an old Hue (LLC011) gave 931 SOURCE_ROUTE_FAILUREs in 30 minutes.

    So far that looks fixed here, but these are only two cases from one evening. I'll report back if that changes.

    Suggestion for networks without source_routing. handle_route_error() only logs the SOURCE_ROUTE_FAILURE, and the NCP keeps the entry. The EZSP API can read the source route table but not delete from it. The existing XNCP manual source route doesn't help here either: it overrides one send at a time and needs the correct relays, which the host doesn't know in this situation. A small XNCP command that calls the internal sli_zigbee_source_route_delete_entry() (a global symbol in EmberZNet 7.5's libzigbee-source-route.a) would let bellows drop the entry when it gets a SOURCE_ROUTE_FAILURE for a node or a Device_annce from it. Until the next route record arrives, the NCP would then reach the node without a source route.

    Why I think this works: the NCP reset from my first comment cleared the stale entry. In the following half hour the coordinator sent 850 unicasts to the sensor without a source route, via the new parent, with no failures, and the stale entry didn't come back. One caveat from the same comment: a restart on 2026-11-14 did not end that day's episode, and I couldn't tell why. Also not tested: deleting a single entry instead of clearing the whole table. The affected nodes are end devices, so no other entry should chain through them. I'm happy to test a patch.

  11. removed
    needs more information
    on Nov 15, 2026
  12. zigpy-review-bot commented on Nov 19, 2026

    @zigpy-review-bot
    Collaborator

    #778 addresses this. For the setups reported here it looks complete; what it changes:

    • source_routing off (the current default, the setup in the original report): at startup bellows writes CONFIG_SOURCE_ROUTE_TABLE_SIZE = 0 to the NCP (_get_ezsp_config, written on connect and after each NCP reset bellows does). With an empty source route table the NCP has no stale entries to keep, so unicasts use ordinary routing with route discovery. That is the state the second report observed after the NCP reset, when 850 unicasts reached the sensor through its new parent without a failure.
    • source_routing: true: the table size is left as it is, and the concentrator is now started in RESCHEDULE mode instead of ON (one many-to-one route request right away, then periodic ones; the change from Use RESCHEDULE source route discovery mode #716, rolled into Shrink source routing table to 0 when source routing is disabled #778). A failing source route is still not removed directly; what replaces it is the next route record, which the periodic many-to-one route requests make routers send. That matches the two clean parent changes reported with source_routing: true.
    • A CONFIG_SOURCE_ROUTE_TABLE_SIZE set explicitly under ezsp_config is kept as configured, so a configuration that sets it keeps the old behaviour with source_routing off.

    The PR description says it should be released together with zigpy/zigpy#1982, which enables source_routing by default for EmberZNet radios.

    Verified (4 checks)
    • PR head a74409f against dev 1374aae: the full bellows test suite passes locally (771 passed).
    • write_config with {"CONFIG_SOURCE_ROUTE_TABLE_SIZE": 0} on EZSP v13 (mocked NCP reporting a current size of 200) sends setConfigurationValue(CONFIG_SOURCE_ROUTE_TABLE_SIZE, 0): a value from the config replaces bellows' default of 200, which is otherwise only ever grown, never shrunk.
    • Neither the zha library nor Home Assistant's ZHA integration sets ezsp_config, so the size-0 default applies unless a user configured the table size themselves.
    • Silicon Labs SDK sl_zigbee_types.h: SL_ZIGBEE_SOURCE_ROUTE_DISCOVERY_RESCHEDULE sends a many-to-one route request once immediately, then periodically. Not verified here: that a given EmberZNet firmware accepts a table size of 0 at runtime (the SDK's build-time setting allows 2 to 255); the PR description reports a capture with no source-routed frames after the change.
  13. zigpy-review-bot commented on Nov 20, 2026

    @zigpy-review-bot
    Collaborator

    A correction to my comment above: #778 is not complete as it stands. puddly found that with the source route table shrunk to 0, joins stop working, and moved the PR back to draft. In his comment on the PR he wrote that the only way he sees now is an XNCP command plus a small check in the firmware's source route hook (nc_zigbee_override_append_source_route). XNCP commands are implemented in the radio firmware (NabuCasa/silabs-firmware-builder), so that route needs a firmware update as well as a bellows change. Why the empty table breaks joins through routers is laid out in this reply on the PR.

    So no released bellows changes this yet: #778 is unmerged, and Home Assistant 2026.11.2 ships bellows 1.2.1.

    Verified (2 checks)
  14. dickesW commented on Nov 21, 2026

    @dickesW

    An update since my result comment, on how #772 behaves with source_routing: true in practice:

    • Eight more parent changes of this kind, all with the old parent still running: six to OSRAM bulbs (five CLA60 RGBW, one Classic A60), one to a Hue LST002 and one to a Hue LWB010. None caused a flood, and per change there was at most one NWK status 0x0B over the old route. That makes 10 of 10 evaluable changes since I enabled it. I only count changes to routers that don't originate route records without an MTORR, and only if unicasts went to the child afterwards.
    • The cost of the concentrator here, from two 3-hour captures: about 60 MTORRs per hour, each sent by about 18 devices (the coordinator included), around 35 frames per request. MTORR frames are about 5 % of all frames the sniffer hears, MAC ACKs included. Route records are also about 5 %, against about 3 % in a 3-hour window before I enabled source routing; they are not bunched after the MTORRs.

    @kimdelta Your blind case on PR #778 (a stale source route after a rejoin, SOURCE_ROUTE_FAILURE until a restart) is the pattern I had with source_routing off. With source_routing: true it hasn't come back here, so it may be worth a try on your network.

  15. zigpy-review-bot commented on Nov 21, 2026

    @zigpy-review-bot
    Collaborator

    A caveat for trying source_routing: true, since it was just suggested above for the network described on #778, which has many Hue routers: some first-generation Hue lamps are reported to stop answering direct commands once the coordinator sends them source-routed frames, while group commands to the same lamps keep working.

    With source_routing: true, bellows makes the radio a concentrator that sends many-to-one route requests, and routers that otherwise send no route records start sending them (the capture above showed this for the OSRAM routers). So more devices end up with a stored source route than with the default. If direct commands to Hue lamps start failing after the change, the lamps' models and firmware versions are the first thing to compare. Going back means removing the setting and restarting, and as puddly wrote above, routers can keep source routing state until they are power-cycled.

    #778 is still a draft at the same head as before, so no released bellows changes the behaviour with source_routing off yet.

    Verified (4 checks)
  16. kimdelta commented on Nov 23, 2026

    @kimdelta

    @dickesW Thanks for the suggestion. I enabled it on the network described on #778:

    zha:
      zigpy_config:
        source_routing: true

    Enabled 2026-11-21 23:23 UTC, followed by an HA restart. I confirmed it is active in the ZHA diagnostics (data.config.zigpy_config.source_routing: true). Setup: HA 2026.11.1 (Container), bellows 1.2.1, Sonoff ZBDongle-E on EmberZNet 7.4.4.0.

    Regarding the caveat about first-generation Hue: my routers are Hue LOM007, LCA012, LCA016, 929003598102 and 929003053301, plus three LEDVANCE PLUG EU EM T. There are no LCT001, LLC011 or LST001 on the network.

    Result so far (about 2 days):

    • Before the change, my automation detected blinds (lumi.curtain.acn002) that didn't respond typically once or twice a day, and an HA restart was needed to recover them.
    • Since the change: no failed blind runs, no "device did not respond" entries in my daily error report, and no noticeable delay on lights or plugs.

    I don't have debug logs or a capture from this period, so this is based only on what my automation and error report register. Two days is short, since I've had fault-free stretches before, but so far it's a clear change.

  17. zigpy-review-bot commented on Nov 23, 2026

    @zigpy-review-bot
    Collaborator

    The debug log from the night of 2026-11-19 attached on #778 shows the mechanism of this issue, with a current Hue bulb as the new parent and a second affected blind:

    • The blind at 0x1A3E did a secured rejoin at 22:22:32 UTC through 0xA374, a Hue LCA012. Its route records before that all came through 0x698B (LOM007) as the first relay. From the rejoin until the restart at 07:08, the log has 17,311 SOURCE_ROUTE_FAILURE errors for it.
    • A second blind, 0xDAFF (54:ef:44:10:01:76:1b:85), did a secured rejoin through the same LCA012 at 05:53:38 UTC. Its route records had come through 0x1750 (929003598102). In the 75 minutes until the restart, the log has 2,198 SOURCE_ROUTE_FAILURE errors for it.
    • 0xA374 appears in none of the 27,435 route records in the log, neither as originator nor as relay. So no route record ever replaced the stored source routes through the old parents. That is what was described above for the OSRAM routers, here with an LCA012 as the new parent.

    With source_routing off, bellows 1.2.1 turns the radio's concentrator off, so the coordinator sends no many-to-one route requests. If the LCA012 sends route records once those requests are sent, as the OSRAM routers above did, that would explain the change you see with source_routing: true. No log from the last two days shows it, though.

    Verified (4 checks)
    • Log bellows-stale-route-night-2026-11-19.log.gz (2026-11-19 21:29:56 to 2026-11-20 07:08:22 UTC): trustCenterJoinHandler reports STANDARD_SECURITY_SECURED_REJOIN with parent 0xA374 for 0x1A3E at 22:22:32, 02:51:38 and 04:21:03, and for 0xDAFF at 05:53:38. ZHA's own log lines name 0xA374 as Signify LCA012, 0x698B as LOM007, 0x1750 as 929003598102, and 0x1A3E and 0xDAFF as lumi.curtain.acn002.
    • All 116 route records from 0x1A3E list 0x698B first, and those from 0xDAFF list 0x1750 first. The node that starts a route record for an end device child puts its own address first (Zigbee R23.2 §3.4.5.3.2, relay list field), so those were the blinds' parents.
    • incomingRouteErrorHandler with SOURCE_ROUTE_FAILURE: 17,311 for 0x1A3E (22:22:32 until 07:08:22) and 2,198 for 0xDAFF (05:53:39 until 07:08:22). None of the 27,435 incomingRouteRecordHandler frames in the log contains 0xA374, while 2,593 of the frames after the first rejoin still contain 0x698B.
    • bellows 1.2.1 (6210ab5), set_source_routing, called with enabled=False when source_routing is off (application.py): setConcentrator(on=False) and, on EZSP 8 and newer, source route discovery mode OFF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Size

    None yet

    Area

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions