Envisalink Zone Status

I did templates with mine. I included a sensors directory in the configuration.yaml and put templates.yaml in that folder.

sensor: !include_dir_list sensors

Here’s how I addressed the envisalink devices in templates.yaml and changed their state. The else statement is important otherwise it’ll generate errors in the log on startup. They don’t stop it from working I just don’t like false alarms. :slight_smile:

platform: template
sensors:
front_door:
  value_template: >-
    {% if states.binary_sensor.front_door.state == 'on' %}
      Open
    {% elif states.binary_sensor.front_door.state == 'off' %}
      Closed
    {% else %}
      n/a
    {% endif %}
patio_door:
  value_template: >-
    {% if states.binary_sensor.patio_door.state == 'on' %}
      Open
    {% elif states.binary_sensor.patio_door.state == 'off' %}
      Closed
    {% else %}
      n/a
    {% endif %}
house_garage_door:
  value_template: >-
    {% if states.binary_sensor.house_garage_door.state == 'on' %}
      Open
    {% elif states.binary_sensor.house_garage_door.state == 'off' %}
      Closed
    {% else %}
      n/a
    {% endif %}
back_garage_door:
  value_template: >-
    {% if states.binary_sensor.back_garage_door.state == 'on' %}
      Open
    {% elif states.binary_sensor.back_garage_door.state == 'off' %}
      Closed
    {% else %}
      n/a
    {% endif %}
basement_smoke:
  value_template: >-
    {% if states.binary_sensor.basement_smoke.state == 'on' %}
      Smoke Detected!
    {% elif states.binary_sensor.basement_smoke.state == 'off' %}
      OK
    {% else %}
      n/a
    {% endif %}
first_floor_smoke:
  value_template: >-
    {% if states.binary_sensor.first_floor_smoke.state == 'on' %}
      Smoke Detected!
    {% elif states.binary_sensor.first_floor_smoke.state == 'off' %}
      OK
    {% else %}
      n/a
    {% endif %}
second_floor_smoke:
  value_template: >-
    {% if states.binary_sensor.second_floor_smoke.state == 'on' %}
      Smoke Detected!
    {% elif states.binary_sensor.second_floor_smoke.state == 'off' %}
      OK
    {% else %}
      n/a
    {% endif %}
kitchen_motion:
  value_template: >-
    {% if states.binary_sensor.kitchen_motion.state == 'on' %}
      Motion Detected!
    {% elif states.binary_sensor.kitchen_motion.state == 'off' %}
      OK
    {% else %}
      n/a
    {% endif %}
high_water:
  value_template: >-
    {% if states.binary_sensor.high_water.state == 'on' %}
      Water Detected!
    {% elif states.binary_sensor.high_water.state == 'off' %}
      OK
    {% else %}
      n/a
    {% endif %}
low_temp:
  value_template: >-
    {% if states.binary_sensor.low_temp.state == 'on' %}
      Low Temp Detected!
    {% elif states.binary_sensor.low_temp.state == 'off' %}
      OK
    {% else %}
      n/a
    {% endif %}