This custom component fetches information from cracow ttss with information when next train or bus will be on specified
Copy custom_components/mpkk
to <config>/custom_components/mpkk
directory.
You can add this repository to your hacs
You can configure multiple bus/tram stops:
sensor:
- platform: mmpk
name: 'Jarzebiny'
stop_id: 2685
direction: 'Bronowice Małe'
name
- Name of the componentstop_id
- Id of the stop. You can retrieve it by visiting ttss finding your stop. Search in webdeveloper console for request like http://www.ttss.krakow.pl/internetservice/services/lookup/autocomplete/json?query=bia%C5%82ucha&language=en In returned json you should find id of the stopdirection
- for what direction you want to filter all trains