mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-09-13 23:14:32 +00:00
cleaned up, and updated to latest version.
This commit is contained in:
@@ -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 -%}
|
||||
|
@@ -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 -%}
|
||||
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user