diff --git a/atom.xml b/atom.xml index af146988cd..accc55406e 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
sensor:
+If your device has an burglar
entity, but not a binary_sensor
equivalent, you can use a template binary sensor to create one:
sensor:
+ - platform: template
+ sensors:
+ YOUR_SENSOR:
+ sensor_class: motion
+ friendly_name: "Friendly name here"
+ value_template: >-
+ {%- if is_state('sensor.YOUR_SENSOR_burglar', '8') -%}
+ on
+ {%- else -%}
+ off
+ {%- endif -%}
+
+