mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Upgraded to 105.3 - Added a Bunch of Lock related Speech #713
This commit is contained in:
@@ -76,6 +76,21 @@
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro lock_check() -%}
|
||||
{% if states.group.locks.state !='locked' -%}
|
||||
The
|
||||
{%- for state in states.lock -%}
|
||||
{%- endfor %}
|
||||
{% for group in states.lock|groupby('state') -%}
|
||||
{%- for entity in group.list if entity.state == 'unlocked' -%}
|
||||
{{ ' and' if loop.last and not loop.first }}
|
||||
{{ entity.attributes.friendly_name }}
|
||||
{%- endfor -%}
|
||||
{%- endfor %}
|
||||
needs to be locked.
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro garage_check() -%}
|
||||
{% if states.group.garage_doors.state !='closed' -%}
|
||||
The
|
||||
@@ -230,6 +245,11 @@
|
||||
{{ DoorOpened }}
|
||||
{{ DoorClosed }}
|
||||
|
||||
{{ lock_check() }}
|
||||
{# These two lock statements are sent directly from automations. #}
|
||||
{{ DoorLocked }}
|
||||
{{ DoorUnLocked }}
|
||||
|
||||
{% if call_dark_outside == 1 %}
|
||||
{{ dark_outside() }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user