AS
Size: a a a
AS
AS
ДЦ
ДЦ
ДЦ
DD
ДЦ
message: >
{% if trigger.from_state.attributes.friendly_name == "Dima" %} {{"\U0001F9D4"}} Дима прибыл домой!
{% elif trigger.from_state.attributes.friendly_name == "Sandra" %} {{"\U0001F467"}} Саша прибыла домой!
{% elif trigger.from_state.attributes.friendly_name == "Vova" %} {{"\U0001F471"}} Вова прибыл домой!
{%endif%}
ДЦ
ДЦ
ДЦ
S
message: >
{% if trigger.from_state.attributes.friendly_name == "Dima" %} {{"\U0001F9D4"}} Дима прибыл домой!
{% elif trigger.from_state.attributes.friendly_name == "Sandra" %} {{"\U0001F467"}} Саша прибыла домой!
{% elif trigger.from_state.attributes.friendly_name == "Vova" %} {{"\U0001F471"}} Вова прибыл домой!
{%endif%}
{{"\U0001F9D4"}} {{ trigger.from_state.attributes.friendly_name }} прибыл домой!ДЦ
{{"\U0001F9D4"}} {{ trigger.from_state.attributes.friendly_name }} прибыл домой!ДЦ
{{"\U0001F9D4"}} {{ trigger.from_state.attributes.friendly_name }} прибыл домой!# ##################################
# Hall Big - Domofon Auto Open On Arrival
# ##################################
- alias: hall_big_domofon_auto_open_on_arrival
initial_state: 'true'
trigger:
- platform: state
entity_id: person.dima
to: 'home'
- platform: state
entity_id: person.sandra
to: 'home'
- platform: state
entity_id: person.vova
to: 'home'
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.domofon_auto_open_once
state: 'off'
- condition: state
entity_id: input_boolean.domofon_auto_open
state: 'off'
- condition: template
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
action:
- service: notify.telegram
data_template:
message: >
{% if trigger.from_state.attributes.friendly_name == "Dima" %} {{"\U0001F9D4"}} Дима прибыл домой!
{% elif trigger.from_state.attributes.friendly_name == "Sandra" %} {{"\U0001F467"}} Саша прибыла домой!
{% elif trigger.from_state.attributes.friendly_name == "Vova" %} {{"\U0001F471"}} Вова прибыл домой!
{%endif%}
- service_template: >
{% if trigger.from_state.attributes.friendly_name != "Babayka"%} notify.telegram_{{ trigger.from_state.attributes.friendly_name|lower }}
{%else%} script.noop
{%endif%}
data_template:
message: "\U0001F4DE Домофон: Автооткрытие включено на 15мин! {% if is_state('binary_sensor.bottom_lock','off') or is_state('binary_sensor.upper_lock','off') %}Закрыт{%if is_state('binary_sensor.bottom_lock','off') %} нижний{%endif%}{%if is_state('binary_sensor.upper_lock','off')%} и верхний{%endif%} замок{%endif%}"
- service: script.turn_on
entity_id: script.domofon_mute_toggle
- service: script.turn_on
entity_id: script.domofon_auto_open_once_toggle
- delay: '00:15:00'
- service: script.turn_on
entity_id: script.domofon_check
ДЦ
DD
ДЦ
ДЦ
DD
ДЦ
ДЦ