Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

A component which allows you to get information about pending parcels.

License

Notifications You must be signed in to change notification settings

custom-components/sensor.custom_aftership

Repository files navigation

sensor.custom_aftership

A platform which allows you to get information about pending parcels.

To get started put /custom_components/custom_aftership/sensor.py here:
<config directory>/custom_components/custom_aftership/sensor.py

Example configuration.yaml:

sensor:
  platform: custom_aftership
  api_key: '9781915b342514bf0dede6e3d058a'

Configuration variables:

key description
platform (Required) The platform name.
api_key (Required) Your Aftership API key.

Serice Calls:

sensor.aftership_new_tracking

Example JSON data format. All fields are required

{
  "title":"HA Shirt",
  "slug":"usps",
  "tracking_number":"123456789"
}

There is an official platform for Aftership in Home Assistant


Due to how custom_components are loaded, it is normal to see a ModuleNotFoundError error on first boot after adding this, to resolve it, restart Home-Assistant.