This card generates a simple departure card for the RMV public transport service.
Install rmv-card
by copying rmv-card.js
from this repo to <config directory>/www/rmv-card.js
of your Home Assistant instance.
Example:
wget https://github.com/cgtobi/rmv-card/raw/master/rmv-card.js
mv list-card.js ~/.homeassistant/www/
Set up the rmv transport sensor.
Example:
sensor:
- platform: rmvtransport
next_departure:
- station: 3000010
time_offset: 5
destinations:
- 'Frankfurt (Main) Flughafen Regionalbahnhof'
- 'Frankfurt (Main) Stadion'
products:
- 'RB'
- 'RE'
- 'Bus'
- 'S'
Link rmv-card
inside you ui-lovelace.yaml
.
resources:
- url: /local/rmv-card.js?v=0
type: js
Add a custom element in your ui-lovelace.yaml
Example:
- type: "custom:rmv-card"
entity:
- sensor.frankfurt_main_hauptbahnhof
Thanks to DavidMStraub for all his initial work.