@vincen wrote:
Hi
I’m trying to use the Swiss Transport component included in Ha but it looks to miss some data ! Here ii my configuration file for it:
sensor: - platform: swiss_public_transport from: 8592101 to: 8579238 - platform: template sensors: prochain_depart: friendly_name: "Prochain Départ:" icon_template: mdi:train value_template: '{{ as_timestamp(states.sensor.next_departure.attributes.next_departure)| timestamp_custom("%H:%M", True) }}' prochain_depart_suivant: friendly_name: "Prochain Départ suivant:" icon_template: mdi:train value_template: '{{ as_timestamp(states.sensor.next_departure.attributes.next_on_departure)| timestamp_custom("%H:%M", True) }}'
and the configuration in Lovelace:
entities: - entity: sensor.prochain_depart - entity: sensor.prochain_depart_suivant show_header_toggle: false title: Prochains bus Sallaz type: entities
When I check with these same id on https://transport.opendata.ch/examples/connections.php?from=Lausanne%2C+Praz-Séchaud&to=Sallaz&datetime=2020-01-05+17%3A11%3A11 the Opendata swiss website that component is supposed to pull data from I get more schedules than the one displayed in HA ! I mean some departures are just not showing up in HA, it skips some and I don’t see the reason ! Out of a bug in the component itself ?
Thanks
Vincèn
Posts: 3
Participants: 2