The Nova Poshta integration allows you to track delivered parcels, exposed as sensor per warehouse.
Here's what I use to get a notification when there's a parcel in poshtomat and I'm approaching home:
alias: Poshtomat
trigger:
- platform: zone
entity_id: person.krasnoukhov
zone: zone.home
event: enter
condition:
- condition: numeric_state
entity_id: sensor.dmytro_delivered_parcels_in_kyiv_XXXX
above: 0
action:
- alias: Send critical mobile app notification
service: notify.mobile_app_dmytro_iphone
data:
data:
push:
sound:
critical: 1
name: default
title: >
Посилки в поштоматі: {{ states("sensor.dmytro_delivered_parcels_in_kyiv_XXXX") }}шт
message: >
{{ state_attr("sensor.dmytro_delivered_parcels_in_kyiv_XXXX", "parcels") | join("\n") }}
mode: single
custom_components/nova_poshta/
directory to your server's <config>/custom_components
directory