Add bahn.de sensor

This commit is contained in:
Florian Brinker 2019-01-17 20:17:35 +01:00
parent 0f4bb846d7
commit 4244d3813a
2 changed files with 20 additions and 1 deletions

View File

@ -19,4 +19,13 @@ cards:
- type: glance
title: Geräte
entities:
- device_tracker.mobile_fb
- 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

View File

@ -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 }}'