mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 04:46:49 +00:00
transport_nsw update template sensor example (#20020)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
cbdd8b9ee0
commit
054acb06fd
@ -89,11 +89,10 @@ The sensor returns n/a if no stop event is found within the next 24h. A `templat
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Sample template sensor
|
# Sample template sensor
|
||||||
- platform: template
|
template:
|
||||||
sensors:
|
- sensor:
|
||||||
busmonitor:
|
- name: "Bus monitor 199"
|
||||||
friendly_name: "Bus Mon 199"
|
state: >-
|
||||||
value_template: >-
|
|
||||||
{% if is_state_attr('sensor.bus', 'due', 'n/a') %}
|
{% if is_state_attr('sensor.bus', 'due', 'n/a') %}
|
||||||
No schedule found
|
No schedule found
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user