cleaned up, and updated to latest version.

This commit is contained in:
Mahasri Kalavala
2022-11-29 19:50:52 -05:00
parent 9a8c586542
commit 3bedcbdc20
77 changed files with 3853 additions and 7279 deletions

View File

@@ -39,7 +39,8 @@
{%- endmacro -%}
{%- macro alarm_status() -%}
Your home is {{ "SECURED!" if states('alarm_control_panel.home') == "armed_away" or states('alarm_control_panel.home') == "armed_home" else "UNSECURED!" }}
Your home is {{ "SECURED!" if states('alarm_control_panel.home') == "armed_away" or states('alarm_control_panel.home') == "armed_home" else "UNSECURED!" -}}
. Your Home Away Status is set to {{ states('input_boolean.home_mode_away') |upper }}
{%- endmacro -%}
{%- macro single_car_garage_door_status() -%}
@@ -79,9 +80,9 @@
{%- macro light_switch_status() -%}
{% for item in states if item.domain =="light" or item.domain == "switch" -%}
{%- if item.state == "on" -%}
{%- if item.state == "on" and not item.entity_id.endswith('led') and not item.attributes.friendly_name.endswith('LED') -%}
{%- set friendly_name = item.attributes.friendly_name -%}
{{ friendly_name }} {{ 'are' if plural(friendly_name) == "true" else 'is' }} ON.
{{ item.domain }} {{ friendly_name }} {{ 'are' if plural(friendly_name) == "true" else 'is' }} ON.
{% endif %}
{%- endfor -%}
{%- endmacro -%}

View File

@@ -22,11 +22,11 @@
"switch.basement_right",
"switch.frontyard_light",
"switch.garage",
"switch.guest_bedroom",
"switch.prayer_room",
"switch.kids_bed_accent",
"switch.kids_bedroom",
"switch.kitchen",
"switch.srinika_bedroom",
"switch.guest_room",
"switch.hasika_bed_accent",
"switch.hasika_bedroom",
"switch.kitchen_switch",
"switch.office_room",
"switch.backyard_light"] %}
{%- for item in lights_switches -%}

View File

@@ -164,7 +164,7 @@
{# Drone Flying Weather #}
{%- macro drone_weather() -%}
{% if states('binary_sensor.good_weather_to_fly_drones')| lower == "on" and
states('device_tracker.life360_suresh') == "home" and
states('device_tracker.suresh') == "home" and
states('sun.sun') == "above_horizon" %}
It is now a great weather to fly drone outside.
{% endif %}