This card generates a simple departure card for the RMV public transport service.
| 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 |
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/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: jsAdd a custom element in your ui-lovelace.yaml
Example:
- type: "custom:rmv-card"
entity:
- sensor.frankfurt_main_hauptbahnhofThanks to DavidMStraub for all his initial work.
