Skip to content

jozefKruszynski/wienerlinien

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wienerlinien

This integration was inspired originally by home-assistant-wienerlinien.

There are several differences here.

This updated integration is ONLY configurable via the UI.

All data is requested via a single API call for all stops, the update frequency for this is configurable with a default of 30 seconds.

The amount of departures is also configurable, up to a max of 10. Whether the stop itself has 10 departures available does not matter, the filtering is done after the data collection, and we always request all info available.

As with the integration that inspired this one, you should find the relevant stop ids (rbl numbers) from the following site resource: Matthias Bendel https://till.mabe.at/rbl/

I have not submitted this integration to HACS, therefore you need to add the repo manually to HACS repos.

I'm still debating whether to submit to HACS or not.

Setup

Initial setup is straightforward and hopefully easy to follow.

image

Each rbl number added creates a new device with 1-n line sensors, as shown in the following images.

image

image

A given line monitor contains a list of departures, this departures list is updated based on the interval given in the config.

image

The integration supports both options flow and reconfigure flow.

image

The options flow supports modification of the departures list size, and the update interval.

image

The reconfigure flow supports modification of all cconfiguration settings, including adding/removing rbl numbers.

image

Visualising the data

Based on the work done by vinergha you can very easily create some nice visualisations on your dashboards.

Table

type: custom:auto-entities
filter:
  include:
    - entity_id: "*_outbound_*"
    - entity_id: "*_inbound_*"
  exclude:
    - state: unavailable
card:
  type: custom:flex-table-card
  clickable: true
  max_rows: 50
  title: Wiener Linien
  strict: true
  columns:
    - name: Route
      data: departures
      modify: "'<ha-icon icon=' + x.line_icon + '></ha-icon>' + x.line_name"
    - name: Time
      data: departures
      modify: x.real_time
    - name: Stop
      data: departures
      modify: x.location
    - name: Headsign
      data: departures
      modify: x.towards

image

Map

type: custom:auto-entities
filter:
  include:
    - entity_id: "*_outbound_*"
    - entity_id: "*_inbound_*"
    - entity_id: person.foo
card:
  type: map
  clickable: true
  title: Stops
  dark_mode: false
  default_zoom: 15
  auto_fit: true

image

Resources and Thanks

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages