Had to remove garage door checks until hardware is fixe. #1138
This commit is contained in:
parent
77584e8de5
commit
a7b1359e2a
|
@ -74,7 +74,15 @@
|
||||||
"It looks like "~person ~ is_are + " finally home! I will get the house ready for you. "
|
"It looks like "~person ~ is_are + " finally home! I will get the house ready for you. "
|
||||||
] | random }}
|
] | random }}
|
||||||
{%- endmacro -%}
|
{%- 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)}}
|
{{greeting_sentence(person, is_are)}}
|
||||||
|
{{Alexa_Guard()}}
|
||||||
call_responsibilities: 1
|
call_responsibilities: 1
|
||||||
call_no_announcement: 1
|
call_no_announcement: 1
|
||||||
call_garage_check: 1
|
call_garage_check: 1
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
|
||||||
- wait_template: >-
|
# - wait_template: >-
|
||||||
{{ is_state('group.garage_doors', 'closed') }}
|
# {{ is_state('group.garage_doors', 'closed') }}
|
||||||
timeout: 00:05:30
|
# timeout: 00:05:30
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
|
|
|
@ -86,8 +86,8 @@
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_accents
|
- light.living_room_accents
|
||||||
- wait_template: >-
|
# - wait_template: >-
|
||||||
{{ is_state('group.garage_doors', 'closed') }}
|
# {{ is_state('group.garage_doors', 'closed') }}
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{ is_state('group.entry_points', 'off') }}
|
{{ is_state('group.entry_points', 'off') }}
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
|
|
|
@ -12,11 +12,6 @@
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
to: 'not_home'
|
to: 'not_home'
|
||||||
# - platform: event
|
|
||||||
# #Sent from IFTTT Webhooks : {"action":"IFTTT_Away:}
|
|
||||||
# event_type: ifttt_webhook_received
|
|
||||||
# event_data:
|
|
||||||
# action: IFTTT_Away
|
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
to: 'on'
|
to: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
|
|
||||||
condition:
|
# condition:
|
||||||
- condition: state
|
# - condition: state
|
||||||
entity_id: group.garage_doors
|
# entity_id: group.garage_doors
|
||||||
state: 'closed'
|
# state: 'closed'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.dog_bark
|
- service: script.dog_bark
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
- switch.front_door_outlet
|
- switch.front_door_outlet
|
||||||
- switch.foyer_outlet
|
- switch.foyer_outlet
|
||||||
- wait_template: "{{ is_state('group.entry_points', 'off') }}"
|
- 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
|
- service: script.monthly_color_scene
|
||||||
|
|
||||||
- choose:
|
- choose:
|
||||||
|
|
|
@ -100,18 +100,18 @@
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro garage_check() -%}
|
{%- macro garage_check() -%}
|
||||||
{% if states.group.garage_doors.state !='closed' -%}
|
# {% if states.group.garage_doors.state !='closed' -%}
|
||||||
The
|
# The
|
||||||
{%- for state in states.cover -%}
|
# {%- for state in states.cover -%}
|
||||||
{%- endfor %}
|
# {%- endfor %}
|
||||||
{% for group in states.cover|groupby('state') -%}
|
# {% for group in states.cover|groupby('state') -%}
|
||||||
{%- for entity in group.list if entity.state == 'open' and entity.attributes.device_class == 'garage' -%}
|
# {%- for entity in group.list if entity.state == 'open' and entity.attributes.device_class == 'garage' -%}
|
||||||
{{ ' and' if loop.last and not loop.first }}
|
# {{ ' and' if loop.last and not loop.first }}
|
||||||
{{ entity.attributes.friendly_name }}
|
# {{ entity.attributes.friendly_name }}
|
||||||
{%- endfor -%}
|
# {%- endfor -%}
|
||||||
{%- endfor %}
|
# {%- endfor %}
|
||||||
need to be closed.
|
# need to be closed.
|
||||||
{%- endif -%}
|
# {%- endif -%}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro medicine() -%}
|
{%- macro medicine() -%}
|
||||||
|
|
Loading…
Reference in New Issue