mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 18:06:54 +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
|
||||
# Example configuration.yaml entry
|
||||
sensor:
|
||||
platform: template
|
||||
sensors:
|
||||
next_departure:
|
||||
value_template: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
|
||||
friendly_name: "Next departure"
|
||||
template:
|
||||
- sensor:
|
||||
- name : "Next departure"
|
||||
state: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user