rmv-card
rmv-card copied to clipboard
Custom card for the RMV component.
rmv-card
This card generates a simple departure card for the RMV public transport service.

Options
| Name | Type | Requirement | Description | Default |
|---|---|---|---|---|
| type | string | Required | custom:rmv-card |
|
| entity | string | Required | Home Assistant entity ID. | none |
| friendly_name | string | Optional | Card name | Inherited from sensor name |
| hide_title | boolean | Optional | Hide card title | false |
| hide_minutes | boolean | Optional | Hide minutes until departure | false |
| show_time | boolean | Optional | Show absolute departure time | false |
| convert_minutes | boolean | Optional | Show minutes until departure as hh:mm | false |
Installation
Step 1
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 rmv-card.js ~/.homeassistant/www/
Step 2
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'
Step 3
Link rmv-card inside you ui-lovelace.yaml.
resources:
- url: /local/rmv-card.js?v=0
type: js
Step 4
Add a custom element in your ui-lovelace.yaml
Example:
- type: "custom:rmv-card"
entity:
- sensor.frankfurt_main_hauptbahnhof
Credits
Thanks to DavidMStraub for all his initial work.