mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +00:00
Update deutsche_bahn template sensor example (#20272)
This commit is contained in:
parent
08529a9e4e
commit
fd41a13cfe
@ -49,12 +49,10 @@ This sensor stores a lot of attributes which can be accessed by other sensors, e
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
template:
|
||||||
platform: template
|
- sensor:
|
||||||
sensors:
|
- name : "Next departure"
|
||||||
next_departure:
|
state: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
|
||||||
value_template: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
|
|
||||||
friendly_name: "Next departure"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user