mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +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
|
||||
# Sample template sensor
|
||||
- platform: template
|
||||
sensors:
|
||||
busmonitor:
|
||||
friendly_name: "Bus Mon 199"
|
||||
value_template: >-
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Bus monitor 199"
|
||||
state: >-
|
||||
{% if is_state_attr('sensor.bus', 'due', 'n/a') %}
|
||||
No schedule found
|
||||
{% else %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user