This card is made to work with the Entur public transport component. You will have to configure the Entur component before you can use this card. Click here to get stop id's for your setup.
⚠️ Unfortunately there is currently no provided method to define a start and a stop station with entur. But you can add a whitelist of lines so that you can force only relevant results.
yaml
)Entur Card is available in HACS (Home Assistant Community Store).
entur-card.js
file from the [latest-release].entur-card.js
file into your config/www
folder.entur-card.js
in Dashboard. There's two way to do that:
/local/entur-card.js
→ Set Resource type as JavaScript Module
.
Note: If you do not see the Resources menu, you will need to enable Advanced Mode in your User Profilelovelace
section.
resources:
- url: /local/entur-card.js
type: js
Field | Type | Description |
---|---|---|
custom:entur-card | string(required) |
|
name | string |
Name of the card |
divide_routes | true/false |
Add a line divider between routes |
display_time | true/false |
Displays the time in the header |
entities | list(required) |
A list of entity IDs or entity objects, see below. |
Field | Type | Description |
---|---|---|
entity | string(required) |
Home Assistant entity ID. |
icon | string |
Overrides the icon. |
name | string |
Overrides friendly name. |
destination | string |
Display hardcoded destination name. |
clock_icon_state | string |
None or left / right side of the time string. |
extra_departures | string |
next or all . |
human_readable_time | string |
Show for all , line , line_next or line_extras . |
remaining_time | string |
Show for all , line , line_next or line_extras . |
sensor:
- platform: entur_public_transport
name: Transport
show_on_map: true
stop_ids:
- "NSR:StopPlace:5850" # Grorud T bus stop
- "NSR:StopPlace:548" # Bergen train station
- "NSR:StopPlace:58652" # Mortavika ferry
- type: custom:entur-card
name: Rutetider
entities:
- entity: sensor.transport_grorud_t
extra_departures: all
divide_lines: true
clock_icon_state: left
- entity: sensor.transport_bergen_stasjon
human_readable_time: line
- entity: sensor.transport_mortavika_ferjekai
remaining_time: all
clock_icon_state: left
display_time: true
divide_routes: true
⭐️ this repository if you found it useful ❤️