Skip to content

Home Assistant custom component for PID (Prague) public transit departure boards API.

Notifications You must be signed in to change notification settings

dvejsada/PID_integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PID Departure Board integration

This custom component provides a departures board information for the selected stops of the Prague Integrated Transport PID.

Multiple departure boards can be configured.

Device page Sensor attributes
device page sensor attributes

Installation

Using HACS

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

Manual

To install this integration manually you have to download pid_departures folder into your config/custom_components folder.

Configuration

Using UI

From the Home Assistant front page go to Configuration and then select Integrations from the list.

Use the "plus" button in the bottom right to add a new integration called PID Departure boards.

Fill in:

  • API key (if you don't have the API key, you can obtain it here: https://api.golemio.cz/api-keys/auth/sign-up),
  • number of departures to be displayed,
  • choose a stop from the list, and
  • number of calendar events for departures to be created.

It is only required to fill in API key once - for additional departure boards it should be prefilled in the config dialogue.

The success dialog will appear or an error will be displayed in the popup.

Dashboard

The repo includes example card based on Flex-table-card for display on dashboard.

Just modify the headline and the departure entity name - number in the name shall be replaced by * to include all departures.

card