1479 lines
40 KiB
YAML
1479 lines
40 KiB
YAML
- id: start_screen_on_presence
|
||
alias: Включение монитора Андрея по датчику присутствия
|
||
mode: restart
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.presence_apollo_msr_2_radar_target
|
||
to: 'on'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: home
|
||
- condition: state
|
||
entity_id: input_boolean.auto_andrey_desk
|
||
state: 'on'
|
||
- condition: time
|
||
after: 06:00:00
|
||
before: 01:00:00
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: device_tracker.savoia_ethernet
|
||
state: home
|
||
then:
|
||
- action: mqtt.publish
|
||
data:
|
||
payload: WAKE
|
||
topic: ai_laptop
|
||
retain: true
|
||
- id: stop_screen_on_presence
|
||
alias: Выключение монитора Андрея по датчику присутствия
|
||
mode: restart
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.presence_apollo_msr_2_radar_target
|
||
to: 'off'
|
||
for: 00:06:00
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: home
|
||
- condition: state
|
||
entity_id: input_boolean.auto_andrey_desk
|
||
state: 'on'
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: device_tracker.savoia_ethernet
|
||
state: home
|
||
then:
|
||
- action: mqtt.publish
|
||
data:
|
||
payload: LOCK
|
||
topic: ai_laptop
|
||
retain: true
|
||
- id: lock_screen_on_andrey_leaving
|
||
alias: Блокировка ноутбука Андрея при его уходе
|
||
mode: restart
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: person.andrey_sitnik
|
||
to:
|
||
- not_home
|
||
- home
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: home
|
||
then:
|
||
- action: input_boolean.turn_on
|
||
target:
|
||
entity_id: input_boolean.auto_andrey_desk
|
||
else:
|
||
- action: mqtt.publish
|
||
data:
|
||
payload: LOCK
|
||
topic: ai_laptop
|
||
retain: true
|
||
- action: input_boolean.turn_off
|
||
target:
|
||
entity_id: input_boolean.auto_andrey_desk
|
||
- id: sync_auto_desk_and_cat_alone
|
||
alias: Выключать авто-стол, когда мы уезжаем
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.cat_alone
|
||
- trigger: state
|
||
entity_id: input_boolean.other_people
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
then:
|
||
- action: input_boolean.turn_on
|
||
target:
|
||
entity_id: input_boolean.auto_andrey_desk
|
||
else:
|
||
- action: input_boolean.turn_off
|
||
target:
|
||
entity_id: input_boolean.auto_andrey_desk
|
||
- id: open_blinds_dawn
|
||
alias: Открыть шторы на рассвете
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: sensor.weather_sun_next_dawn
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- or:
|
||
- condition: time
|
||
weekday:
|
||
- mon
|
||
- condition: time
|
||
weekday:
|
||
- tue
|
||
- condition: time
|
||
weekday:
|
||
- wed
|
||
- condition: time
|
||
weekday:
|
||
- thu
|
||
- condition: time
|
||
weekday:
|
||
- fri
|
||
actions:
|
||
- action: cover.open_cover
|
||
target:
|
||
entity_id:
|
||
- cover.blind_ikea_bedroom
|
||
- cover.blind_ikea_lounge
|
||
- id: close_bedroom_blind_morning
|
||
alias: Закрыть штору в спальне утром
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: '10:00:00'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: numeric_state
|
||
entity_id: sensor.weather_accuweather_realfeel_temperature
|
||
below: 14
|
||
actions:
|
||
- action: cover.close_cover
|
||
target:
|
||
entity_id: cover.blind_ikea_bedroom
|
||
- id: close_bedroom_blind_evening
|
||
alias: Закрыть штору в спалье вечером
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: input_datetime.eddie_sleep
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: numeric_state
|
||
entity_id: sensor.weather_accuweather_realfeel_temperature
|
||
below: 14
|
||
actions:
|
||
- action: cover.close_cover
|
||
target:
|
||
entity_id: cover.blind_ikea_bedroom
|
||
- id: close_lounge_blind_night
|
||
alias: Закрыть штору в зале ночью
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: 00:00:00
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: numeric_state
|
||
entity_id: sensor.weather_accuweather_realfeel_temperature
|
||
below: 14
|
||
actions:
|
||
- action: cover.close_cover
|
||
target:
|
||
entity_id: cover.blind_ikea_lounge
|
||
- id: turn_on_everything_on_coming
|
||
alias: Включить отопление, когда пришли
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.home_empty
|
||
to: 'off'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
actions:
|
||
- action: switch.turn_on
|
||
target:
|
||
entity_id:
|
||
- switch.plug_group_bathroom
|
||
- action: cover.open_cover
|
||
target:
|
||
entity_id: cover.blind_ikea_lounge
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.heating
|
||
state: 'on'
|
||
then:
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id: switch.heater_micraplus_25_main_away_mode
|
||
- action: water_heater.set_operation_mode
|
||
target:
|
||
entity_id: water_heater.home_domestic_hot_water_0
|
||
data:
|
||
operation_mode: TIME_CONTROLLED
|
||
- action: climate.set_temperature
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
data:
|
||
temperature: 22
|
||
- id: night_heating_mode
|
||
alias: Выключать отопление ночью
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.everyone_sleep
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.heating
|
||
state: 'on'
|
||
actions:
|
||
- action: climate.set_temperature
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
data:
|
||
temperature: "{% if states('input_boolean.everyone_sleep') == 'on' %}\n 18\n\
|
||
{% else %}\n 22\n{% endif %}\n"
|
||
- id: auto_off_bedroom_heating
|
||
alias: Автовыключение обогревателя ног через час
|
||
mode: restart
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: switch.plug_ikea_bedroom_heating
|
||
from: 'off'
|
||
to: 'on'
|
||
for:
|
||
hours: 1
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: switch.plug_ikea_bedroom_heating
|
||
state: 'on'
|
||
actions:
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id: switch.plug_ikea_bedroom_heating
|
||
- id: prevent_bacteria_heating_pipes
|
||
alias: Включения отопления каждый месяц, чтобы бактерии не размножались
|
||
triggers:
|
||
- trigger: time
|
||
at: 08:00:00
|
||
conditions:
|
||
- condition: template
|
||
value_template: '{{ now().day == 1 }}'
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.home_empty
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.heating
|
||
state: 'off'
|
||
actions:
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id: switch.heater_micraplus_25_main_away_mode
|
||
- action: climate.turn_on
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
- action: climate.set_temperature
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
data:
|
||
temperature: 30
|
||
- delay: 00:10:00
|
||
- action: climate.set_temperature
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
data:
|
||
temperature: 22
|
||
- action: climate.turn_off
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
- id: ac_bedroom_mornig
|
||
alias: Выключение кондиционера спальни утром
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: 08:30:00
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- action: climate.turn_off
|
||
target:
|
||
entity_id: climate.ac_bedroom
|
||
- id: ac_bedroom_evening
|
||
alias: Включение кондиционера спальни вечером
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: input_datetime.eddie_sleep
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.child_home
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.cooling
|
||
state: 'on'
|
||
actions:
|
||
- action: climate.turn_on
|
||
target:
|
||
entity_id: climate.ac_bedroom
|
||
- action: climate.set_hvac_mode
|
||
target:
|
||
entity_id: climate.ac_bedroom
|
||
data:
|
||
hvac_mode: cool
|
||
- id: ac_hall_night
|
||
alias: Выключение кондиционера зала ночью
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: input_datetime.sleep_start
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- action: climate.turn_off
|
||
target:
|
||
entity_id: climate.ac_hall
|
||
- id: ac_hall_morning
|
||
alias: Включение кондиционера зала утром
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: input_datetime.sleep_end
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cooling
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: binary_sensor.door_ikea_balcony_left_contact
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: binary_sensor.door_ikea_balcony_right_contact
|
||
state: 'off'
|
||
actions:
|
||
- action: climate.turn_on
|
||
target:
|
||
entity_id: climate.ac_hall
|
||
- action: climate.set_hvac_mode
|
||
target:
|
||
entity_id: climate.ac_hall
|
||
data:
|
||
hvac_mode: cool
|
||
- id: ac_hall_enter
|
||
alias: Включение кондиционера, когда мы входим
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.home_empty
|
||
to: 'off'
|
||
- trigger: state
|
||
entity_id: person.andrey_sitnik
|
||
from: not_home
|
||
to: near_home
|
||
- trigger: state
|
||
entity_id: person.ekaterina_sitnik
|
||
from: not_home
|
||
to: near_home
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cooling
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: binary_sensor.door_ikea_balcony_left_contact
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: binary_sensor.door_ikea_balcony_right_contact
|
||
state: 'off'
|
||
actions:
|
||
- action: climate.turn_on
|
||
target:
|
||
entity_id: climate.ac_hall
|
||
- action: climate.set_hvac_mode
|
||
target:
|
||
entity_id: climate.ac_hall
|
||
data:
|
||
hvac_mode: cool
|
||
- id: switch_cooling
|
||
alias: Включить кондиционера при включении настройки
|
||
mode: restart
|
||
trigger:
|
||
- trigger: state
|
||
entity_id: input_boolean.cooling
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.cooling
|
||
state: 'on'
|
||
then:
|
||
- action: input_boolean.turn_off
|
||
target:
|
||
entity_id: input_boolean.heating
|
||
- action: climate.turn_on
|
||
target:
|
||
entity_id: climate.ac_hall
|
||
else:
|
||
- action: climate.turn_off
|
||
target:
|
||
entity_id: climate.ac_hall
|
||
- id: switch_heater
|
||
alias: Включить отопление при включении настройки отопления
|
||
mode: restart
|
||
trigger:
|
||
- trigger: state
|
||
entity_id: input_boolean.heating
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.heating
|
||
state: 'on'
|
||
then:
|
||
- action: input_boolean.turn_off
|
||
target:
|
||
entity_id: input_boolean.cooling
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id: switch.heater_micraplus_25_main_away_mode
|
||
- action: climate.turn_on
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
- action: climate.set_temperature
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
data:
|
||
temperature: 22
|
||
else:
|
||
- action: climate.turn_off
|
||
target:
|
||
entity_id: climate.heater_micraplus_25_zone_1_climate
|
||
- id: home_empty_tracker
|
||
alias: Отслеживание когда все ушли из дома
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: person.andrey_sitnik
|
||
from: near_home
|
||
to: not_home
|
||
- trigger: state
|
||
entity_id: person.ekaterina_sitnik
|
||
from: near_home
|
||
to: not_home
|
||
- trigger: state
|
||
entity_id: device_tracker.ip_atocha
|
||
- trigger: state
|
||
entity_id: device_tracker.ip_pixel_7a
|
||
- trigger: state
|
||
entity_id: input_boolean.guests
|
||
- trigger: state
|
||
entity_id: input_boolean.other_people
|
||
conditions:
|
||
- condition: state
|
||
entity_id: device_tracker.ucg_max
|
||
state: home
|
||
- condition: state
|
||
entity_id: sensor.u7_pro_xgs_state
|
||
state: connected
|
||
actions:
|
||
- if:
|
||
- or:
|
||
- condition: state
|
||
entity_id: device_tracker.ip_atocha
|
||
state: home
|
||
- condition: state
|
||
entity_id: device_tracker.ip_pixel_7a
|
||
state: home
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.guests
|
||
state: 'on'
|
||
then:
|
||
- action: input_boolean.turn_off
|
||
target:
|
||
entity_id: input_boolean.home_empty
|
||
else:
|
||
- action: input_boolean.turn_on
|
||
target:
|
||
entity_id: input_boolean.home_empty
|
||
- id: turn_off_on_leaving
|
||
alias: Выключить всё, когда все ушли
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.home_empty
|
||
to: 'on'
|
||
- trigger: state
|
||
entity_id: person.andrey_sitnik
|
||
from: near_home
|
||
to: not_home
|
||
- trigger: state
|
||
entity_id: person.ekaterina_sitnik
|
||
from: near_home
|
||
to: not_home
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.home_empty
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
actions:
|
||
- action: script.turn_off_everything
|
||
- action: water_heater.set_operation_mode
|
||
target:
|
||
entity_id: water_heater.home_domestic_hot_water_0
|
||
data:
|
||
operation_mode: 'OFF'
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.heating
|
||
state: 'on'
|
||
then:
|
||
- action: switch.turn_on
|
||
target:
|
||
entity_id: switch.heater_micraplus_25_main_away_mode
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.cooling
|
||
state: 'on'
|
||
then:
|
||
- action: climate.turn_off
|
||
target:
|
||
entity_id:
|
||
- climate.ac_hall
|
||
- climate.ac_bedroom
|
||
- if:
|
||
- or:
|
||
- condition: state
|
||
entity_id: input_boolean.heating
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.cooling
|
||
state: 'on'
|
||
then:
|
||
- action: cover.close_cover
|
||
target:
|
||
entity_id: cover.blind_ikea_lounge
|
||
- id: mark_vacuum_started_today
|
||
alias: Отметить, что пылесос был запущен сегодня
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: vacuum.vacuum_roborock_q7_max
|
||
from: docked
|
||
to: cleaning
|
||
actions:
|
||
- action: input_boolean.turn_on
|
||
data:
|
||
entity_id: input_boolean.vacuum_was_run_today
|
||
- id: reset_vacuum_started_today
|
||
alias: Сбросить отметку о запуске пылесоса сегодня
|
||
triggers:
|
||
- trigger: time
|
||
at: 04:00:00
|
||
actions:
|
||
- action: input_boolean.turn_off
|
||
data:
|
||
entity_id: input_boolean.vacuum_was_run_today
|
||
- id: daily_vacuum_on_leaving
|
||
alias: Ежедневная уборка пылесосом когда все ушли
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.home_empty
|
||
to: 'on'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.vacuum_was_run_today
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: time
|
||
after: 08:40:00
|
||
before: '22:00:00'
|
||
actions:
|
||
- action: vacuum.start
|
||
target:
|
||
entity_id: vacuum.vacuum_roborock_q7_max
|
||
- id: turn_on_lights_on_door_open
|
||
alias: Включить свет при открытии двери
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.door_ikea_entrance_contact
|
||
from: 'off'
|
||
to: 'on'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
actions:
|
||
- action: light.turn_on
|
||
target:
|
||
entity_id: light.light_ikea_ceiling_entrance
|
||
- id: kitchen_light_on_motion
|
||
alias: Включить свет на кухне при движении
|
||
use_blueprint:
|
||
path: presence.yaml
|
||
input:
|
||
presence_sensor: binary_sensor.presence_tuya_kitchen_presence
|
||
night_scene: scene.kitchen_night
|
||
stop_helper: input_boolean.stop_kitchen
|
||
light:
|
||
entity_id: light.light_group_kitchen
|
||
- id: kitchen_wall_switch_buttons
|
||
alias: Управление светом на кухне с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: 4b07057170cdb07b760d2f31a4e0e5a5
|
||
light: light.light_group_kitchen
|
||
room: kitchen
|
||
scene_helper: input_number.kitchen_last_scene
|
||
stop_helper: input_boolean.stop_kitchen
|
||
direct_link: true
|
||
- id: reset_kitchen_light
|
||
alias: Яркий свет на кухне утром
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.everyone_sleep
|
||
to: 'off'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
actions:
|
||
- delay: 00:00:10
|
||
- action: scene.turn_on
|
||
target:
|
||
entity_id: scene.kitchen_full
|
||
data:
|
||
transition: false
|
||
- delay: 00:00:02
|
||
- action: light.turn_off
|
||
target:
|
||
entity_id: light.light_group_kitchen
|
||
data:
|
||
transition: false
|
||
- id: lounge_wall_switch_buttons
|
||
alias: Управление светом в зале с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: 3f13b7a4f814bac7b7f94f4a68a4aee1
|
||
light: light.light_aqara_t2_e27_rgb_lounge
|
||
room: lounge
|
||
scene_helper: input_number.lounge_last_scene
|
||
direct_link: true
|
||
- id: bathroom_light_on_motion
|
||
alias: Включить свет в ванной при движении
|
||
use_blueprint:
|
||
path: presence.yaml
|
||
input:
|
||
presence_sensor: binary_sensor.presence_tuya_bathroom_presence
|
||
night_scene: scene.bathroom_night
|
||
stop_helper: input_boolean.stop_bathroom
|
||
before_on:
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.everyone_sleep
|
||
state: 'off'
|
||
then:
|
||
- action: switch.turn_on
|
||
target:
|
||
entity_id: switch.wall_switch_yandex_bathroom_1
|
||
after_off:
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id: switch.wall_switch_yandex_bathroom_1
|
||
light:
|
||
entity_id: light.light_group_bathroom
|
||
- id: bathroom_wall_switch_buttons
|
||
alias: Управление светом в ванной с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: e0f9d156e55b2a79a46d334c2522d795
|
||
light: light.light_group_bathroom
|
||
room: bathroom
|
||
reverse: true
|
||
scene_helper: input_number.bathroom_last_scene
|
||
stop_helper: input_boolean.stop_bathroom
|
||
direct_link: true
|
||
before_on:
|
||
- action: switch.turn_on
|
||
target:
|
||
entity_id: switch.wall_switch_yandex_bathroom_1
|
||
after_off:
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id: switch.wall_switch_yandex_bathroom_1
|
||
- id: toilet_light_on_motion
|
||
alias: Включить свет в туалете при движении
|
||
use_blueprint:
|
||
path: presence.yaml
|
||
input:
|
||
presence_sensor: binary_sensor.presence_tuya_toilet_presence
|
||
night_scene: scene.toilet_night
|
||
stop_helper: input_boolean.stop_toilet
|
||
light:
|
||
entity_id: light.light_ikea_gu10_toilet
|
||
- id: entrance_light_on_motion
|
||
alias: Включить свет на входе при движении
|
||
use_blueprint:
|
||
path: presence.yaml
|
||
input:
|
||
presence_sensor: binary_sensor.presence_tuya_entrance_presence
|
||
night_scene: scene.entrance_night
|
||
stop_helper: input_boolean.stop_entrance
|
||
light:
|
||
entity_id: light.light_ikea_ceiling_entrance
|
||
- id: entrance_wall_switch_buttons
|
||
alias: Управление светом у входа с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: 4ecbee73df7092e59b71c4c360340352
|
||
light: light.light_ikea_ceiling_entrance
|
||
room: entrance
|
||
scene_helper: input_number.entrance_last_scene
|
||
stop_helper: input_boolean.stop_entrance
|
||
direct_link: true
|
||
long_off:
|
||
- action: script.turn_off_everything
|
||
- id: kate_wall_switch_buttons
|
||
alias: Управление светом в кабинете Кати с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: 1397c21e23f9d7221a9c1ef2c864bd06
|
||
light: light.light_group_kate
|
||
direct_link: true
|
||
room: kate
|
||
reverse: true
|
||
scene_helper: input_number.kate_last_scene
|
||
- id: andrey_wall_switch_buttons
|
||
alias: Управление светом в кабинете Андрея с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: c2f4768909c1d88ce70e0b83f87cec68
|
||
light: light.light_group_andrey
|
||
room: andrey
|
||
reverse: true
|
||
scene_helper: input_number.andrey_last_scene
|
||
extra_light: light.light_ikea_e27_rgb_andrey
|
||
after_off:
|
||
- action: light.turn_off
|
||
target:
|
||
entity_id:
|
||
- light.light_ikea_e27_rgb_andrey
|
||
- light.elgato_light_air_andrey
|
||
data:
|
||
transition: false
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.auto_andrey_desk
|
||
state: 'on'
|
||
then:
|
||
- action: mqtt.publish
|
||
data:
|
||
payload: LOCK
|
||
topic: ai_laptop
|
||
retain: true
|
||
- id: bedroom_wall_switch_buttons
|
||
alias: Управление светом в спальне с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: cf1aab04d291030894e3814a743a2152
|
||
light: light.light_group_bedroom
|
||
room: bedroom
|
||
scene_helper: input_number.bedroom_last_scene
|
||
before_on:
|
||
- action: script.bedroom_light_power_on
|
||
after_off:
|
||
- delay: 00:00:02
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id:
|
||
- switch.wall_switch_yandex_bedroom_1
|
||
- switch.plug_ikea_bedroom_light
|
||
- id: hall_wall_switch_buttons
|
||
alias: Управление светом в коридоре с помощью выключателя
|
||
use_blueprint:
|
||
path: wall-switch.yaml
|
||
input:
|
||
wall_switch: 28614872fff069cfbba7facf6e46e801
|
||
light: light.light_ikea_ceiling_hall
|
||
room: hall
|
||
scene_helper: input_number.hall_last_scene
|
||
- id: adaptive_lights_sync
|
||
alias: Управление сменой цвета ламп при переключении автоматизации
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.stop
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'on'
|
||
then:
|
||
- action: switch.turn_off
|
||
target:
|
||
entity_id: switch.adaptive_lighting_integration_adaptive_lights
|
||
else:
|
||
- action: switch.turn_on
|
||
target:
|
||
entity_id: switch.adaptive_lighting_integration_adaptive_lights
|
||
- id: night_mode_enable
|
||
alias: Включить ночной режим
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: input_datetime.sleep_start
|
||
actions:
|
||
- action: input_boolean.turn_on
|
||
target:
|
||
entity_id: input_boolean.everyone_sleep
|
||
- id: night_mode_disable
|
||
alias: Выключить ночной режим
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: input_datetime.sleep_end
|
||
actions:
|
||
- action: input_boolean.turn_off
|
||
target:
|
||
entity_id: input_boolean.everyone_sleep
|
||
- id: disable_fast_presence
|
||
alias: Экономить батарею датчиков присутствия
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.home_empty
|
||
to: 'on'
|
||
- trigger: state
|
||
entity_id: input_boolean.cat_alone
|
||
to: 'on'
|
||
- trigger: state
|
||
entity_id: input_boolean.everyone_sleep
|
||
to: 'on'
|
||
actions:
|
||
- action: select.select_option
|
||
target:
|
||
entity_id:
|
||
- select.presence_tuya_bathroom_motion_detection_mode
|
||
- select.presence_tuya_kitchen_motion_detection_mode
|
||
data:
|
||
option: only_pir
|
||
- id: enable_fast_presence
|
||
alias: Ускорить обнаружение в датчиках присутствия
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.home_empty
|
||
to: 'off'
|
||
- trigger: state
|
||
entity_id: input_boolean.cat_alone
|
||
to: 'off'
|
||
- trigger: state
|
||
entity_id: input_boolean.everyone_sleep
|
||
to: 'off'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.home_empty
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
actions:
|
||
- action: select.select_option
|
||
target:
|
||
entity_id:
|
||
- select.presence_tuya_bathroom_motion_detection_mode
|
||
- select.presence_tuya_kitchen_motion_detection_mode
|
||
data:
|
||
option: pir_and_radar
|
||
- id: notify_on_vacuum_unavailable
|
||
alias: Уведомление о недоступности пылесоса
|
||
triggers:
|
||
- trigger: time
|
||
at: '11:30:00'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: sensor.vacuum_roborock_q7_max_battery
|
||
state: unavailable
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- action: notify.mobile_app_atocha
|
||
data:
|
||
title: Робот-пылесос
|
||
message: Недоступен
|
||
- id: notify_cleaning_started
|
||
alias: Уведомить о начале уборки
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: vacuum.vacuum_roborock_q7_max
|
||
to: cleaning
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- action: notify.notify
|
||
data:
|
||
title: Робот-пылесос
|
||
message: Начал уборку
|
||
data:
|
||
clickAction: /lovelace/cleaning
|
||
- id: notify_cleaning_error
|
||
alias: Уведомить о ошибке уборки
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: sensor.vacuum_roborock_q7_max_vacuum_error
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: template
|
||
value_template: '{{ states(''sensor.vacuum_roborock_q7_max_vacuum_error'') not
|
||
in [''unavailable'', ''unknown'', ''none''] }}
|
||
|
||
'
|
||
actions:
|
||
- action: notify.notify
|
||
data:
|
||
title: Робот-пылесос
|
||
message: Уборка остановлена из-за ошибки {{ states('sensor.vacuum_roborock_q7_max_vacuum_error')
|
||
}}
|
||
- id: notify_cleaning_finished
|
||
alias: Уведомить о завершении уборки
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: vacuum.vacuum_roborock_q7_max
|
||
from:
|
||
- cleaning
|
||
- returning
|
||
- emptying_the_bin
|
||
to: docked
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- action: notify.notify
|
||
data:
|
||
title: Робот-пылесос
|
||
message: Закончил уборку
|
||
- id: notify_on_guest_morning
|
||
alias: Уведомление о том, что забыли выключить Гости
|
||
triggers:
|
||
- trigger: time
|
||
at: '11:30:00'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.guests
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: home
|
||
actions:
|
||
- action: notify.mobile_app_atocha
|
||
data:
|
||
title: Режим Гости
|
||
message: Включён
|
||
- id: notify_door_opened
|
||
alias: Уведомить об открытии двери
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.door_ikea_entrance_contact
|
||
from: 'off'
|
||
to: 'on'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- if:
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: not_home
|
||
then:
|
||
- delay: 00:00:15
|
||
- if:
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: not_home
|
||
then:
|
||
- action: notify.mobile_app_atocha
|
||
data:
|
||
title: Дверь
|
||
message: Открыта
|
||
- if:
|
||
- condition: state
|
||
entity_id: person.ekaterina_sitnik
|
||
state: not_home
|
||
then:
|
||
- delay: 00:00:15
|
||
- if:
|
||
- condition: state
|
||
entity_id: person.ekaterina_sitnik
|
||
state: not_home
|
||
then:
|
||
- action: notify.mobile_app_pixel_7a
|
||
data:
|
||
title: Дверь
|
||
message: Открыта
|
||
- id: notify_door_open_too_long
|
||
alias: Уведомить о двери открытой слишком долго
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.door_ikea_entrance_contact
|
||
from: 'off'
|
||
to: 'on'
|
||
for:
|
||
minutes: 10
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
actions:
|
||
- action: notify.mobile_app_atocha
|
||
data:
|
||
title: Дверь
|
||
message: Открыта более 10 минут
|
||
- if:
|
||
- condition: state
|
||
entity_id: person.ekaterina_sitnik
|
||
state: home
|
||
then:
|
||
- action: notify.mobile_app_pixel_7a
|
||
data:
|
||
title: Дверь
|
||
message: Открыта более 10 минут
|
||
- id: low_battery_notify
|
||
alias: Уведомить о разряде батареи
|
||
variables:
|
||
threshold: 30
|
||
sensors: "{% set result = namespace(sensors=[]) %} {% for state in states.sensor\
|
||
\ | selectattr('attributes.device_class', '==', 'battery') %}\n {% if 0 <=\
|
||
\ state.state | int(-1) < threshold | int %}\n {% set result.sensors = result.sensors\
|
||
\ + [state.name ~ ' (' ~ state.state ~ ' %)'] %}\n {% endif %}\n{% endfor %}\
|
||
\ {{result.sensors|join(', ')}}"
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: '10:00:00'
|
||
conditions:
|
||
- '{{ sensors != '''' }}'
|
||
actions:
|
||
- action: notify.mobile_app_atocha
|
||
data:
|
||
title: Дом
|
||
message: 'Садиться батарея: {{ sensors }}'
|
||
- id: co2_andrey_notification
|
||
alias: Уведомить Андрея о высоком уровне CO2
|
||
triggers:
|
||
- trigger: numeric_state
|
||
entity_id: sensor.presence_apollo_msr_2_co2
|
||
above: 1000
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: home
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- action: notify.mobile_app_atocha
|
||
data:
|
||
title: CO²
|
||
message: 'Высокий уровень: {{ states(''sensor.presence_apollo_msr_2_co2'') }}'
|
||
- id: notify_air_balcony
|
||
alias: Предупредить о плохом воздухе, когда проветриваем балкон
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.door_ikea_balcony_right_contact
|
||
to: 'on'
|
||
for: 00:05:00
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: numeric_state
|
||
entity_id: sensor.weather_waqi_air_quality_index
|
||
above: 50
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
actions:
|
||
- choose:
|
||
- conditions:
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: not_home
|
||
sequence:
|
||
- action: notify.mobile_app_atocha
|
||
data:
|
||
title: 'Качество воздуха: {{ states(''sensor.weather_waqi_air_quality_index'')
|
||
}}'
|
||
message: Лучше не проветривать сегодня
|
||
- conditions:
|
||
- condition: state
|
||
entity_id: person.ekaterina_sitnik
|
||
state: not_home
|
||
sequence:
|
||
- action: notify.mobile_app_pixel_7a
|
||
data:
|
||
title: 'Качество воздуха: {{ states(''sensor.weather_waqi_air_quality_index'')
|
||
}}'
|
||
message: Лучше не проветривать сегодня
|
||
- id: notify_air_quality_eddie
|
||
alias: Предупредить о плохом воздухе, когда забираем Эди
|
||
triggers:
|
||
- trigger: time
|
||
at: '16:20:00'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: numeric_state
|
||
entity_id: sensor.weather_waqi_air_quality_index
|
||
above: 50
|
||
- condition: numeric_state
|
||
entity_id: sensor.weather_accuweather_realfeel_temperature
|
||
below: 30
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.child_home
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- or:
|
||
- condition: time
|
||
weekday:
|
||
- mon
|
||
- condition: time
|
||
weekday:
|
||
- tue
|
||
- condition: time
|
||
weekday:
|
||
- wed
|
||
- condition: time
|
||
weekday:
|
||
- thu
|
||
- condition: time
|
||
weekday:
|
||
- fri
|
||
actions:
|
||
- action: notify.notify
|
||
data:
|
||
title: 'Качество воздуха: {{ states(''sensor.weather_waqi_air_quality_index'')
|
||
}}'
|
||
message: Лучше Эди не гулять
|
||
- id: notify_balcony_opened
|
||
alias: Уведомить об открытии балкона, когда нас нет
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.door_ikea_balcony_left_contact
|
||
from: 'off'
|
||
to: 'on'
|
||
- trigger: state
|
||
entity_id: binary_sensor.door_ikea_balcony_right_contact
|
||
from: 'off'
|
||
to: 'on'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.home_empty
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'on'
|
||
actions:
|
||
- action: notify.notify
|
||
data:
|
||
title: Балкон
|
||
message: Открыт
|
||
- id: notify_balcony_forgot
|
||
alias: Уведомить об открытии балкона, когда мы забыли его закрыть
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: input_boolean.home_empty
|
||
to: 'on'
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.notifications
|
||
state: 'on'
|
||
- or:
|
||
- condition: state
|
||
entity_id: binary_sensor.door_ikea_balcony_left_contact
|
||
state: 'on'
|
||
- condition: state
|
||
entity_id: binary_sensor.door_ikea_balcony_right_contact
|
||
state: 'on'
|
||
actions:
|
||
- action: notify.notify
|
||
data:
|
||
title: Балкон
|
||
message: Забыли закрыть
|
||
- id: start_eddie_sleep
|
||
alias: Укладываем Эди спать по расписанию
|
||
mode: single
|
||
triggers:
|
||
- trigger: time
|
||
at: input_datetime.eddie_sleep
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.cat_alone
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.other_people
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: input_boolean.child_home
|
||
state: 'on'
|
||
actions:
|
||
action: script.prepare_eddie_for_sleep
|
||
- id: pause_tv_on_doorbell
|
||
alias: Пауза телевизора при звонке двери
|
||
mode: restart
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: event.intercom_ring_ding
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: media_player.tv_remote
|
||
state: 'on'
|
||
actions:
|
||
- action: media_player.media_pause
|
||
target:
|
||
entity_id: media_player.tv_remote
|
||
- id: pause_tv_on_call
|
||
alias: Пауза телевизора при звонке на телефон
|
||
mode: restart
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: sensor.phone_atocha_phone_state
|
||
to:
|
||
- ringing
|
||
- offhook
|
||
- trigger: state
|
||
entity_id: sensor.phone_pixel_7a_phone_state
|
||
to:
|
||
- ringing
|
||
- offhook
|
||
conditions:
|
||
- condition: state
|
||
entity_id: input_boolean.stop
|
||
state: 'off'
|
||
- condition: state
|
||
entity_id: media_player.tv_remote
|
||
state: 'on'
|
||
actions:
|
||
- if:
|
||
- or:
|
||
- condition: and
|
||
conditions:
|
||
- condition: state
|
||
entity_id: person.andrey_sitnik
|
||
state: home
|
||
- condition: state
|
||
entity_id: sensor.phone_atocha_phone_state
|
||
state:
|
||
- ringing
|
||
- offhook
|
||
- and:
|
||
- condition: state
|
||
entity_id: person.ekaterina_sitnik
|
||
state: home
|
||
- condition: state
|
||
entity_id: sensor.phone_pixel_7a_phone_state
|
||
state:
|
||
- ringing
|
||
- offhook
|
||
then:
|
||
- action: media_player.media_pause
|
||
target:
|
||
entity_id: media_player.tv_remote
|
||
- id: water_update_balcony
|
||
alias: Уведомить о переполнении воды у кондиционера
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.water_ikea_balcony_water_leak
|
||
from: 'off'
|
||
to: 'on'
|
||
actions:
|
||
- action: notify.notify
|
||
data:
|
||
title: Балкон
|
||
message: Вода переливается из бутылки
|
||
- id: water_leak_washing_machine
|
||
alias: Уведомить о протечке воды от стиральной машины
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.water_ikea_washing_machine_water_leak
|
||
from: 'off'
|
||
to: 'on'
|
||
actions:
|
||
- action: script.alert
|
||
- action: input_boolean.turn_on
|
||
target:
|
||
entity_id: input_boolean.stop_kitchen
|
||
- action: scene.turn_on
|
||
target:
|
||
entity_id: scene.kitchen_full
|
||
- action: notify.notify
|
||
data:
|
||
title: Стиральная машина
|
||
message: Протечка воды
|
||
- id: water_leak_dishwasher
|
||
alias: Уведомить о протечке воды от стиральной машины
|
||
triggers:
|
||
- trigger: state
|
||
entity_id: binary_sensor.water_ikea_dishwasher_water_leak
|
||
from: 'off'
|
||
to: 'on'
|
||
actions:
|
||
- action: script.alert
|
||
- action: input_boolean.turn_on
|
||
target:
|
||
entity_id: input_boolean.stop_kitchen
|
||
- action: scene.turn_on
|
||
target:
|
||
entity_id: scene.kitchen_full
|
||
- action: notify.notify
|
||
data:
|
||
title: Посудомойка
|
||
message: Протечка воды
|