diff --git a/lovelace-views/overview.yaml b/lovelace-views/overview.yaml index 7e9e0f6..2e2b87c 100644 --- a/lovelace-views/overview.yaml +++ b/lovelace-views/overview.yaml @@ -19,4 +19,13 @@ cards: - type: glance title: Geräte entities: - - device_tracker.mobile_fb \ No newline at end of file + - device_tracker.mobile_fb + + - type: entities + title: Nächste Bahn nach Münster + show_header_toggle: false + entities: + - entity: sensor.salzbergen_to_munster_hbf + name: Abfahrt + - entity: sensor.salzbergen_to_munster_hbf_delay + name: Verspätung \ No newline at end of file diff --git a/sensors/misc.yaml b/sensors/misc.yaml index 94d4528..1a93816 100644 --- a/sensors/misc.yaml +++ b/sensors/misc.yaml @@ -8,3 +8,13 @@ - 'beat' - platform: dnsip + + - platform: deutsche_bahn + from: "Salzbergen" + to: "Münster HBF" + - platform: template + sensors: + salzbergen_to_munster_hbf_delay: + value_template: '{{ states.sensor.salzbergen_to_munster_hbf.attributes.delay }}' + salzbergen_to_munster_hbf_ontime: + value_template: '{{ states.sensor.salzbergen_to_munster_hbf.attributes.ontime }}' \ No newline at end of file