/homeassistant-nova-poshta

Home Assistant Nova Poshta integration

Primary LanguagePythonMIT LicenseMIT

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

hacs_badge

Via HACS

  • Add this repo as a "Custom repository" with type "Integration"
  • Click "Install" in the new "Nova Poshta" card in HACS.
  • Install
  • 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