clean up of old code

This commit is contained in:
Mahasri Kalavala
2020-09-27 21:29:23 -04:00
parent d213f075e7
commit 7eebcce956
21 changed files with 769 additions and 932 deletions

View File

@@ -49,14 +49,14 @@
{%- endmacro -%}
{%- macro single_car_garage_door_status() -%}
{%- if states('binary_sensor.single_car_garage_door_tilt_sensor_sensor') |lower == "on" -%}
{{ states.binary_sensor.single_car_garage_door_tilt_sensor_sensor.attributes.friendly_name }} is OPEN!
{%- if states('binary_sensor.door_window_sensor_158d0004248d5b') |lower == "on" -%}
{{ states.binary_sensor.door_window_sensor_158d0004248d5b.attributes.friendly_name }} is OPEN!
{%- endif -%}
{%- endmacro -%}
{%- macro two_car_garage_door_status() -%}
{% if states('binary_sensor.two_car_garage_door_tilt_sensor_sensor') |lower == "on" %}
{{ states.binary_sensor.two_car_garage_door_tilt_sensor_sensor.attributes.friendly_name }} is OPEN!
{% if states('binary_sensor.door_window_sensor_158d0004231f7b') |lower == "on" %}
{{ states.binary_sensor.door_window_sensor_158d0004231f7b.attributes.friendly_name }} is OPEN!
{% endif %}
{%- endmacro -%}

View File

@@ -100,14 +100,14 @@
{#- Provides Garage Doors Status -#}
{%- macro single_car_garage_door_status() -%}
{% if states('binary_sensor.single_car_garage_door_tilt_sensor_sensor') |lower == "on" %}
{{ states.binary_sensor.single_car_garage_door_tilt_sensor_sensor.attributes.friendly_name }} is OPEN
{% if states('binary_sensor.door_window_sensor_158d0004248d5b') |lower == "on" %}
{{ states.binary_sensor.door_window_sensor_158d0004248d5b.attributes.friendly_name }} is OPEN
{% endif %}
{%- endmacro -%}
{%- macro two_car_garage_door_status() -%}
{% if states('binary_sensor.two_car_garage_door_tilt_sensor_sensor') |lower == "on" %}
{{ states.binary_sensor.two_car_garage_door_tilt_sensor_sensor.attributes.friendly_name }} is OPEN
{% if states('binary_sensor.door_window_sensor_158d0004231f7b') |lower == "on" %}
{{ states.binary_sensor.door_window_sensor_158d0004231f7b.attributes.friendly_name }} is OPEN
{% endif %}
{%- endmacro -%}