diff --git a/atom.xml b/atom.xml index 0aba0502a8..87786beb7c 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
This example shows a multiple line template with and is test. It looks at a sensing switch and shows on/off in the frontend.
+ +sensor: + platform: template + sensors: + kettle: + friendly_name: 'Kettle' + value_template: >- + {%- if is_state("switch.kettle", "off") %} + off + {% elif states.switch.kettle.attributes.kwh < 1000 %} + standby + {% elif is_state("switch.kettle", "on") %} + on + {% else %} + failed + {%- endif %} + +
(please note the blank line to close the multi-line template)
+ diff --git a/sitemap.xml b/sitemap.xml index dc78eb3bf3..00b002ffeb 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1018,618 +1018,618 @@