Skip to content

๐Ÿš‹ Departure monitor for DVB (Dresden) & VVO as a lovelace card for Home Assitant.

License

Notifications You must be signed in to change notification settings

mr-woodapple/dvb-home-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DVB Home Assistant

Custom Lovelace card that acts as a departure monitor for the DVB (Dresden) and the entire VVO really.

๐Ÿ“ฆ Installation

The easiest way to install DVB Home Assitant is via HACS.

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

โœ๏ธ Setup

After you've installed DVB Home Assistant, follow these steps to configure the card to your liking.

๐Ÿ“Œ Adding the card to your dashboard

  1. Open Your Dashboard for Editing
  • Navigate to Home Assistant โ†’ Dashboard
  • Click the three-dot menu (โ‹ฎ) โ†’ Edit Dashboard
  1. Add Calendar Card Pro
  • Click the โž• Add Card button
  • Search for DVB or scroll till you find DVB Home Assistant
  1. Select the card to add it to your dashboard
  • Configure with the Visual Editor
  • Click the three dots โ‹ฎ in the top-right corner of the card
  • Select "Configure" to open the visual editor
  • Follow the instructions below for further info.

๐Ÿ–Œ๏ธ Customizing the card

If you're not happy with the Dresden Postplatz station (which is the default), you need to find the stop_id of your station.

How do I find the stop_id?

Glad you're asking! I haven't found a user-friendly way yet, so in the meantime copy the URL below into any browser, just change the word "Hauptbahnhof" to your station name. The first number (highlighted in the screenshot) is what you're looking for.

https://webapi.vvo-online.de/tr/pointfinder?format=JSON&stopsOnly=True&query=%20Hauptbahnhof

Now go ahead and copy paste that number into the card config in Home Assistant.

โš™๏ธ Development

To start a development server (assuming you have run npm install already), open two command lines. In the first one, you run

npm run build:watch

and in the second one, you run

npm run start:watch

That way, we start rollup in it's "watch" mode and the @web/web-dev-server to serve a static html file from the dev folder. Not ideal, but works for now.

๐Ÿ’• Credits

  • Thanks a lot to alexpfau's calendar-card-pro, I took some inspiration from its code.

About

๐Ÿš‹ Departure monitor for DVB (Dresden) & VVO as a lovelace card for Home Assitant.

Topics

Resources

License

Stars

Watchers

Forks