Had to remove garage door checks until hardware is fixe. #1138

This commit is contained in:
ccostan 2022-06-24 09:43:42 -04:00
parent 77584e8de5
commit a7b1359e2a
7 changed files with 31 additions and 28 deletions

View File

@ -74,7 +74,15 @@
"It looks like "~person ~ is_are + " finally home! I will get the house ready for you. "
] | random }}
{%- endmacro -%}
{%- macro Alexa_Guard() -%}
{% if not is_state('alarm_control_panel.alexa_guard', 'disarmed') -%}
I will now disarm the Guard functions.
{% endif -%}
{%- endmacro -%}
{{greeting_sentence(person, is_are)}}
{{Alexa_Guard()}}
call_responsibilities: 1
call_no_announcement: 1
call_garage_check: 1

View File

@ -19,9 +19,9 @@
action:
- wait_template: >-
{{ is_state('group.garage_doors', 'closed') }}
timeout: 00:05:30
# - wait_template: >-
# {{ is_state('group.garage_doors', 'closed') }}
# timeout: 00:05:30
- service: script.speech_engine
data:

View File

@ -86,8 +86,8 @@
- service: light.turn_on
entity_id:
- light.living_room_accents
- wait_template: >-
{{ is_state('group.garage_doors', 'closed') }}
# - wait_template: >-
# {{ is_state('group.garage_doors', 'closed') }}
- wait_template: >-
{{ is_state('group.entry_points', 'off') }}
- service: script.speech_engine

View File

@ -12,11 +12,6 @@
- platform: state
entity_id: group.family
to: 'not_home'
# - platform: event
# #Sent from IFTTT Webhooks : {"action":"IFTTT_Away:}
# event_type: ifttt_webhook_received
# event_data:
# action: IFTTT_Away
condition:
- condition: state

View File

@ -14,10 +14,10 @@
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: group.garage_doors
state: 'closed'
# condition:
# - condition: state
# entity_id: group.garage_doors
# state: 'closed'
action:
- service: script.dog_bark

View File

@ -48,9 +48,9 @@
- switch.front_door_outlet
- switch.foyer_outlet
- wait_template: "{{ is_state('group.entry_points', 'off') }}"
- wait_template: "{{ is_state('group.garage_doors', 'closed') }}"
# - wait_template: "{{ is_state('group.garage_doors', 'closed') #}}"
- service: script.monthly_color_scene
- choose:
- conditions: >
{{ states.group.entry_points.state == 'on' or

View File

@ -100,18 +100,18 @@
{%- endmacro -%}
{%- macro garage_check() -%}
{% if states.group.garage_doors.state !='closed' -%}
The
{%- for state in states.cover -%}
{%- endfor %}
{% for group in states.cover|groupby('state') -%}
{%- for entity in group.list if entity.state == 'open' and entity.attributes.device_class == 'garage' -%}
{{ ' and' if loop.last and not loop.first }}
{{ entity.attributes.friendly_name }}
{%- endfor -%}
{%- endfor %}
need to be closed.
{%- endif -%}
# {% if states.group.garage_doors.state !='closed' -%}
# The
# {%- for state in states.cover -%}
# {%- endfor %}
# {% for group in states.cover|groupby('state') -%}
# {%- for entity in group.list if entity.state == 'open' and entity.attributes.device_class == 'garage' -%}
# {{ ' and' if loop.last and not loop.first }}
# {{ entity.attributes.friendly_name }}
# {%- endfor -%}
# {%- endfor %}
# need to be closed.
# {%- endif -%}
{%- endmacro -%}
{%- macro medicine() -%}