Custom Lovelace Card for showing status of Nederlandse Spoorwegen with ticket-like UI.
It is working however there is not an indication yet when the train is cancelled. It only shows delay and platform.
You first have to install the desired sensor(s) from this integration: https://www.home-assistant.io/integrations/nederlandse_spoorwegen/
- Make sure you have HACS installed. If not, follow instructions: https://hacs.xyz/docs/setup/download/
- Open HACS and click on Frontend
- Click on the three dots in the right top corner, and click on Custom repositories
- Use
https://github.com/stijnb1234/hacs-ns-card/
as the Repository and choose Lovelace as category. - Install the ns-card.
- Place the ns-status-card folder with its contents in the WWW/COMMUNITY folder of your home assistant.
- Add the folder to the dashboards/resources list. Folder path should look like: /hacsfiles/ns-status-card/ns-status-card.js
- Refresh the browser, now you should be able to use the card.
type: custom:ns-status-card
entity: sensor.nijmegen_amsterdam
type: custom:swipe-card
parameters:
effect: coverflow
spaceBetween: 2
slidesPerView: 1.1
cards:
- type: custom:ns-status-card
entity: sensor.goffert_rosmalen
- type: custom:ns-status-card
entity: sensor.rosmalen_goffert
Single card example:
Slider example: