Skip to content

krasnoukhov/homeassistant-nova-poshta

Repository files navigation

Home Assistant Nova Poshta integration

The Nova Poshta integration allows you to track delivered parcels, exposed as sensor per warehouse.

Highlights

Track delivered parcels

  • Supports multiple warehouses (post office, poshtomat, different cities)
  • Separate integration for every person in the household
sensors
sensors

Use the UI to set up integration

setup

Example automation

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

Installation

Via HACS

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  • Search for "Nova Poshta" on HACS tab in Home Assistant
  • Click on three dots and use the "Download" option
  • Follow the steps
  • Restart Home Assistant

Manual Installation (not recommended)

  • Copy the entire custom_components/nova_poshta/ directory to your server's <config>/custom_components directory
  • Restart Home Assistant