Skip to content

[Bug]: observationCode=H04 text='Pakket is beschadigd, gaat retour afzender' → reported as 'unknown' #38

Closed

Description

@JarwienNL

PostNL integration version

4.10.1

Home Assistant version

2026.10.2

What happened?

When a package has the status Pakket is beschadigd, gaat retour afzender then we get a reported as 'unknown'

Steps to reproduce

https://github.com/ha-parcel-integrations/ha-postnl/issues/new?template=unrecognised_status.yml [history] observationCode=H04 text='Pakket is beschadigd, gaat retour afzender' → reported as 'unknown'

Relevant logs

2026-10-19 09:50:35.681 DEBUG (MainThread) [custom_components.postnl.coordinator] Colli details found for shipment [SHIPMENT_ID]: {
  'barcode': '[BARCODE]',
  'partnerBarcode': None,
  'identification': '[SHIPMENT_IDENTIFICATION]',
  'deliveryShipmentIdentification': None,
  'effectiveDate': '2026-08-28T00:00:00+02:00',
  'context': {
    'countryIsoNumber': 31,
    'shipmentType': 'Parcel'
  },
  'description': '[REFERENCE_ID]',
  'emailHash': '[REDACTED_HASH]',
  'phoneHash': '[REDACTED_HASH]',
  'deliveryAddressType': 'Recipient',
  'recipient': {
    'names': {
      'companyName': None,
      'personName': '[RECIPIENT_NAME]'
    },
    'address': {
      'street': '[RECIPIENT_STREET]',
      'houseNumber': '[HOUSE_NUMBER]',
      'houseNumberSuffix': None,
      'postalCode': '[RECIPIENT_POSTAL_CODE]',
      'town': '[RECIPIENT_CITY]',
      'country': 'NL'
    },
    'international': {
      'building': None,
      'region': None,
      'district': None,
      'departmentName': None,
      'doorCode': None,
      'floor': None,
      'deliveryInstruction': None
    }
  },
  'sender': {
    'names': {
      'companyName': '[SENDER_COMPANY]',
      'personName': ''
    },
    'address': {
      'street': '[SENDER_STREET]',
      'houseNumber': '[SENDER_HOUSE_NUMBER]',
      'houseNumberSuffix': None,
      'postalCode': '[SENDER_POSTAL_CODE]',
      'town': '[SENDER_CITY]',
      'country': 'NL'
    },
    'international': {
      'building': None,
      'region': None,
      'district': None,
      'departmentName': None,
      'doorCode': None,
      'floor': None,
      'deliveryInstruction': None
    }
  },
  'accountId': None,
  'isValidated': None,
  'isMatched': None,
  'deliveryAddress': {
    'names': {
      'companyName': None,
      'personName': '[RECIPIENT_NAME]'
    },
    'address': {
      'street': '[RECIPIENT_STREET]',
      'houseNumber': '[HOUSE_NUMBER]',
      'houseNumberSuffix': None,
      'postalCode': '[RECIPIENT_POSTAL_CODE]',
      'town': '[RECIPIENT_CITY]',
      'country': 'NL'
    },
    'international': {
      'building': None,
      'region': None,
      'district': None,
      'departmentName': None,
      'doorCode': None,
      'floor': None,
      'deliveryInstruction': None
    }
  },
  'retailDeliveryLocation': None,
  'eta': {
    'type': 'Unknown',
    'start': None,
    'end': None,
    'minutesOverdue': None
  },
  'isDelivered': False,
  'isAtRetailLocation': False,
  'isPickedUpAtRetailLocation': False,
  'isAbroadRetailLocation': False,
  'beforeFirstDeliveryAttempt': True,
  'expectedReturnDate': None,
  'deliveryDate': None,
  'isDeliveryDateChanged': False,
  'routeInformation': None,
  'isReturnShipment': True,
  'hasProofOfDelivery': False,
  'details': {
    'cashOnDelivery': None,
    'productCode': '[PRODUCT_CODE]',
    'isBelgianProduct': False,
    'productOptionNotifications': [],
    'businessPartnerCode': '[BUSINESS_PARTNER_CODE]',
    'businessPartnerNumber': '[BUSINESS_PARTNER_NUMBER]',
    'dimensions': {
      'height': 224.0,
      'width': 345.0,
      'depth': 425.0,
      'weight': 10360.0
    },
    'deliveryPreferences': {
      'hasStandardDeliveryPlace': False,
      'hasNotAtHomeDeliveryPlace': False,
      'hasRetailDeliveryPlace': False,
      'isTooBigForRetail': False,
      'hasPbaDeliveryPlace': False,
      'hasStandardHomeAddressDeliveryPreference': False,
      'hasStandardRetailDeliveryPreference': False,
      'hasStandardPbaDeliveryPreference': False,
      'hasStandardParcelLockerAtHomeDeliveryPreference': False,
      'hasStandardSafePlaceDeliveryPreference': False,
      'hasNotAtHomeNeighborsDeliveryPreference': False,
      'hasNotAtHomeRetailDeliveryPreference': False,
      'hasNotAtHomeSafePlaceDeliveryPreference': False,
      'hasNotAtHomePbaDeliveryPreference': False
    },
    'productOptions': [
      {'optionCode': '[OPTION_CODE]', 'characteristicCode': '[CHARACTERISTIC_CODE]'},
      {'optionCode': '[OPTION_CODE]', 'characteristicCode': '[CHARACTERISTIC_CODE]'},
      {'optionCode': '[OPTION_CODE]', 'characteristicCode': '[CHARACTERISTIC_CODE]'}
    ],
    'isRegistered': False,
    'isInsured': False
  },
  'statusPhase': {
    'index': 2,
    'message': 'Pakket is beschadigd, gaat retour afzender',
    'route': None
  },
  'lastObservation': '2026-08-29T14:04:49+02:00',
  'extraInformation': [
    {
      'type': 'Return',
      'text': 'Dit is een retourpakket. Deze track & trace-info geldt voor de reis terug naar de afzender.',
      'title': 'Informatie over retourzending',
      'linkUrl': None,
      'linkText': None
    }
  ],
  'observations': [
    {
      'observationDate': '2026-08-29T09:26:58+02:00',
      'observationCode': 'J05',
      'description': 'Bezorger is onderweg'
    },
    {
      'observationDate': '2026-08-29T08:57:53+02:00',
      'observationCode': 'J01',
      'description': 'Zending is gesorteerd'
    },
    {
      'observationDate': '2026-08-29T00:48:30+02:00',
      'observationCode': 'B01',
      'description': 'Pakket is ontvangen door PostNL'
    },
    {
      'observationDate': '2026-08-28T23:20:47.899+02:00',
      'observationCode': 'A01',
      'description': 'Pakket is nog niet door PostNL ontvangen of verwerkt'
    }
  ],
  'previouslyRerouted': False,
  'inReroutableState': False,
  'rerouteOptions': {
    'otherTimeFrame': None,
    'otherTimeFrameAvailable': False,
    'postOfficeDelivery': False,
    'packstationDelivery': False,
    'reroutingUnauthorized': False,
    'safePlaceDelivery': False,
    'pbaDelivery': False,
    'postOfficeDeliveryIdinFlow': False,
    'safePlaceDeliveryIdinFlow': False,
    'pbaDeliveryIdinFlow': False,
    'postOfficeDeliverySustainableOption': False,
    'pbaSustainableOption': False,
    'isOriginalRerouteOwner': False,
    'unavailableReasons': [8]
  },
  'relatedCollos': [],
  'analyticsInfo': {
    'features': {'none': 'None'},
    'allObservations': [
      {
        'observationDate': '2026-08-28T00:48:30+02:00',
        'observationCode': 'A04',
        'description': 'PIOS melding'
      },
      {
        'observationDate': '2026-08-28T23:20:47.899+02:00',
        'observationCode': 'A01',
        'description': 'Pakket is nog niet door PostNL ontvangen of verwerkt'
      },
      {
        'observationDate': '2026-08-28T23:20:48+02:00',
        'observationCode': 'A98',
        'description': 'Voorgemelde zending verrijkt door PostNL regie.'
      },
      {
        'observationDate': '2026-08-28T23:20:48.928+02:00',
        'observationCode': 'A95',
        'description': 'Bezorging wijzigen niet mogelijk'
      },
      {
        'observationDate': '2026-08-29T00:48:30+02:00',
        'observationCode': 'B01',
        'description': 'Zending ontvangen door vervoerder'
      },
      {
        'observationDate': '2026-08-29T00:48:41.038+02:00',
        'observationCode': 'A96',
        'description': 'Bezorging wijzigen mogelijk'
      },
      {
        'observationDate': '2026-08-29T08:57:53+02:00',
        'observationCode': 'J01',
        'description': 'Zending is gesorteerd'
      },
      {
        'observationDate': '2026-08-29T08:58:23+02:00',
        'observationCode': 'J40',
        'description': 'Voorgemeld en gesorteerd op rit'
      },
      {
        'observationDate': '2026-08-29T09:26:58+02:00',
        'observationCode': 'A19',
        'description': 'ETA gewijzigd'
      },
      {
        'observationDate': '2026-08-29T09:26:58+02:00',
        'observationCode': 'J05',
        'description': 'Bezorger is onderweg'
      },
      {
        'observationDate': '2026-08-29T14:04:49+02:00',
        'observationCode': 'H04',
        'description': 'Pakket is beschadigd, gaat retour afzender'
      },
      {
        'observationDate': '2026-08-29T16:21:57+02:00',
        'observationCode': 'J30',
        'description': 'Vze ingenomen door Planbalie'
      }
    ],
    'productOptions': [
      {'optionCode': '[OPTION_CODE]', 'characteristicCode': '[CHARACTERISTIC_CODE]'},
      {'optionCode': '[OPTION_CODE]', 'characteristicCode': '[CHARACTERISTIC_CODE]'},
      {'optionCode': '[OPTION_CODE]', 'characteristicCode': '[CHARACTERISTIC_CODE]'}
    ],
    'shipmentStage': 'ReturnToSender',
    'inAdvancePeriod': None,
    'reroutableType': None,
    'validationStatusInfo': {'isValidated': False}
  },
  'phaseBlock': {
    'phaseContent': None,
    'phaseAction': None,
    'relatedFaqs': []
  },
  'showRetailMap': False,
  'linkToNetworkPartner': None,
  'networkPartnerName': None,
  'networkPartnerCountry': None,
  'customsFees': None,
  'customerFeedbackInfo': {
    'showFeedbackOptions': False,
    'feedbackGiven': False
  },
  'isInternational': False,
  'internationalStatus': {
    'isForeignShipment': False,
    'phase': 'ReceivedByPostNl',
    'delay': None
  },
  'showOriginalDeliveryAddress': False,
  'alerts': [],
  'firstMile': None,
  'willBeReturnedAtRetail': False,
  'retailPickupBarcode': '[RETAIL_PICKUP_BARCODE]',
  'returnPickupCancelled': False,
  'uncertainRetailLocation': False,
  'isSustainableDelivery': False,
  'isSustainableOption': False,
  'safePlaceFailure': None,
  'isPba': False,
  'isDeliveredAtPba': False,
  'isPickedUpAtPba': False,
  'isPincodeAtDoorShipment': False,
  'isInPreAnnouncedStatus': False,
  'pincodeStatus': None,
  'floatingChatBot': None,
  'shipmentAdvertisement': None,
  'thirdPartyAdvertisements': None,
  'isPostNLIDForPilotZipCodes': False,
  'extraAtHome': None,
  'canBePickedUpWithPostNLId': False,
  'isShipmentAddressChanged': False,
  'isPbaDelivery': False,
  'isDelayed': False,
  'showLastUpdateDate': False,
  'temporaryShipment': None
}

Activity

  1. added
    bug
    on Oct 19, 2026
  2. peter-mdf commented on Oct 20, 2026

    @peter-mdf
    Collaborator

    Fixed in 4.10.2. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions