148 lines
4.5 KiB
YAML
148 lines
4.5 KiB
YAML
- id: '1700660686552'
|
||
alias: Откл термопот, если меньше 900kwh
|
||
description: ''
|
||
trigger:
|
||
- platform: numeric_state
|
||
entity_id: sensor.termopot_power
|
||
below: 900
|
||
for:
|
||
hours: 0
|
||
minutes: 20
|
||
seconds: 0
|
||
condition: []
|
||
action:
|
||
- service: switch.turn_off
|
||
target:
|
||
entity_id: switch.termopot
|
||
mode: single
|
||
- id: '1705247080932'
|
||
alias: Необходимо убрать бак с водой
|
||
description: ''
|
||
trigger:
|
||
- platform: state
|
||
entity_id:
|
||
- vacuum.dreame_mc1808_044c_robot_cleaner_2
|
||
attribute: clean.water_box
|
||
to: '1'
|
||
condition:
|
||
- condition: or
|
||
conditions:
|
||
- condition: state
|
||
entity_id: vacuum.dreame_mc1808_044c_robot_cleaner_2
|
||
attribute: vacuum.status_desc
|
||
state: docked
|
||
- condition: state
|
||
entity_id: vacuum.dreame_mc1808_044c_robot_cleaner_2
|
||
attribute: vacuum.status_desc
|
||
state: Charging
|
||
action:
|
||
- service: notify.telegram_id_1
|
||
metadata: {}
|
||
data:
|
||
message: Необходимо убрать бак с водой
|
||
title: Бак с водой.
|
||
mode: restart
|
||
- id: '1735571592564'
|
||
alias: ntf|tg|bosh|end_salt
|
||
description: ''
|
||
triggers:
|
||
- trigger: state
|
||
entity_id:
|
||
- timer.timer_cool_washer
|
||
from: idle
|
||
to: active
|
||
conditions:
|
||
- condition: and
|
||
conditions:
|
||
- condition: state
|
||
entity_id: binary_sensor.day_time
|
||
state: 'on'
|
||
actions:
|
||
- choose:
|
||
- conditions:
|
||
- condition: and
|
||
conditions:
|
||
- condition: state
|
||
entity_id: device_tracker.google_maps_108918666344169166438
|
||
state: not_home
|
||
- condition: state
|
||
entity_id: device_tracker.google_maps_118311730364158481019
|
||
state: home
|
||
sequence:
|
||
- repeat:
|
||
sequence:
|
||
- delay:
|
||
hours: 0
|
||
minutes: 0
|
||
seconds: 10
|
||
milliseconds: 0
|
||
- action: telegram_bot.send_message
|
||
data:
|
||
message: '{{"\U00002705"}}Сушка завершена, нужно достать бельё{{"\U00002705"}}
|
||
|
||
Осталось время: {{ state_attr (''timer.timer_cool_washer'',''duration'')
|
||
}} '
|
||
target: 330380285
|
||
inline_keyboard: " {{'↩'}} Главное меню:/menu_back, {{'\U0001F5D1'}}
|
||
Прочитано:/menu_hide"
|
||
while:
|
||
- condition: state
|
||
entity_id: timer.timer_cool_washer
|
||
state: active
|
||
alias: Лена дома, Денис не дома
|
||
- conditions:
|
||
- condition: state
|
||
entity_id: device_tracker.google_maps_108918666344169166438
|
||
state: home
|
||
sequence:
|
||
- repeat:
|
||
sequence:
|
||
- delay:
|
||
hours: 0
|
||
minutes: 0
|
||
seconds: 10
|
||
milliseconds: 0
|
||
- action: telegram_bot.send_message
|
||
data:
|
||
message: '{{"\U00002705"}}Сушка завершена, нужно достать бельё{{"\U00002705"}}
|
||
|
||
Осталось время: {{ state_attr (''timer.timer_cool_washer'',''duration'')
|
||
}} '
|
||
target: 102879274
|
||
inline_keyboard: " {{'↩'}} Главное меню:/menu_back, {{'\U0001F5D1'}}
|
||
Прочитано:/menu_hide"
|
||
while:
|
||
- condition: state
|
||
entity_id: timer.timer_cool_washer
|
||
state: active
|
||
alias: Денис дома
|
||
- conditions:
|
||
- condition: and
|
||
conditions:
|
||
- condition: state
|
||
entity_id: device_tracker.google_maps_108918666344169166438
|
||
state: not_home
|
||
- condition: state
|
||
entity_id: device_tracker.google_maps_118311730364158481019
|
||
state: not_home
|
||
sequence:
|
||
- repeat:
|
||
sequence:
|
||
- delay:
|
||
hours: 0
|
||
minutes: 0
|
||
seconds: 10
|
||
milliseconds: 0
|
||
- action: telegram_bot.send_message
|
||
data:
|
||
message: '{{"\U00002705"}}Сушка завершена, нужно достать бельё{{"\U00002705"}}'
|
||
target: 102879274
|
||
inline_keyboard: " {{'↩'}} Главное меню:/menu_back, {{'\U0001F5D1'}}
|
||
Прочитано:/menu_hide"
|
||
while:
|
||
- condition: state
|
||
entity_id: timer.timer_cool_washer
|
||
state: active
|
||
alias: Лена и Денис не дома
|
||
mode: single
|