diff --git a/atom.xml b/atom.xml index 355af118e4..dd878a8840 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
This example combines multiple CO sensors into a single overall status. It also shows how to use entity_id
binary_sensor:
+ - platform: template
+ sensors:
+ co:
+ friendly_name: 'CO'
+ sensor_class: 'gas'
+ value_template: >-
+ {%- if is_state("sensor.bedroom_co_status", "Ok")
+ and is_state("sensor.kitchen_co_status", "Ok")
+ and is_state("sensor.wardrobe_co_status", "Ok") -%}
+ Off
+ {%- else -%}
+ On
+ {%- endif %}
+ entity_id:
+ - sensor.bedroom_co_status
+ - sensor.kitchen_co_status
+ - sensor.wardrobe_co_status
+
+