Files
home-assistant/includes/packages/notifications_telegram.yaml
T

660 lines
35 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
notifications_telegram:
#таймеры для уведомлений
#стиралка
timer:
timer_cool_washer:
name: "Таймер времени охлаждения белья в стиралке"
duration: '04:00:00'
automation:
#автоматизация таймеров для уведомлений
#стиралка
- alias: tmr|wshr|cool_duration_on
description: Запуск таймера продолжительности охлаждения белья
triggers:
- trigger: state
entity_id:
- sensor.stiralnaia_mashina_s_gorizontalnoi_zagruzkoi_run_state
from: Завершено
to: Охлаждение
conditions: []
actions:
- action: timer.start
metadata: {}
data: {}
target:
entity_id: timer.timer_cool_washer
mode: single
- alias: tmr|wshr|cool_duration_off
description: Остановить таймер продолжительности охлаждения белья
triggers:
- trigger: state
entity_id:
- sensor.stiralnaia_mashina_s_gorizontalnoi_zagruzkoi_run_state
from: Охлаждение
to: null
conditions: []
actions:
- action: timer.finish
metadata: {}
data: {}
target:
entity_id: timer.timer_cool_washer
mode: single
################################################################################
#home_assistant
- id: ntf|ha_start_message
alias: ntf|ha_start_message
initial_state: true
trigger:
- platform: homeassistant
event: start
action:
- delay:
hours: 0
minutes: 1
seconds: 15
milliseconds: 0
- action: telegram_bot.send_message
data:
# ЗАМЕНЕНО: target -> chat_id
chat_id: -1002006010424
message: |
{{"\U0001F567"}} Зафиксирован запуск HA в {{ states('sensor.time') }} {{"\U0001F567"}}
{{'\U0001F30D'}}Состояние proxmox:
{{'\U0001F321'}}CPU | {{'\U000023EB'}}CPU | {{'\U0001F4DD'}} RAM
{{ states ('sensor.proxmox_cpu_temperature') }} {{"\U00002103"}} | {{ states ('sensor.node_pr_cpu_used') | round(2)}} % | {{ states ('sensor.node_pr_memory_used') | round(2) }} GB
{{'\U0001F4BD'}}Disk |{{'\U000023F1'}}UpTime
{{ states ('sensor.node_pr_disk_used_percentage') | round(2) }} % | {% set s = (as_timestamp (now()) -as_timestamp(states('sensor.node_pr_last_boot')))|int(0) %}{{ '{:d}д {:02d}:{:02d}'.format (s // 86400, s % 86400 // 3600, s % 3600 // 60, s % 60) }}
{{"\U0001F4BF"}}Smb | {{"\U0001F4FA"}}Win | {{"\U0001F4FA"}}lmp-trcr | {{"\U0001F4FA"}}ngnix
{{ states ('binary_sensor.lxc_docker_101_status') }}|{{ states ('binary_sensor.qemu_wni10forjob_105_status') }}|{{ states ('binary_sensor.qemu_lampa_traccar_102_status') }}|{{ states ('binary_sensor.lxc_nginxproxymanager_108_status') }}
inline_keyboard:
- '{{''\U000021A9''}} Главное меню:/menu_back , {{''\U000021AA''}} Proxmox:/prxmx_control'
- '{{''\U0001F5D1''}} Прочитано:/menu_hide'
- id: ntf|send_auto_weather
alias: ntf|send_auto_weather
initial_state: true
trigger:
- platform: time
at: "07:20:00"
- platform: time
at: "17:15:00"
enabled: true
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: telegram_bot.send_message
data:
target: [6265196444, 102879274]
message: |
{{"\U0001F308"}} Погода:
{{"\U0001FA9F"}}За окном: {%- set current = states('sensor.openweathermap_weather_code')|int %} {%- set conditions={'Туман \U0001F32B': [701, 741], 'Гроза \U0001F329': [210, 211, 212, 221], 'Дождь/Гроза \U000026C8': [200, 201, 202, 230, 231, 232], 'Облачно \U000026C5': [801, 802, 803, 804], 'Дождь \U00002614': [504, 314, 502, 503, 522, 300, 301, 302, 310, 311, 312, 313, 500, 501, 520, 521, 906], 'Снег \U00002744': [600, 601, 602, 611, 612, 620, 621, 622], 'Снег с дождём \U00002614\U00002744': [511, 615, 616], 'Ясно \U00002600': [800], 'Ветер \U0001F4A8': [905, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961], 'Внимание \U000026A0': [711, 721, 731, 751, 761, 762, 771, 900, 901, 962, 903, 904] } %} {%- for condition, value in conditions.items() %} {%- if current in value %} {{- " "+condition}} {%- endif %} {%- endfor %}
{{"\U0001F321"}}Температура: {{- " "+state_attr('weather.openweathermap','temperature')|string }} {{"\U00002103"}}
{{"\U0001F4A8"}}Ветер: {{ state_attr('weather.openweathermap', 'wind_speed') | float }} км/ч {%- if state_attr('weather.openweathermap', 'wind_speed') | float < 1 %} - Штиль {%- elif state_attr('weather.openweathermap', 'wind_speed') | float < 5 %} - Тихий {%- elif state_attr('weather.openweathermap', 'wind_speed') | float < 11 %} - Легкий {%- elif state_attr('weather.openweathermap', 'wind_speed') | float< 19 %} - Слабый {%- elif state_attr('weather.openweathermap', 'wind_speed') | float < 28 %} - Умеренный {%- elif state_attr('weather.openweathermap','wind_speed') | float < 38 %} - Свежий {%- elif state_attr('weather.openweathermap', 'wind_speed') | float < 49 %} - Сильный {%- elif state_attr('weather.openweathermap', 'wind_speed') | float < 61 %} - Крепкий {%- elif state_attr('weather.openweathermap', 'wind_speed') |float < 74 %} - Очень крепкий {%- elif state_attr('weather.openweathermap', 'wind_speed') | float < 88 %} - Шторм {%- elif state_attr('weather.openweathermap', 'wind_speed') | float < 102 %} - Сильный шторм {%- elif state_attr('weather.openweathermap', 'wind_speed') |float < 117 %} - Жестокий шторм {%- elif state_attr('weather.openweathermap', 'wind_speed') | float > 117 %} - Ураган {%- endif %}
⚠ PM10: {{states ('sensor.narodmon_particulate_matter')}} мкг/м
⌚ Почасовой прогноз:
{{state_attr('sensor.forecast_hour','datetime0')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition0') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔ С
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature0')}}°C, {{state_attr('sensor.forecast_hour','wind_speed0')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability0')}} %
{{state_attr('sensor.forecast_hour','datetime1')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition1') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈ М
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔ Сн
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature1')}}°C, {{state_attr('sensor.forecast_hour','wind_speed1')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability1')}} %
{{state_attr('sensor.forecast_hour','datetime2')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition2') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈ М
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔ Сн
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature2')}}°C, {{state_attr('sensor.forecast_hour','wind_speed2')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability2')}} %
{{state_attr('sensor.forecast_hour','datetime3')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition3') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature3')}}°C, {{state_attr('sensor.forecast_hour','wind_speed3')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability3')}} %
{{state_attr('sensor.forecast_hour','datetime4')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition4') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈ и
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature4')}}°C, {{state_attr('sensor.forecast_hour','wind_speed4')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability4')}} %
{{state_attr('sensor.forecast_hour','datetime5')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition5') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔ Сн
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature5')}}°C, {{state_attr('sensor.forecast_hour','wind_speed5')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability5')}} %
{{state_attr('sensor.forecast_hour','datetime6')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition6') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature4')}}°C, {{state_attr('sensor.forecast_hour','wind_speed6')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability6')}} %
{{state_attr('sensor.forecast_hour','datetime7')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition7') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔ С
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature7')}}°C, {{state_attr('sensor.forecast_hour','wind_speed7')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability7')}} %
{{state_attr('sensor.forecast_hour','datetime8')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition8') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature8')}}°C, {{state_attr('sensor.forecast_hour','wind_speed8')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability8')}} %
{{state_attr('sensor.forecast_hour','datetime9')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition9') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature9')}}°C, {{state_attr('sensor.forecast_hour','wind_speed9')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability9')}} %
{{state_attr('sensor.forecast_hour','datetime10')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition10') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature10')}}°C, {{state_attr('sensor.forecast_hour','wind_speed10')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability10')}} %
{{state_attr('sensor.forecast_hour','datetime11')|as_timestamp()|timestamp_custom('%d.%m|%H:%M')}}
{% set c = state_attr('sensor.forecast_hour','condition11') %}
{%- if c == 'clear-night' %}🌟
{%- elif c == 'cloudy' %}☁️
{%- elif c == 'exceptional' %}⚠️
{%- elif c == 'fog' %}🌫
{%- elif c == 'hail' %}☄
{%- elif c == 'lightning' %}⚡️
{%- elif c == 'lightning-rainy' %}⛈
{%- elif c == 'partlycloudy' %}⛅️
{%- elif c == 'pouring' %}⛈
{%- elif c == 'rainy' %}☔
{%- elif c == 'snowy' %}❄️
{%- elif c == 'snowy-rainy' %}❄️/☔
{%- elif c == 'sunny' %}☀️
{%- elif c == 'windy' %}💨
{%- else%} Не определено {%endif%} {{state_attr('sensor.forecast_hour','temperature11')}}°C, {{state_attr('sensor.forecast_hour','wind_speed11')}} км/ч, ☔ {{state_attr('sensor.forecast_hour','precipitation_probability11')}} %
inline_keyboard:
- '{{"\U0001F553"}} Почасовой прогноз:/wthr_h_control, {{''\U0001F5D3''}} Ежедневный прогноз:/wthr_d_control'
- '{{''\U000021A9''}} Главное меню:/menu_back , {{''\U000021AA''}} Обновить:/wthr_control'
- '{{''\U0001F5D1''}} Прочитано:/menu_hide'
################################################################################
#торренты
################################################################################
#стиральная машина
################################################################################
#Термопот
################################################################################
#Прихожая
- alias: ntf|door_open
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.isa_dw2hl_47b2_magnet_sensor
from: "off"
to: "on"
condition:
- condition: state
entity_id: binary_sensor.0x00158d000707efdf_motion
state: "off"
action:
- service: telegram_bot.send_message
metadata: {}
data:
message: "{{\"\\U0001F567\"}} Входная дверь открыта {{ states('sensor.time') }} "
inline_keyboard:
- '{{''\U000021A9''}} Главное меню:/menu_back , {{''\U0001F5D1''}} Прочитано:/menu_hide'
- alias: ntf|door_lock
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.isa_dw2hl_47b2_magnet_sensor
from: "on"
to: "off"
condition: []
action:
- service: telegram_bot.send_message
metadata: {}
data:
message: "{{\"\\U0001F567\"}} Входная дверь закрыта {{ states('sensor.time') }} "
inline_keyboard:
- '{{''\U000021A9''}} Главное меню:/menu_back , {{''\U0001F5D1''}} Прочитано:/menu_hide'
- alias: ntf|door_open_5min
description: ""
mode: single
triggers:
- entity_id:
- binary_sensor.isa_dw2hl_47b2_magnet_sensor
from: null
to: "on"
for:
hours: 0
minutes: 3
seconds: 0
trigger: state
conditions: []
actions:
- repeat:
sequence:
- metadata: {}
data:
message: >-
{{"\U00002757"}} Входная дверь открыта больше 5
минут{{"\U00002757"}} {{ states('sensor.time') }}
inline_keyboard:
- '{{''\U000021A9''}} Отмена уведомления:/toggle_lb_off_door'
- '{{''\U000021A9''}} Главное меню:/menu_back , {{''\U0001F5D1''}} Прочитано:/menu_hide'
action: telegram_bot.send_message
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
while:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.isa_dw2hl_47b2_magnet_sensor
state: "on"
################################################################################
#Ванная
################################################################################
#ping
#nem.dddennnisss.ru
- alias: ntf|connect_down_nem.dddennnisss.ru
description: ""
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.nem_dddennnisss_ru
from: "on"
to: "off"
for:
hours: 0
minutes: 3
seconds: 0
condition:
- condition: state
entity_id: binary_sensor.day_time
state: "on"
action:
- service: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Пропал коннект до nem.dddennnisss.ru
#nem.dddennnisss.ru
- alias: ntf|connect_up_nem.dddennnisss.ru
description: ""
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.nem_dddennnisss_ru
from: "off"
to: "on"
for:
hours: 0
minutes: 3
seconds: 0
condition:
- condition: state
entity_id: binary_sensor.day_time
state: "on"
action:
- service: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Поднялся коннект до nem.dddennnisss.ru
#176.222.54.79
- alias: ntf|connect_down_176.222.54.79
description: ""
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.176_222_54_79
from: "on"
to: "off"
for:
hours: 0
minutes: 1
seconds: 30
condition:
- condition: state
entity_id: binary_sensor.day_time
state: "on"
action:
- service: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Пропал коннект до 176.222.54.79
- alias: ntf|connect_up_176.222.54.79
description: ""
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.176_222_54_79
from: "off"
to: "on"
for:
hours: 0
minutes: 3
seconds: 0
condition:
- condition: state
entity_id: binary_sensor.day_time
state: "on"
action:
- service: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Поднялся коннект до 176.222.54.79
################################################################################
#Датчики протечки
#Обнаружена протечка
#noname датчик
- alias: ntf|water_leak_noname_on
description: ""
mode: single
triggers:
- trigger: state
entity_id:
- binary_sensor.0xa4c1386278c84377_water_leak
from: "off"
to: "on"
conditions: []
actions:
- action: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Обнаружена протечка! Датчик noname
- alias: ntf|water_leak_noname_off
description: ""
mode: single
triggers:
- trigger: state
entity_id:
- binary_sensor.0xa4c1386278c84377_water_leak
from: "on"
to: "off"
for:
hours: 0
minutes: 1
seconds: 0
conditions: []
actions:
- action: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Протечка устранена! Датчик noname
- action: notify.mobile_app_m2007j3sg
metadata: {}
data:
title: Датчик noname
message: "Протечка устранена!"
#aqara
- alias: ntf|water_leak_aqara_on
description: ""
mode: single
triggers:
- trigger: state
entity_id:
- binary_sensor.0x00158d000af3c1dd_water_leak
from: "off"
to: "on"
conditions: []
actions:
- action: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Обнаружена протечка! Датчик aqara
- action: notify.mobile_app_m2007j3sg
metadata: {}
data:
title: Датчик aqara
message: "Обнаружена протечка!"
- alias: ntf|water_leak_aqara_off
description: ""
mode: single
triggers:
- trigger: state
entity_id:
- binary_sensor.0x00158d000af3c1dd_water_leak
from: "on"
to: "off"
for:
hours: 0
minutes: 1
seconds: 0
conditions: []
actions:
- action: telegram_bot.send_message
data:
target:
- 102879274
inline_keyboard:
- >-
{{'\U000021A9'}} Главное меню:/menu_back , {{'\U0001F5D1'}}
Прочитано:/menu_hide
message: Протечка устранена! Датчик aqara
- action: notify.mobile_app_m2007j3sg
metadata: {}
data:
title: Датчик aqara
message: "Протечка устранена!"