Unofficial Home Assistant integration for DHL eCommerce NL (formerly DHL Parcel). This integration tracks your incoming and delivered packages.
- Go to HACS -> Integrations.
- Click the 3 dots (top right) -> Custom repositories.
- Add URL:
https://github.com/rononline/dhl-ecommerce-nl - Type:
Integration. - Click Add and then Download.
- Restart Home Assistant.
- Go to Settings -> Devices & Services.
- Click Add Integration.
- Search for DHL eCommerce NL.
- Enter your DHL email and password.
- You can add multiple accounts by adding the integration again.
Requires Auto-Entities and lovelace-template-entity-row.
type: custom:auto-entities
card:
type: entities
title: DHL Packages
filter:
template: >
{% set dhl_sensors = states.sensor | selectattr('entity_id', 'search', 'dhl_packages_') | list %}
{% set ns = namespace(rows=[]) %}
{% for sensor in dhl_sensors %}
{% set packages = state_attr(sensor.entity_id, 'parcels_json') or [] %}
{% for package in packages %}
{% set name = package.sender.name if package.sender.name else 'Unknown Sender' %}
{% set status = package.status | replace('_', ' ') | capitalize %}
{% set row = {
'type': 'custom:template-entity-row',
'entity': sensor.entity_id,
'name': name,
'secondary': status ~ ' (' ~ package.barcode ~ ')',
'state': '',
'icon': 'mdi:package-variant-closed'
} %}
{% set ns.rows = ns.rows + [row] %}
{% endfor %}
{% endfor %}
{{ ns.rows }}