AutomationDataset/avbor/description-ready.json

6038 lines
335 KiB
JSON
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.

[
{
"id": "4ccbd0aa-829a-45d3-abe7-33ae2552215b",
"automation": "- alias: Humidity in humidor too low\n id: 4ccbd0aa-829a-45d3-abe7-33ae2552215b\n triggers:\n trigger: numeric_state\n entity_id: sensor.atc_3d13_humidity\n below: 65\n for:\n minutes: 30\n actions:\n - action: notify.telegram_group_system\n data:\n message: Влажность в хьюмидоре ниже 65% (текущая {{ states(\"sensor.atc_3d13_humidity\")\n }}%)",
"config": [
{
"name": "humidor humidity sensor",
"room": "humidor",
"type": "sensor",
"id": {
"entity_id": "sensor.atc_3d13_humidity",
"device_id": null
}
}
]
},
{
"id": "f6158c69-c088-4258-a623-6c2ee3c2cf72",
"automation": "- alias: Humidity in humidor too high\n id: f6158c69-c088-4258-a623-6c2ee3c2cf72\n triggers:\n trigger: numeric_state\n entity_id: sensor.atc_3d13_humidity\n above: 80\n for:\n minutes: 30\n actions:\n - action: notify.telegram_group_system\n data:\n message: Влажность в хьюмидоре выше 80% (текущая {{ states(\"sensor.atc_3d13_humidity\")\n }}%)",
"config": [
{
"name": "humidor humidity sensor",
"room": "humidor",
"type": "sensor",
"id": {
"entity_id": "sensor.atc_3d13_humidity",
"device_id": null
}
}
]
},
{
"id": "0d95f393-ab18-4aef-8eb9-9bf5165d6638",
"automation": "- alias: Temperature in humidor too low\n id: 0d95f393-ab18-4aef-8eb9-9bf5165d6638\n triggers:\n trigger: numeric_state\n entity_id: sensor.atc_3d13_temperature\n below: 20\n for:\n minutes: 30\n actions:\n - action: notify.telegram_group_system\n data:\n message: Температура в хьюмидоре ниже 20°C (текущая {{ states(\"sensor.atc_3d13_temperature\")\n }}°C)",
"config": [
{
"name": "humidor temperature sensor",
"room": "humidor",
"type": "sensor",
"id": {
"entity_id": "sensor.atc_3d13_temperature",
"device_id": null
}
}
]
},
{
"id": "dcfce935-f705-4ae5-be45-ffb780b3f290",
"automation": "- alias: Temperature in humidor too high\n id: dcfce935-f705-4ae5-be45-ffb780b3f290\n triggers:\n trigger: numeric_state\n entity_id: sensor.atc_3d13_temperature\n above: 25\n for:\n minutes: 30\n actions:\n - action: notify.telegram_group_system\n data:\n message: Температура в хьюмидоре выше 25°C (текущая {{ states(\"sensor.atc_3d13_temperature\")\n }}°C)",
"config": [
{
"name": "humidor temperature sensor",
"room": "humidor",
"type": "sensor",
"id": {
"entity_id": "sensor.atc_3d13_temperature",
"device_id": null
}
}
]
},
{
"id": "0e2312c7-3cab-413a-aefb-20ff5802c718",
"automation": "- alias: PowerOff all media when nobody at home\n id: 0e2312c7-3cab-413a-aefb-20ff5802c718\n triggers:\n trigger: state\n entity_id: group.family_persons\n to: not_home\n for:\n minutes: 5\n conditions:\n - or:\n - condition: state\n entity_id: group.all_tv\n state: 'on'\n - condition: state\n entity_id: group.all_chromecasts\n state: 'on'\n - condition: state\n entity_id:\n - media_player.yandex_station_lite_detskaia\n - media_player.yandex_station_mini2_gostinaia\n - media_player.yandex_station_mini2_spalnia\n - media_player.yandex_station_lite_prikhozhaya\n state: playing\n - condition: state\n entity_id: group.all_xbox\n state: 'on'\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: group.all_tv\n - action: media_player.media_stop\n target:\n entity_id:\n - group.all_chromecasts\n - action: media_player.turn_off\n target:\n entity_id:\n - group.all_yandex_stations\n - group.all_xbox",
"config": [
{
"name": "family persons group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family_persons",
"device_id": null
}
},
{
"name": "all tv group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_tv",
"device_id": null
}
},
{
"name": "all chromecasts group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_chromecasts",
"device_id": null
}
},
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "yandex station mini2 гостиная",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_gostinaia",
"device_id": null
}
},
{
"name": "yandex station mini2 спальня",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_spalnia",
"device_id": null
}
},
{
"name": "yandex station lite прихожая",
"room": "hallway",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_prikhozhaya",
"device_id": null
}
},
{
"name": "all yandex stations group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_yandex_stations",
"device_id": null
}
},
{
"name": "all xbox group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_xbox",
"device_id": null
}
}
]
},
{
"id": "12b0184c-bb8b-436a-887a-733d0ddac126",
"automation": "- alias: Home Presence Alert\n id: 12b0184c-bb8b-436a-887a-733d0ddac126\n mode: parallel\n triggers:\n trigger: state\n entity_id:\n - person.alexander\n - person.irina\n - person.tatiana\n - person.olga\n - person.egor\n - person.kirill\n conditions:\n - and:\n - condition: template\n value_template: '{{ trigger.to_state.state = trigger.from_state.state }}'\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: '{{ trigger.to_state.attributes.friendly_name }} {% if trigger.to_state.state\n == ''home'' %}дома {% elif trigger.to_state.state == ''Дача'' %}на даче {%\n else %}скорее всего вне дома. {% endif %}\n\n '",
"config": [
{
"name": "person alexander",
"room": null,
"type": "person",
"id": {
"entity_id": "person.alexander",
"device_id": null
}
},
{
"name": "person irina",
"room": null,
"type": "person",
"id": {
"entity_id": "person.irina",
"device_id": null
}
},
{
"name": "person tatiana",
"room": null,
"type": "person",
"id": {
"entity_id": "person.tatiana",
"device_id": null
}
},
{
"name": "person olga",
"room": null,
"type": "person",
"id": {
"entity_id": "person.olga",
"device_id": null
}
},
{
"name": "person egor",
"room": null,
"type": "person",
"id": {
"entity_id": "person.egor",
"device_id": null
}
},
{
"name": "person kirill",
"room": null,
"type": "person",
"id": {
"entity_id": "person.kirill",
"device_id": null
}
}
]
},
{
"id": "067c832a-9626-4f61-8d19-444d6156e889",
"automation": "- alias: Entrance Door - Opened\n id: 067c832a-9626-4f61-8d19-444d6156e889\n triggers:\n trigger: state\n entity_id: binary_sensor.0x158d00031c790f_contact\n from: 'off'\n to: 'on'\n actions:\n action: notify.telegram_group_flat_1\n data:\n message: Открыта входная дверь",
"config": [
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
}
]
},
{
"id": "c6df423a-a1ec-41fb-b600-3874ffef758b",
"automation": "- alias: Entrance Door - Closed\n id: c6df423a-a1ec-41fb-b600-3874ffef758b\n triggers:\n trigger: state\n entity_id: binary_sensor.0x158d00031c790f_contact\n from: 'on'\n to: 'off'\n actions:\n action: notify.telegram_group_flat_1\n data:\n message: Входная дверь закрыта.",
"config": [
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
}
]
},
{
"id": "fe45c917-f489-4c38-a3a1-c66e5fedb07f",
"automation": "- alias: Torrent Completed [notify to group system]\n id: fe45c917-f489-4c38-a3a1-c66e5fedb07f\n triggers:\n trigger: event\n event_type: transmission_downloaded_torrent\n actions:\n action: notify.telegram_group_system\n data:\n message: Загрузка torrent-файла завершена",
"config": []
},
{
"id": "d698bdcc-4ce9-4954-a118-8a1f29cf327e",
"automation": "- alias: Полнолуние [notify to group system]\n id: d698bdcc-4ce9-4954-a118-8a1f29cf327e\n triggers:\n trigger: state\n entity_id: sensor.moon\n to: full_moon\n actions:\n action: notify.telegram_group_system\n data:\n message: Сегодня полнолуние",
"config": [
{
"name": "moon sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.moon",
"device_id": null
}
}
]
},
{
"id": "0ca74008-65a2-4ed1-b860-e27e57b216f2",
"automation": "- alias: Gas Alert\n id: 0ca74008-65a2-4ed1-b860-e27e57b216f2\n triggers:\n trigger: state\n entity_id: binary_sensor.0x00158d000413b210_gas\n from: 'off'\n to: 'on'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Сработал датчик *газа* на кухне.\n\n Откройте окна и перекройте подачу газа (за холодильником).\n\n '\n inline_keyboard:\n - Отключить датчик:/poweroff_gas_sensor",
"config": [
{
"name": "kitchen gas sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x00158d000413b210_gas",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "3254a184-a04f-4b31-bbe9-1a00e403f134",
"automation": "- alias: Gas Alert - Telegram control - poweroff_gas_sensor\n id: 3254a184-a04f-4b31-bbe9-1a00e403f134\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /poweroff_gas_sensor\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.blitzwolf_shp13_02_3ad702fe_on_off\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n title: '*Внимание*'\n message: 'Сработал датчик *газа* на кухне.\n\n Датчик *газа* отключен\n\n '",
"config": [
{
"name": "gas sensor power switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.blitzwolf_shp13_02_3ad702fe_on_off",
"device_id": null
}
}
]
},
{
"id": "3e69fa5f-34f2-4e5e-86e2-467aad2420b6",
"automation": "- alias: Gas Alert - Sensor Powered Off More Than 30 Min\n id: 3e69fa5f-34f2-4e5e-86e2-467aad2420b6\n triggers:\n trigger: state\n entity_id: switch.blitzwolf_shp13_02_3ad702fe_on_off\n to: 'off'\n for: 00:30:00\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Питание датчика *газа* отключено более 30 минут\n\n '\n inline_keyboard:\n - Включить датчик:/poweron_gas_sensor",
"config": [
{
"name": "gas sensor power switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.blitzwolf_shp13_02_3ad702fe_on_off",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "50892fe7-741c-4b4d-a71c-a498be52d6b7",
"automation": "- alias: Gas Alert - Telegram control - poweroff_gas_sensor\n id: 50892fe7-741c-4b4d-a71c-a498be52d6b7\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /poweron_gas_sensor\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.blitzwolf_shp13_02_3ad702fe_on_off\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n title: '*Внимание*'\n message: 'Питание датчика *газа* отключено более 30 минут\n\n Датчик *газа* включен\n\n '",
"config": [
{
"name": "gas sensor power switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.blitzwolf_shp13_02_3ad702fe_on_off",
"device_id": null
}
}
]
},
{
"id": "fe98880b-2fcd-4b6f-9ded-adc174b9b958",
"automation": "- alias: Boiler - Low Temperature Alert\n id: fe98880b-2fcd-4b6f-9ded-adc174b9b958\n triggers:\n - trigger: numeric_state\n entity_id: sensor.boiler_water_temp\n below: 50\n - trigger: numeric_state\n entity_id: sensor.boiler_water_temp\n below: 40\n - trigger: numeric_state\n entity_id: sensor.boiler_water_temp\n below: 30\n conditions:\n condition: template\n value_template: '{{ (trigger.to_state.state | int) = 0 }}'\n actions:\n - action: notify.telegram_group_flat_1\n data:\n title: '*Внимание*'\n message: 'Температура воды в бойлере *{{ trigger.to_state.state }}*°C\n\n '",
"config": [
{
"name": "boiler water temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.boiler_water_temp",
"device_id": null
}
}
]
},
{
"id": "c5eaa742-7ea5-4c0b-8d43-d3ce69232a3e",
"automation": "- alias: Kettle - Boil Finished Notification\n id: c5eaa742-7ea5-4c0b-8d43-d3ce69232a3e\n triggers:\n - trigger: state\n entity_id: binary_sensor.kettle_status\n from: 'on'\n to: 'off'\n conditions: '{{ states(''input_boolean.ha_shutdown'') == ''off'' }}'\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: Чайник *вскипел*",
"config": [
{
"name": "kettle status sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kettle_status",
"device_id": null
}
},
{
"name": "ha shutdown input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ha_shutdown",
"device_id": null
}
}
]
},
{
"id": "eed153ad-dca8-464d-8cc5-b30421eec1a1",
"automation": "- alias: Washing Machine - Wash Finished Notification\n id: eed153ad-dca8-464d-8cc5-b30421eec1a1\n triggers:\n - trigger: state\n entity_id: binary_sensor.washer_status\n from: 'on'\n to: 'off'\n conditions: '{{ states(''input_boolean.ha_shutdown'') == ''off'' }}'\n actions:\n - action: notify.telegram_group_flat_1\n data:\n title: 'Стиральная машина:'\n message: Стирка *закончена*, не забудьте достать белье.",
"config": [
{
"name": "washer status sensor",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.washer_status",
"device_id": null
}
},
{
"name": "ha shutdown input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ha_shutdown",
"device_id": null
}
}
]
},
{
"id": "e572fd6c-06d2-4c34-a218-4b709734c6e0",
"automation": "- alias: Dryer Machine - Drying Finished Notification\n id: e572fd6c-06d2-4c34-a218-4b709734c6e0\n triggers:\n - trigger: state\n entity_id: binary_sensor.dryer_status\n from: 'on'\n to: 'off'\n conditions: '{{ states(''input_boolean.ha_shutdown'') == ''off'' }}'\n actions:\n - action: notify.telegram_group_flat_1\n data:\n title: 'Сушильная машина:'\n message: Сушка *закончена*, не забудьте достать белье.",
"config": [
{
"name": "dryer status sensor",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dryer_status",
"device_id": null
}
},
{
"name": "ha shutdown input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ha_shutdown",
"device_id": null
}
}
]
},
{
"id": "9ef4d500-e688-4b70-b565-43ebb754bfe2",
"automation": "- alias: Dishwasher - Dishwashing Finished Notification\n id: 9ef4d500-e688-4b70-b565-43ebb754bfe2\n triggers:\n - trigger: state\n entity_id: binary_sensor.dishwasher_status\n from: 'on'\n to: 'off'\n conditions: '{{ states(''input_boolean.ha_shutdown'') == ''off'' }}'\n actions:\n - action: notify.telegram_group_flat_1\n data:\n title: 'Посудомоечная машина:'\n message: Программа *закончена*, посуда вымыта.",
"config": [
{
"name": "dishwasher status sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dishwasher_status",
"device_id": null
}
},
{
"name": "ha shutdown input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ha_shutdown",
"device_id": null
}
}
]
},
{
"id": "3f22e8f0-6f31-49c1-bca1-ce19184c5184",
"automation": "- alias: Yandex Station SW Updated\n id: 3f22e8f0-6f31-49c1-bca1-ce19184c5184\n mode: queued\n max: 10\n triggers:\n - trigger: state\n entity_id:\n - sensor.yandex_station_lite_detskaia_sw_version\n - sensor.yandex_station_lite_prikhozhaya_sw_version\n - sensor.yandex_station_mini2_gostinaia_sw_version\n - sensor.yandex_station_mini2_spalnia_sw_version\n conditions:\n - '{{ trigger.to_state.state = trigger.from_state.state }}'\n - '{% set ignore = [''unknown'', ''unavailable'', ''none'', None, null, '''', ''null'']\n %} {{ trigger.to_state.state not in ignore and trigger.from_state.state not in\n ignore }}\n\n '\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n message: '_Yandex Station:_ Изменилась версия прошивки в\n\n {%- if ''detskaia'' in trigger.entity_id %} *Детской*.\n\n {%- elif ''gostinaia'' in trigger.entity_id %} *Гостиной*.\n\n {%- elif ''spalnia'' in trigger.entity_id %} *Спальне*.\n\n {%- elif ''prikhozhaya'' in trigger.entity_id %} *Прихожей*.\n\n {%- endif %}\n\n Было: {{ trigger.from_state.state }}\n\n Стало: {{ trigger.to_state.state }}\n\n '",
"config": [
{
"name": "yandex station lite детская software version",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.yandex_station_lite_detskaia_sw_version",
"device_id": null
}
},
{
"name": "yandex station lite прихожая software version",
"room": "hallway",
"type": "sensor",
"id": {
"entity_id": "sensor.yandex_station_lite_prikhozhaya_sw_version",
"device_id": null
}
},
{
"name": "yandex station mini2 гостиная software version",
"room": "living_room",
"type": "sensor",
"id": {
"entity_id": "sensor.yandex_station_mini2_gostinaia_sw_version",
"device_id": null
}
},
{
"name": "yandex station mini2 спальня software version",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.yandex_station_mini2_spalnia_sw_version",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "eb3ef8ea-e19a-4b1e-b7ff-482089a346b5",
"automation": "- alias: 'HA: Mount NFS Share from NAS01 [/nmt/nas]'\n id: eb3ef8ea-e19a-4b1e-b7ff-482089a346b5\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.mount_mnt_nas",
"config": [
{
"name": "mount mnt nas switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.mount_mnt_nas",
"device_id": null
}
}
]
},
{
"id": "acac055e-ea1e-41cd-9f46-62e7a8c006aa",
"automation": "- alias: 'HA: Create Daily Backup'\n id: acac055e-ea1e-41cd-9f46-62e7a8c006aa\n initial_state: true\n triggers:\n - trigger: time\n at: 01:00:00\n actions:\n - action: auto_backup.backup_full\n data:\n name: Daily Backup {{ now().strftime('%Y-%m-%d') }}\n keep_days: 7",
"config": []
},
{
"id": "3b8230a5-49d5-437b-8bd9-d3f72f95425f",
"automation": "- alias: 'HASS: ERRORs in System Log - Counter'\n id: 3b8230a5-49d5-437b-8bd9-d3f72f95425f\n triggers:\n trigger: event\n event_type: system_log_event\n event_data:\n level: ERROR\n mode: parallel\n max: 50\n actions:\n - action: counter.increment\n target:\n entity_id: counter.syslog_errors",
"config": [
{
"name": "syslog errors counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.syslog_errors",
"device_id": null
}
}
]
},
{
"id": "acdf3489-b611-445c-bd24-2efc9c431124",
"automation": "- alias: 'HASS: WARNINGs in System Log - Counter'\n id: acdf3489-b611-445c-bd24-2efc9c431124\n triggers:\n trigger: event\n event_type: system_log_event\n event_data:\n level: WARNING\n mode: parallel\n max: 50\n actions:\n - action: counter.increment\n target:\n entity_id: counter.syslog_warnings",
"config": [
{
"name": "syslog warnings counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.syslog_warnings",
"device_id": null
}
}
]
},
{
"id": "823d8378-6723-4e71-93ce-29c59946347a",
"automation": "- alias: 'HASS: Create Group of Battery Devices'\n id: 823d8378-6723-4e71-93ce-29c59946347a\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: time_pattern\n hours: /2\n actions:\n - action: group.set\n data:\n object_id: battery_devices\n entities: \"{%- \\n for state in states.sensor \\n if is_state_attr(state.entity_id,\\\n \\ 'device_class', 'battery') and\\n (state.entity_id.endswith(\\\"_battery\\\"\\\n ) or state.entity_id.endswith(\\\"_power\\\"))\\n%} {{ state.entity_id }}{%- if\\\n \\ not loop.last -%}, {%- endif -%} {%- endfor %}\"",
"config": []
},
{
"id": "4c7a9752-b7d2-4c41-acf6-7d175f6b9d39",
"automation": "- alias: Fix for reload automations\n id: 4c7a9752-b7d2-4c41-acf6-7d175f6b9d39\n triggers:\n - trigger: event\n event_type: call_service\n event_data:\n domain: automation\n service: reload\n - trigger: event\n event_type: automation_reloaded\n actions:\n - action: \"{% if trigger.event.event_type == 'call_service' -%}\\n automation.turn_off\\n\\\n {% else -%}\\n automation.turn_on\\n{% endif -%}\"\n target:\n entity_id: automation.device_needs_attention_notify_to_group_system",
"config": [
{
"name": "automation device needs attention notify to group system",
"room": null,
"type": "automation",
"id": {
"entity_id": "automation.device_needs_attention_notify_to_group_system",
"device_id": null
}
}
]
},
{
"id": "e41348f5-2915-4a51-8d88-e5f00e7c0b67",
"automation": "- alias: Update HA DB SQL sensors\n id: e41348f5-2915-4a51-8d88-e5f00e7c0b67\n triggers:\n - trigger: time_pattern\n hours: /1\n minutes: '22'\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id:\n - sensor.hass_db_events_rows_count\n - sensor.hass_db_states_rows_count\n - sensor.hass_db_statistics_rows_count\n - sensor.hass_db_total_rows_count\n - sensor.hass_db_size",
"config": [
{
"name": "hass db events rows count sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_db_events_rows_count",
"device_id": null
}
},
{
"name": "hass db states rows count sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_db_states_rows_count",
"device_id": null
}
},
{
"name": "hass db statistics rows count sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_db_statistics_rows_count",
"device_id": null
}
},
{
"name": "hass db total rows count sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_db_total_rows_count",
"device_id": null
}
},
{
"name": "hass db size sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_db_size",
"device_id": null
}
}
]
},
{
"id": "7f460de3-11dc-4e23-886c-a14b7db8bfeb",
"automation": "- alias: Update MES sensors\n id: 7f460de3-11dc-4e23-886c-a14b7db8bfeb\n triggers:\n - trigger: time_pattern\n minutes: '33'\n conditions:\n - condition: time\n after: 07:00:00\n before: '22:50:00'\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id:\n - sensor.mes_55384_014_37_meter_44259893",
"config": [
{
"name": "mes 55384 014 37 meter sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.mes_55384_014_37_meter_44259893",
"device_id": null
}
}
]
},
{
"id": "a164b9f1-bd13-465e-a76b-7831cdfc63d9",
"automation": "- alias: Update Ping sensors for TV\n id: a164b9f1-bd13-465e-a76b-7831cdfc63d9\n triggers:\n - trigger: time_pattern\n seconds: '10'\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id: binary_sensor.samsungtv_40c5100",
"config": [
{
"name": "samsung tv 40c5100 binary sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.samsungtv_40c5100",
"device_id": null
}
}
]
},
{
"id": "0617529b-bc60-48c0-8954-6936aa95ef50",
"automation": "- alias: Restart Stuck Add-on Z2M-2\n id: 0617529b-bc60-48c0-8954-6936aa95ef50\n triggers:\n - trigger: state\n entity_id: binary_sensor.z2m_2_stuck\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: sensor.addons_mostuitto_state\n state: started\n actions:\n - parallel:\n - action: hassio.addon_restart\n data:\n addon: 4b41db2d_zigbee2mqtt\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n title: <b>Внимание</b>\n message: <b>Z2M-2</b> похоже завис, перезапускаем...",
"config": [
{
"name": "z2m 2 stuck binary sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.z2m_2_stuck",
"device_id": null
}
},
{
"name": "addons mostuitto state sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.addons_mostuitto_state",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "142e502b-3e63-49e3-b790-9150f155dc6d",
"automation": "- alias: 'HASS: Login Failed [notify to group system]'\n id: 142e502b-3e63-49e3-b790-9150f155dc6d\n mode: queued\n max: 5\n triggers:\n - trigger: state\n entity_id: persistent_notification.http_login\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state = off }}'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n disable_web_page_preview: true\n message: '*Внимание*\n\n Неудачная попытка входа, ошибка авторизации\n\n Источник: {{ state_attr(''persistent_notification.http_login'',''message'')\n | regex_findall_index(''from (.*)\\. '') }}\n\n _http://whatismyipaddress.com/ip/{{ state_attr(''persistent_notification.http_login'',''message'')\n | regex_findall_index(''\\((.*)\\)'') }}_\n\n '\n - action: persistent_notification.dismiss\n data:\n notification_id: http_login",
"config": [
{
"name": "persistent notification http login",
"room": null,
"type": "persistent_notification",
"id": {
"entity_id": "persistent_notification.http_login",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "ba2318c5-5c2e-4575-aa13-02f53063793d",
"automation": "- alias: 'HASS: IP Banned [notify to group system]'\n id: ba2318c5-5c2e-4575-aa13-02f53063793d\n mode: queued\n max: 5\n triggers:\n - trigger: state\n entity_id: persistent_notification.ip_ban\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n disable_web_page_preview: true\n message: '*Внимание*\n\n Заблокирован IP: {{ state_attr(''persistent_notification.ip_ban'', ''message'').split(''Too\n many login attempts from '')[1] }}\n\n _http://whatismyipaddress.com/ip/{{ state_attr(''persistent_notification.ip_ban'',\n ''message'').split(''Too many login attempts from '')[1] }}_\n\n '\n - action: persistent_notification.dismiss\n data:\n notification_id: ip_ban",
"config": [
{
"name": "persistent notification ip ban",
"room": null,
"type": "persistent_notification",
"id": {
"entity_id": "persistent_notification.ip_ban",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "60f94d65-93d1-49e5-94d7-ca58471d02c4",
"automation": "- alias: 'HASS: Home Assistant Start'\n id: 60f94d65-93d1-49e5-94d7-ca58471d02c4\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.errors_in_system_log_command_line\n - wait_for_trigger:\n - trigger: state\n entity_id: sensor.errors_in_system_log_command_line\n timeout: 00:00:01\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.warnings_in_system_log_command_line\n - wait_for_trigger:\n - trigger: state\n entity_id: sensor.warnings_in_system_log_command_line\n timeout: 00:00:01\n - action: notify.telegram_group_system\n data:\n message: '_INFO:_ Home Assistant *запущен* за {{ states(''sensor.start_time'')\n }} сек.\n\n Ошибок: *{{ states(''sensor.errors_in_system_log_command_line'') }}*, Предупреждений:\n *{{ states(''sensor.warnings_in_system_log_command_line'') }}*\n\n '\n - action: script.turn_on\n target:\n entity_id: script.hass_errors_counter_set_at_startup\n - action: script.turn_on\n target:\n entity_id: script.hass_warnings_counter_set_at_startup\n - action: script.turn_on\n target:\n entity_id: script.auto_reboot_by_errors_after_boot",
"config": [
{
"name": "errors in system log command line sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.errors_in_system_log_command_line",
"device_id": null
}
},
{
"name": "warnings in system log command line sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.warnings_in_system_log_command_line",
"device_id": null
}
},
{
"name": "start time sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.start_time",
"device_id": null
}
},
{
"name": "Script Auto Reboot by Errors After Boot",
"room": null,
"type": "script",
"id": {
"entity_id": "script.auto_reboot_by_errors_after_boot",
"device_id": null
}
},
{
"name": "Script HASS Errors Counter Set at Startup",
"room": null,
"type": "script",
"id": {
"entity_id": "script.hass_errors_counter_set_at_startup",
"device_id": null
}
},
{
"name": "Script HASS Warnings Counter Set at Startup",
"room": null,
"type": "script",
"id": {
"entity_id": "script.hass_warnings_counter_set_at_startup",
"device_id": null
}
}
]
},
{
"id": "44bdbc77-2894-4c80-9739-6c690bde13f9",
"automation": "- alias: 'HASS: Home Assistant Shutdown'\n id: 44bdbc77-2894-4c80-9739-6c690bde13f9\n triggers:\n trigger: homeassistant\n event: shutdown\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.ha_shutdown\n - action: notify.telegram_group_system\n data:\n message: _INFO:_ Home Assistant *остановлен*.",
"config": [
{
"name": "ha shutdown input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ha_shutdown",
"device_id": null
}
}
]
},
{
"id": "e4140626-d5b1-4a6c-abe1-f99ae0547f0b",
"automation": "- alias: 'HASS: ERRORs in System Log [notify to group system]'\n id: e4140626-d5b1-4a6c-abe1-f99ae0547f0b\n initial_state: false\n triggers:\n trigger: event\n event_type: system_log_event\n event_data:\n level: ERROR\n actions:\n - action: notify.telegram_group_system\n data:\n message: _{{ trigger.event.data.level }}:_ {{ trigger.event.data.message }}",
"config": []
},
{
"id": "42541570-874a-46a9-86d0-0db433aaec5b",
"automation": "- alias: 'HASS: WARNINGs in System Log [notify to group system]'\n id: 42541570-874a-46a9-86d0-0db433aaec5b\n initial_state: false\n triggers:\n trigger: event\n event_type: system_log_event\n event_data:\n level: WARNING\n actions:\n - action: notify.telegram_group_system\n data:\n message: _{{ trigger.event.data.level }}:_ {{ trigger.event.data.message }}",
"config": []
},
{
"id": "3770bcbf-435a-43b2-bfde-b04711e32b61",
"automation": "- alias: 'HASS: System Config Errors [notify to group system]'\n id: 3770bcbf-435a-43b2-bfde-b04711e32b61\n triggers:\n - trigger: event\n event_type: call_service\n event_data:\n domain: persistent_notification\n service: create\n conditions:\n - or:\n - condition: template\n value_template: '{{ trigger.event.data.service_data.notification_id == ''homeassistant.check_config''\n }}'\n - condition: template\n value_template: '{{ trigger.event.data.service_data.notification_id == ''invalid_config''\n }}'\n actions:\n - action: notify.telegram_group_system\n data:\n message: '*Внимание, конфигурация содержит ошибки*\n\n {% if trigger.event.data.service_data.notification_id == ''homeassistant.check_config''\n -%}\n\n Перезапуск HA отменён, подробности в логах.\n\n {% elif trigger.event.data.service_data.notification_id == ''invalid_config''\n -%}\n\n {{ trigger.event.data.service_data.message }}\n\n {% endif %}\n\n '\n - action: persistent_notification.dismiss\n data:\n notification_id: '{{ trigger.event.data.service_data.notification_id }}'",
"config": []
},
{
"id": "67d49afb-cac6-45e2-99b0-0ad5904d84b2",
"automation": "- alias: 'HASS: ERRORs in Automations [notify to group system]'\n id: 67d49afb-cac6-45e2-99b0-0ad5904d84b2\n mode: queued\n triggers:\n - trigger: event\n event_type: system_log_event\n event_data:\n level: ERROR\n conditions:\n - condition: template\n value_template: \"{{ \\n trigger.event.data.message | regex_search('Error while\\\n \\ executing automation') or\\n trigger.event.data.message | regex_search('Error\\\n \\ executing script')\\n}}\"\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n message: \"<i>INFO:</i> Ошибка выполнения автоматизации: \\n{{ trigger.event.data.message\\\n \\ }}.\\n\"",
"config": [
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "d70721b8-e0f2-415a-b917-331781a463ee",
"automation": "- alias: 'HASS: Critical Error [notify to group system]'\n id: d70721b8-e0f2-415a-b917-331781a463ee\n mode: queued\n triggers:\n - trigger: event\n event_type: system_log_event\n event_data:\n level: FATAL\n - trigger: event\n event_type: system_log_event\n event_data:\n level: CRITICAL\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n message: 'Критическая ошибка системы:\n\n {{ trigger.event.data.message }}\n\n '",
"config": [
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "d69b4310-532c-4cda-9a77-3434e6319fef",
"automation": "- alias: 'HA: Update Entities Notifications'\n id: d69b4310-532c-4cda-9a77-3434e6319fef\n mode: queued\n max: 50\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: state_changed\n conditions:\n - '{{ trigger.event.data.entity_id.startswith(''update.'') }}'\n - '{{ trigger.event.data.old_state is not none and trigger.event.data.new_state\n is not none }}'\n - or:\n - condition: template\n value_template: \"{% set ignore = ['unknown', 'unavailable', 'none', None, null,\\\n \\ ''] %}\\n {{ \\n trigger.event.data.new_state.state == 'on' and\\n (version(trigger.event.data.new_state.attributes.latest_version)\\\n \\ = version(trigger.event.data.old_state.attributes.latest_version) or\\n \\\n \\ version(trigger.event.data.new_state.attributes.latest_version) > version(trigger.event.data.old_state.attributes.latest_version))\\\n \\ and\\n trigger.event.data.new_state.attributes.latest_version not in ignore\\\n \\ and\\n trigger.event.data.new_state.attributes.latest_version is not none\\n\\\n \\ }}\\n\"\n - condition: template\n value_template: \"{% set ignore = ['unknown', 'unavailable', 'none', None, null,\\\n \\ ''] %}\\n {{ \\n trigger.event.data.old_state.state == 'on' and trigger.event.data.new_state.state\\\n \\ == 'off' and\\n (version(trigger.event.data.new_state.attributes.installed_version)\\\n \\ = version(trigger.event.data.old_state.attributes.installed_version) or\\n\\\n \\ version(trigger.event.data.new_state.attributes.installed_version) >\\\n \\ version(trigger.event.data.old_state.attributes.installed_version)) and\\n\\\n \\ trigger.event.data.new_state.attributes.installed_version not in ignore\\\n \\ and\\n trigger.event.data.new_state.attributes.installed_version is not\\\n \\ none\\n }}\\n\"\n actions:\n - variables:\n latest_version: '{{ trigger.event.data.new_state.attributes.latest_version }}'\n installed_version: '{{ state_attr(trigger.event.data.entity_id, ''installed_version'')\n }}'\n old_installed_version: '{{ trigger.event.data.old_state.attributes.installed_version\n }}'\n friendlyname: '{{- trigger.event.data.new_state.name | regex_replace(''( Update$|\n Firmware$| Обновление прошивки$)'', '''', True) -}}'\n - if:\n - condition: template\n value_template: '{{ trigger.event.data.new_state.attributes.installed_version\n = trigger.event.data.old_state.attributes.installed_version }}'\n then:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n message: '<i>INFO:</i> <b>{{ friendlyname }}</b> - обновлен (<i>{{ old_installed_version\n }}</i> -> <i>{{ latest_version }}</i>).\n\n '\n else:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n message: '<i>INFO:</i> <b>{{ friendlyname }}</b> - доступно обновление (<i>{{\n installed_version }}</i> -> <i>{{ latest_version }}</i>).\n\n '",
"config": [
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "89bb378c-13b5-4051-bd08-3f226dbc8834",
"automation": "- alias: Device Needs Attention [notify to group system]\n id: 89bb378c-13b5-4051-bd08-3f226dbc8834\n mode: queued\n max: 30\n triggers:\n - trigger: event\n event_type: state_changed\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ha_shutdown'') == ''off'' }}'\n - condition: template\n value_template: '{{ states(''sensor.ha_uptime'') > ''1'' }}'\n - condition: template\n value_template: \"{{ not trigger.event.data.entity_id | regex_search\\n (\\n '^group.battery_devices$|'\\n\\\n \\ '^binary_sensor.lamp_status_|'\\n '^sensor.lamp_status_|'\\n '^sensor.mirobot_1s_|'\\n\\\n \\ '^sensor.xiaomi_vacuum_cleaner_|'\\n '^switch.smartir_|'\\n '^sensor.openweathermap_|'\\n\\\n \\ '.*\\\\.smartmi_humidifier_\\\\d{2}_\\\\w+|'\\n '^sensor\\\\.tplink_smartplug_01_|'\\n\\\n \\ '^sensor\\\\.gosund_sp111_\\\\d{2}_|'\\n '^(switch|button)\\\\.gosund_sp111_\\\\\\\n d{2}_restart|'\\n '^sensor\\\\..*_ble|'\\n '^(binary_sensor|switch)\\\\.domofon_|'\\n\\\n \\ '^(binary_sensor|sensor|light)\\\\.sonoff_basic_|'\\n '^(binary_sensor|sensor)\\\\\\\n .sonoff_mini_r2_|'\\n '^(switch|button)\\\\.(esp32_miscale2|esp32_bt_proxy)_\\\\\\\n d{2}_restart.*|'\\n '^sensor\\\\.xiaomi_mi_scale_2_.*|'\\n '^number\\\\..*_(min|max)_weight|'\\n\\\n \\ '^button\\\\..*_identify|'\\n '^sensor\\\\..*_(weight_current|current_weight)|'\\n\\\n \\ '^sensor\\\\..*_(impedance_current|current_impedance)|'\\n '^media_player\\\\\\\n .plex_.*|'\\n '^(binary_sensor|sensor|switch|button)\\\\.reolinkcam_(01|02)_.*|'\\n\\\n \\ '.*ed5e33eb_0ca3_4263_a681_a68b1045a5e6.*|'\\n '^sensor\\\\.oneplus_8t_ibeacon_.*|'\\n\\\n \\ '^binary_sensor\\\\..*_oneplus_8t_presence$|'\\n '^binary_sensor\\\\..*_holy_iot_.*_presence$|'\\n\\\n \\ '^binary_sensor\\\\..*_nut_gray_1_presence$|'\\n '^binary_sensor\\\\..*_amazfit_gtr_4_presence$|'\\n\\\n \\ '^.*\\\\.nas01_.*|'\\n '^vacuum\\\\.xiaomi_vacuum_cleaner$|'\\n '^sensor\\\\.esp32_bt_proxy_\\\\\\\n d{2}_rssi$|'\\n '^sensor\\\\..*_estimated_distance$|'\\n '^(sensor|number|switch|button|binary_sensor)\\\\\\\n .galaxy_tab_a_8_0_2019_.*$|'\\n '^camera\\\\.reolinkcam_01_rtsp.*$|'\\n '^(sensor|binary_sensor|button|switch)\\\\\\\n .shellyem_.*|'\\n '^sensor\\\\.ch_main_energy_.*|'\\n '^sensor\\\\..*_geocoded_location$|'\\n\\\n \\ '^sensor\\\\.double_take_.*|'\\n '^sensor\\\\.processor_use$|'\\n '^binary_sensor\\\\\\\n .avb0r$|'\\n '^sensor\\\\.dacha_nearest_.*|'\\n '^sensor\\\\.dacha_.*_di.*|'\\n \\\n \\ '^(media_player|remote)\\\\.xbox_ch_01|'\\n '^(media_player|remote)\\\\.xbox_v_gostinoi|'\\n\\\n \\ '^sensor\\\\..*_sonoff_pow_r3_0._power_factor$|'\\n 'sensor\\\\.ch_lte_modem_.*|'\\n\\\n \\ 'sensor\\\\.ch_(water|septic)_pump_run_time_.*|'\\n '.*\\\\.rch_.*'\\n )\\n}}\"\n - condition: template\n value_template: '{{ trigger.event.data.new_state.state = trigger.event.data.old_state.state\n }}'\n - condition: template\n value_template: '{{ trigger.event.data.new_state.state in [''unknown'', ''unavailable'']\n }}'\n actions:\n - condition: template\n value_template: '{{ states(''input_boolean.ha_shutdown'') == ''off'' }}'\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n disable_notification: true\n message: '<i>INFO</i>: Объект {{ trigger.event.data.entity_id }} сменил статус\n на {{ trigger.event.data.new_state.state }}.\n\n '",
"config": [
{
"name": "ha shutdown input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ha_shutdown",
"device_id": null
}
},
{
"name": "battery devices group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.battery_devices",
"device_id": null
}
},
{
"name": "ha uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ha_uptime",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "6d87e0a2-8a6b-4b20-bd28-900af1620584",
"automation": "- alias: Low Battery Alert [notify to group system]\n id: 6d87e0a2-8a6b-4b20-bd28-900af1620584\n mode: queued\n max: 30\n triggers:\n - trigger: event\n event_type: state_changed\n conditions:\n - condition: template\n value_template: \"{{ not trigger.event.data.entity_id | regex_search\\n (\\n '^sensor\\\\\\\n .galaxy_tab_a_8_0_2019_battery'\\n )\\n}}\"\n - condition: template\n value_template: '{{ trigger.event.data.entity_id in (expand(''group.battery_devices'')\n | map(attribute=''entity_id'')) }}'\n - condition: template\n value_template: '{{ not trigger.event.data.new_state.state in [''unknown'', ''unavailable'']\n }}'\n - condition: template\n value_template: '{{ (trigger.event.data.new_state.state | int) < (states(''input_number.low_battery_alert_threshold'')\n | int) }}'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n title: <b>Внимание, низкий заряд батареи</b>\n message: '{{ trigger.event.data.new_state.attributes.friendly_name }}: {{ trigger.event.data.new_state.state\n }} %\n\n '",
"config": [
{
"name": "battery devices group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.battery_devices",
"device_id": null
}
},
{
"name": "low battery alert threshold input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.low_battery_alert_threshold",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "7e5b4f9a-eb87-487f-8e1a-4b980de13734",
"automation": "- alias: New Network Device Notification\n id: 7e5b4f9a-eb87-487f-8e1a-4b980de13734\n mode: parallel\n triggers:\n trigger: event\n event_type: device_tracker_new_device\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n title: <b>Найдено новое устройство в сети</b>\n message: 'MAC: {{ trigger.event.data.mac }}\n\n '",
"config": [
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "fef0c4de-e2ba-419b-b49e-ff39449e6481",
"automation": "- alias: Auto Backup Completed [notify to group system]\n id: fef0c4de-e2ba-419b-b49e-ff39449e6481\n triggers:\n trigger: event\n event_type: auto_backup.backup_successful\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n message: '<i>INFO:</i> Создание резервной копии завершилось успешно.\n\n Имя: {{ trigger.event.data.name }}\n\n '",
"config": [
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "24f2bb2c-3e2c-47b5-ba9a-a92f0f5bf63a",
"automation": "- alias: Auto Backup Failure [notify to group system]\n id: 24f2bb2c-3e2c-47b5-ba9a-a92f0f5bf63a\n triggers:\n trigger: event\n event_type: auto_backup.backup_failed\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n title: <b>Внимание</b>\n message: 'Создание резервной копии завершилось ошибкой.\n\n Имя: {{ trigger.event.data.name }}\n\n Ошибка: {{ trigger.event.data.error }}\n\n '",
"config": [
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "d35faec4-c949-4358-8aff-00e11b560444",
"automation": "- alias: Telegram Bot - Mirror text\n id: d35faec4-c949-4358-8aff-00e11b560444\n triggers:\n trigger: event\n event_type: telegram_text\n actions:\n action: notify.telegram_group_system\n data:\n message: '*{{ trigger.event.data.from_first }} {{ trigger.event.data.from_last\n }} [{{ trigger.event.data.user_id }}] пишет:*\n\n {{ trigger.event.data.text }}\n\n '",
"config": []
},
{
"id": "d50c7e2c-9f67-40f2-9495-41ba1140c9b5",
"automation": "- alias: Telegram Bot - Start\n id: d50c7e2c-9f67-40f2-9495-41ba1140c9b5\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /start\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /start@HAutoBot\n actions:\n action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.user_id }}'\n message: Привет! Помощь - /help",
"config": []
},
{
"id": "1e265eea-3d26-4a04-8402-f25a828f841d",
"automation": "- alias: Telegram Bot - Help\n id: 1e265eea-3d26-4a04-8402-f25a828f841d\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /help\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /help@HAutoBot\n actions:\n action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.user_id }}'\n parse_mode: html\n message: 'Доступные комманды:\n\n /status - Текущий статус устройств\n\n /whoishome - Кто дома?\n\n /weather - Погода дома\n\n /weather_ch - Погода на даче\n\n /ping - Проверить доступность сервиса HASS\n\n '",
"config": []
},
{
"id": "936c648b-18b6-4636-a941-cc3f3361fdd0",
"automation": "- alias: Telegram Bot - Ping\n id: 936c648b-18b6-4636-a941-cc3f3361fdd0\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /ping\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /ping@HAutoBot\n actions:\n action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.user_id }}'\n message: 'Pong! _{{ now().strftime(\"%d.%m.%Y %H:%M:%S\") }}_\n\n Current version: {{ states(''sensor.current_version'') }}\n\n DB Size: {{ states(''sensor.hass_db_size'') }} {{ state_attr(''sensor.hass_db_size'',''unit_of_measurement'')\n }}\n\n Uptime: {{ states(''sensor.ha_uptime'') }} min.\n\n '",
"config": [
{
"name": "hass db size sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_db_size",
"device_id": null
}
},
{
"name": "ha uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ha_uptime",
"device_id": null
}
},
{
"name": "current version sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.current_version",
"device_id": null
}
}
]
},
{
"id": "f3af5ecc-3eb8-4542-8207-97f90b6f5abf",
"automation": "- alias: Telegram Bot - Who is home?\n id: f3af5ecc-3eb8-4542-8207-97f90b6f5abf\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /whoishome\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /whoishome@HAutoBot\n actions:\n action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message: 'Сейчас дома:\n\n {%- set entites = expand(''group.family_persons'') %}{% for prs in entites\n %}{% if prs.state == \"home\" %}\n\n {{ prs.attributes.friendly_name }}{% endif %}{% endfor %}\n\n {% if is_state(\"group.family_persons\", \"not_home\") %}Никого нет{% endif %}\n\n '",
"config": [
{
"name": "family persons group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family_persons",
"device_id": null
}
}
]
},
{
"id": "b0b0a539-14fb-440c-b57c-269460961819",
"automation": "- alias: Telegram Bot - Weather\n id: b0b0a539-14fb-440c-b57c-269460961819\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /weather\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /weather@HAutoBot\n actions:\n - action: telegram_bot.send_photo\n data:\n target: '{{ trigger.event.data.user_id }}'\n file: /config/www/weather_icons/{{ states(\"weather.danilovskii\") }}.webp\n caption: 'Температура {{ states(''sensor.danilovskii_temperature'') }}°C\n\n Ощущается как {{ states(''sensor.danilovskii_feels_like_temperature'') }}°C\n\n Влажность {{ states(''sensor.danilovskii_humidity'') }}%\n\n Давление {{ states(''sensor.danilovskii_pressure'') }} hPa ({{ states(''sensor.openweathermap_moskva_danilovskii_pressure_mmhg'')\n }} mmHg)\n\n '",
"config": [
{
"name": "weather danilovskii",
"room": null,
"type": "weather",
"id": {
"entity_id": "weather.danilovskii",
"device_id": null
}
},
{
"name": "danilovskii temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.danilovskii_temperature",
"device_id": null
}
},
{
"name": "danilovskii feels like temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.danilovskii_feels_like_temperature",
"device_id": null
}
},
{
"name": "danilovskii humidity sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.danilovskii_humidity",
"device_id": null
}
},
{
"name": "danilovskii pressure sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.danilovskii_pressure",
"device_id": null
}
},
{
"name": "openweathermap moskva danilovskii pressure mmhg sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.openweathermap_moskva_danilovskii_pressure_mmhg",
"device_id": null
}
}
]
},
{
"id": "c5ac3f4b-80b8-479f-96bf-45274aeba2ec",
"automation": "- alias: Telegram Bot - Weather Country House\n id: c5ac3f4b-80b8-479f-96bf-45274aeba2ec\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /weather_ch\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /weather_ch@HAutoBot\n actions:\n - action: telegram_bot.send_photo\n data:\n target: '{{ trigger.event.data.user_id }}'\n file: /config/www/weather_icons/{{ states(\"weather.nivki_2\") }}.webp\n caption: 'Температура {{ states(''sensor.nivki_2_temperature'') }}°C\n\n Ощущается как {{ states(''sensor.nivki_2_feels_like_temperature'') }}°C\n\n Влажность {{ states(''sensor.nivki_2_humidity'') }}%\n\n Давление {{ states(''sensor.nivki_2_pressure'') }} hPa ({{ states(''sensor.openweathermap_stupino_nivki_2_pressure_mmhg'')\n }} mmHg)\n\n '",
"config": [
{
"name": "weather nivki 2",
"room": null,
"type": "weather",
"id": {
"entity_id": "weather.nivki_2",
"device_id": null
}
},
{
"name": "nivki 2 temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nivki_2_temperature",
"device_id": null
}
},
{
"name": "nivki 2 feels like temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nivki_2_feels_like_temperature",
"device_id": null
}
},
{
"name": "nivki 2 humidity sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nivki_2_humidity",
"device_id": null
}
},
{
"name": "nivki 2 pressure sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nivki_2_pressure",
"device_id": null
}
},
{
"name": "openweathermap stupino nivki 2 pressure mmhg sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.openweathermap_stupino_nivki_2_pressure_mmhg",
"device_id": null
}
}
]
},
{
"id": "51572bf5-4960-4034-b09a-17d202c07c18",
"automation": "- alias: Telegram Bot - Status\n id: 51572bf5-4960-4034-b09a-17d202c07c18\n triggers:\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /status\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /status@HAutoBot\n actions:\n action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.user_id }}'\n message: '*Климат*\n\n Гостинная: *{{ states(''sensor.temperature_in_livingroom'') }}°C*, {{ states(''sensor.humidity_in_livingroom'')\n }}%\n\n Детская: *{{ states(''sensor.temperature_in_nursery'') }}°C*, {{ states(''sensor.humidity_in_nursery'')\n }}%\n\n Спальня: *{{ states(''sensor.temperature_in_bedroom'') }}°C*, {{ states(''sensor.humidity_in_bedroom'')\n }}%\n\n Ванная: *{{ states(''sensor.temperature_in_bathroom'') }}°C*, {{ states(''sensor.humidity_in_bathroom'')\n }}%\n\n Туалет: *{{ states(''sensor.temperature_in_toilet'') }}°C*, {{ states(''sensor.humidity_in_toilet'')\n }}%\n\n Кладовая: *{{ states(''sensor.temperature_in_storeroom'') }}°C*, {{ states(''sensor.humidity_in_storeroom'')\n }}%\n\n\n *Статус устройств*\n\n `-= Датчики протечки =-`\n\n Нептун (кладовая, туалет, ванна, кухня): *{{ states(''binary_sensor.neptun_water_leakage'')\n }}*\n\n Aqara кладовая: *{{ states(''binary_sensor.0x158d000400e77d_moisture'') }}*\n\n Aqara под ванной (слева): *{{ states(''binary_sensor.0x158d0004030d84_moisture'')\n }}*\n\n Aqara справа от ванной: *{{ states(''binary_sensor.lumi_lumi_sensor_wleak_aq1_ias_zone'')\n }}*\n\n `-= Вытяжка =-`\n\n Ванная: *{{ states(''binary_sensor.bathroom_extractor_fan'') }}*\n\n Туалет: *{{ states(''binary_sensor.toilet_extractor_fan'') }}*\n\n `-= Кондиционеры =-`\n\n Детская: *{{ states(''binary_sensor.0x158d00039cf974_contact'') }}*\n\n Гостинная: *{{ states(''binary_sensor.0x158d0003d54725_contact'') }}*\n\n Спальня: *{{ states(''binary_sensor.0x158d0004073b67_contact'') }}*\n\n `-= Крупная бытовая техника =-`\n\n Водонагреватель: *{{ states(''binary_sensor.boiler_status'') }}* ({{ states(''sensor.tplink_smartplug_01_current_consumption'')\n }} W)\n\n Стиральная машина: *{{ states(''binary_sensor.washer_status'') }}* ({{ states(''sensor.tplink_smartplug_02_current_consumption'')\n }} W)\n\n Сушильная машина: *{{ states(''binary_sensor.dryer_status'') }}* ({{ states(''sensor.gosund_sp111_09_watt'')\n }} W)\n\n Посудомоечная машина: *{{ states(''binary_sensor.dishwasher_status'') }}*\n ({{ states(''sensor.gosund_sp111_06_watt'') }} W)\n\n Холодильник: *{{ states(''binary_sensor.fridge_status'') }}* ({{ states(''sensor.gosund_sp111_04_watt'')\n }} W)\n\n Духовой шкаф: *{{ states(''binary_sensor.oven_status'') }}* ({{ states(''sensor.gosund_sp111_10_watt'')\n }} W)\n\n `-= Свет =-`\n\n Споты в прихожей: *{{ states(''light.sonoff_1000f2f14a'') }}*\n\n Споты в коридоре: *{{ states(''light.sonoff_1000f2a500'') }}*\n\n Люстра в детской: *{{ states(''light.ikea_e27_detskaia'') }}*\n\n Подсветка окна в детской: *{{ states(''light.detskaia_podsvetka_na_okne'')\n }}*\n\n Лампа на столе в детской слева: *{{ states(''light.ikea_e14_level_light_color_on_off'')\n }}*\n\n Лампа на столе в детской справа: *{{ states(''light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light'')\n }}*\n\n Люстра в гостиной: *{{ states(''light.sonoff_1000f3035d'') }}*\n\n Споты в гостиной: *{{ states(''light.sonoff_1000f30a9e'') }}*\n\n Бра в гостиной: *{{ states(''light.sonoff_1000ab3c28'') }}*\n\n Подсветка онка в гостиной: *{{ states(''light.gostinaia_podsvetka_na_okne'')\n }}*\n\n Лампа на столе в гостиной: *{{ states(''light.ikea_e27_level_light_color_on_off'')\n }}*\n\n Споты на кухне: *{{ states(''light.sonoff_1000b72483'') }}*\n\n Подсветка кухни: *{{ states(''light.kukhnia_lenta'') }}*\n\n Люстра на кухне: *{{ states(''light.ikea_e27_kukhnia'') }}*\n\n Споты в Ванной: *{{ states(''light.sonoff_zbmini_04_on_off'') }}*\n\n Споты в Туалете: *{{ states(''light.sonoff_zbmini_03_on_off'') }}*\n\n Люстра в кладовой: *{{ states(''light.sonoff_1000b6831b'') }}*\n\n Люстра в спальне: *{{ states(''light.sonoff_1001053235'') }}*\n\n Бра в спальне - лево: *{{ states(''light.sonoff_01minizb_47ef08fe_on_off'')\n }}*\n\n Бра в спальне - право: *{{ states(''light.sonoff_1001045426'') }}*\n\n Лампа на столе в спальне: *{{ states(''light.spalnia_stol'') }}*\n\n `-= Шторы =-`\n\n Кухня - левая: *{{ states(''cover.tze200_rddyvrci_ts0601_5c2fbdfe_window_covering'')\n }}*\n\n Кухня - правая: *{{ states(''cover.tze200_rddyvrci_ts0601_df30bdfe_window_covering'')\n }}*\n\n `-= Розетки =-`\n\n Розетка Xiaomi WiFi Plug 01: *{{ states(''switch.mi_smartplugwifi_01'') }}*\n\n `-= ТВ =-`\n\n Спальня: *{{ states(''media_player.ue43ru7470'') }}*\n\n Гостинная: *{{ states(''media_player.ue46es5507'') }}*\n\n Кухня: *{{ states(''media_player.ue32es5500'') }}*\n\n Детская: *{{ states(''binary_sensor.samsungtv_40c5100'') }}*\n\n `-= Chromecast =-`\n\n Гостинная: *{{ states(''media_player.gostinaia'') }}*\n\n Детская: *{{ states(''media_player.detskaia'') }}*\n\n `-= Yandex =-`\n\n Прихожая: *{{ states(''media_player.yandex_station_lite_prikhozhaya'') }}*\n\n Детская: *{{ states(''media_player.yandex_station_lite_detskaia'') }}*\n\n Гостинная: *{{ states(''media_player.yandex_station_mini2_gostinaia'') }}*\n\n Спалья: *{{ states(''media_player.yandex_station_mini2_spalnia'') }}*\n\n `-= Разное =-`\n\n Входная дверь: *{{ states(''sensor.entrance_door_status'') }}*\n\n Датчик газа: *{{ states(''binary_sensor.0x00158d000413b210_gas'') }}*\n\n Датчик газа (питание): *{{ states(''switch.blitzwolf_shp13_02_3ad702fe_on_off'')\n }}*\n\n Mi Robot: *{{ states(''vacuum.xiaomi_vacuum_cleaner'') }}*\n\n Transmission Status: *{{ states(''sensor.transmission_status'') }}*\n\n Plex Users: *{{ states(''sensor.plex_plexonubuntu'') }}*\n\n '",
"config": [
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "yandex station mini2 гостиная",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_gostinaia",
"device_id": null
}
},
{
"name": "yandex station mini2 спальня",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_spalnia",
"device_id": null
}
},
{
"name": "yandex station lite прихожая",
"room": "hallway",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_prikhozhaya",
"device_id": null
}
},
{
"name": "kitchen gas sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x00158d000413b210_gas",
"device_id": null
}
},
{
"name": "gas sensor power switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.blitzwolf_shp13_02_3ad702fe_on_off",
"device_id": null
}
},
{
"name": "washer status sensor",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.washer_status",
"device_id": null
}
},
{
"name": "dryer status sensor",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dryer_status",
"device_id": null
}
},
{
"name": "dishwasher status sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dishwasher_status",
"device_id": null
}
},
{
"name": "samsung tv 40c5100 binary sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.samsungtv_40c5100",
"device_id": null
}
},
{
"name": "temperature in livingroom sensor",
"room": "living_room",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_livingroom",
"device_id": null
}
},
{
"name": "humidity in livingroom sensor",
"room": "living_room",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_livingroom",
"device_id": null
}
},
{
"name": "temperature in nursery sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_nursery",
"device_id": null
}
},
{
"name": "humidity in nursery sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_nursery",
"device_id": null
}
},
{
"name": "temperature in bedroom sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_bedroom",
"device_id": null
}
},
{
"name": "humidity in bedroom sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_bedroom",
"device_id": null
}
},
{
"name": "temperature in bathroom sensor",
"room": "bathroom",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_bathroom",
"device_id": null
}
},
{
"name": "humidity in bathroom sensor",
"room": "bathroom",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_bathroom",
"device_id": null
}
},
{
"name": "temperature in toilet sensor",
"room": "toilet",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_toilet",
"device_id": null
}
},
{
"name": "humidity in toilet sensor",
"room": "toilet",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_toilet",
"device_id": null
}
},
{
"name": "temperature in storeroom sensor",
"room": "storeroom",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_storeroom",
"device_id": null
}
},
{
"name": "humidity in storeroom sensor",
"room": "storeroom",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_storeroom",
"device_id": null
}
},
{
"name": "neptun water leakage sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.neptun_water_leakage",
"device_id": null
}
},
{
"name": "aqara storeroom moisture sensor",
"room": "storeroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d000400e77d_moisture",
"device_id": null
}
},
{
"name": "aqara under bath moisture sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0004030d84_moisture",
"device_id": null
}
},
{
"name": "aqara near bath moisture sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_wleak_aq1_ias_zone",
"device_id": null
}
},
{
"name": "bathroom extractor fan binary sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bathroom_extractor_fan",
"device_id": null
}
},
{
"name": "toilet extractor fan binary sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.toilet_extractor_fan",
"device_id": null
}
},
{
"name": "nursery ac contact sensor",
"room": "nursery",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00039cf974_contact",
"device_id": null
}
},
{
"name": "living room ac contact sensor",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0003d54725_contact",
"device_id": null
}
},
{
"name": "bedroom ac contact sensor",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0004073b67_contact",
"device_id": null
}
},
{
"name": "boiler status sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.boiler_status",
"device_id": null
}
},
{
"name": "tplink smartplug 01 current consumption sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.tplink_smartplug_01_current_consumption",
"device_id": null
}
},
{
"name": "tplink smartplug 02 current consumption sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.tplink_smartplug_02_current_consumption",
"device_id": null
}
},
{
"name": "gosund sp111 09 watt sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gosund_sp111_09_watt",
"device_id": null
}
},
{
"name": "gosund sp111 06 watt sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gosund_sp111_06_watt",
"device_id": null
}
},
{
"name": "gosund sp111 04 watt sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gosund_sp111_04_watt",
"device_id": null
}
},
{
"name": "gosund sp111 10 watt sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gosund_sp111_10_watt",
"device_id": null
}
},
{
"name": "fridge status sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.fridge_status",
"device_id": null
}
},
{
"name": "oven status sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.oven_status",
"device_id": null
}
},
{
"name": "sonoff 1000f2f14a light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2f14a",
"device_id": null
}
},
{
"name": "sonoff 1000f2a500 light",
"room": "corridor",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2a500",
"device_id": null
}
},
{
"name": "ikea e27 детская light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_detskaia",
"device_id": null
}
},
{
"name": "детская подсветка на окне light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.detskaia_podsvetka_na_okne",
"device_id": null
}
},
{
"name": "ikea e14 level light color on off light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_e14_level_light_color_on_off",
"device_id": null
}
},
{
"name": "ikea e14 ws opal 600lm light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light",
"device_id": null
}
},
{
"name": "sonoff 1000f3035d light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f3035d",
"device_id": null
}
},
{
"name": "sonoff 1000f30a9e light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f30a9e",
"device_id": null
}
},
{
"name": "sonoff 1000ab3c28 light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000ab3c28",
"device_id": null
}
},
{
"name": "гостиная подсветка на окне light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.gostinaia_podsvetka_na_okne",
"device_id": null
}
},
{
"name": "ikea e27 level light color on off light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_level_light_color_on_off",
"device_id": null
}
},
{
"name": "sonoff 1000b72483 light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000b72483",
"device_id": null
}
},
{
"name": "кухня лента light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kukhnia_lenta",
"device_id": null
}
},
{
"name": "ikea e27 кухня light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_kukhnia",
"device_id": null
}
},
{
"name": "sonoff zbmini 04 on off light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_zbmini_04_on_off",
"device_id": null
}
},
{
"name": "sonoff zbmini 03 on off light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.sonoff_zbmini_03_on_off",
"device_id": null
}
},
{
"name": "sonoff 1000b6831b light",
"room": "storeroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000b6831b",
"device_id": null
}
},
{
"name": "sonoff 1001053235 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_1001053235",
"device_id": null
}
},
{
"name": "sonoff 01minizb 47ef08fe on off light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_01minizb_47ef08fe_on_off",
"device_id": null
}
},
{
"name": "sonoff 1001045426 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_1001045426",
"device_id": null
}
},
{
"name": "спальня стол light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.spalnia_stol",
"device_id": null
}
},
{
"name": "tze200 rddyvrci ts0601 5c2fbdfe window covering",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.tze200_rddyvrci_ts0601_5c2fbdfe_window_covering",
"device_id": null
}
},
{
"name": "tze200 rddyvrci ts0601 df30bdfe window covering",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.tze200_rddyvrci_ts0601_df30bdfe_window_covering",
"device_id": null
}
},
{
"name": "mi smartplug wifi 01 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.mi_smartplugwifi_01",
"device_id": null
}
},
{
"name": "ue43ru7470 media player",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.ue43ru7470",
"device_id": null
}
},
{
"name": "ue46es5507 media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.ue46es5507",
"device_id": null
}
},
{
"name": "ue32es5500 media player",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.ue32es5500",
"device_id": null
}
},
{
"name": "гостиная chromecast media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.gostinaia",
"device_id": null
}
},
{
"name": "детская chromecast media player",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.detskaia",
"device_id": null
}
},
{
"name": "entrance door status sensor",
"room": "hallway",
"type": "sensor",
"id": {
"entity_id": "sensor.entrance_door_status",
"device_id": null
}
},
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
},
{
"name": "transmission status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.transmission_status",
"device_id": null
}
},
{
"name": "plex plexonubuntu sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.plex_plexonubuntu",
"device_id": null
}
}
]
},
{
"id": "1385db9f-772d-474e-b9bc-237c073ba44a",
"automation": "- alias: 'Alice: Lumos'\n id: 1385db9f-772d-474e-b9bc-237c073ba44a\n mode: restart\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Люмос\n room: Гостиная\n id: Living_Room_Lumos\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Люмос максима\n room: Гостиная\n id: Living_Room_Lumos_Maxima\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Нокс\n room: Гостиная\n id: Living_Room_Nox\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Люмос\n room: Детская\n id: Nursery_Lumos\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Люмос максима\n room: Детская\n id: Nursery_Lumos_Maxima\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Нокс\n room: Детская\n id: Nursery_Nox\n actions:\n choose:\n - alias: Nursery Lumos\n conditions:\n - condition: trigger\n id: Nursery_Lumos\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.ikea_e27_detskaia\n - alias: Nursery Lumos Maxima\n conditions:\n - condition: trigger\n id: Nursery_Lumos_Maxima\n sequence:\n - action: light.turn_on\n target:\n area_id: 24758c6268dd46168d35620719b05ed0\n - alias: Nursery Nox\n conditions:\n - condition: trigger\n id: Nursery_Nox\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.ikea_e27_detskaia\n - alias: Living Room Lumos\n conditions:\n - condition: trigger\n id: Living_Room_Lumos\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.sonoff_1000f30a9e\n - alias: Living Room Lumos Maxima\n conditions:\n - condition: trigger\n id: Living_Room_Lumos_Maxima\n sequence:\n - action: light.turn_on\n target:\n area_id: 38de229de4ae4b9c9aebbb4973528a2f\n - alias: Living Room Nox\n conditions:\n - condition: trigger\n id: Living_Room_Nox\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.sonoff_1000f30a9e",
"config": [
{
"name": "ikea e27 детская light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_detskaia",
"device_id": null
}
},
{
"name": "sonoff 1000f30a9e light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f30a9e",
"device_id": null
}
}
]
},
{
"id": "1ec5424e-f770-486c-b4cf-ed29e65dcb36",
"automation": "- alias: Mirror Yandex Station input_select Name to ID\n id: 1ec5424e-f770-486c-b4cf-ed29e65dcb36\n triggers:\n trigger: state\n entity_id: input_select.yandex_station_target_name\n actions:\n - action: input_text.set_value\n target:\n entity_id: input_text.yandex_station_target_id\n data:\n value: \"{% if trigger.to_state.state == 'Детская' %}\\n media_player.yandex_station_lite_detskaia\\n\\\n {% elif trigger.to_state.state == 'Гостиная' %}\\n media_player.yandex_station_mini2_gostinaia\\n\\\n {% elif trigger.to_state.state == 'Спальня' %}\\n media_player.yandex_station_mini2_spalnia\\n\\\n {% elif trigger.to_state.state == 'Прихожая' %}\\n media_player.yandex_station_lite_prikhozhaya\\n\\\n {% endif %}\\n\"",
"config": [
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "yandex station mini2 гостиная",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_gostinaia",
"device_id": null
}
},
{
"name": "yandex station mini2 спальня",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_spalnia",
"device_id": null
}
},
{
"name": "yandex station lite прихожая",
"room": "hallway",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_prikhozhaya",
"device_id": null
}
},
{
"name": "yandex station target name input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.yandex_station_target_name",
"device_id": null
}
},
{
"name": "yandex station target id input text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.yandex_station_target_id",
"device_id": null
}
}
]
},
{
"id": "950840e8-8ef1-4984-8996-6ddee1f56cb7",
"automation": "- alias: 'Auto Reboot: Reset Automatic Reboot Counter'\n id: 950840e8-8ef1-4984-8996-6ddee1f56cb7\n triggers:\n - trigger: state\n entity_id: sensor.ha_uptime\n to: '10'\n conditions:\n condition: template\n value_template: '{{ (states(''counter.auto_reboot'') | int) > 0 }}'\n actions:\n - action: counter.set_value\n target:\n entity_id: counter.auto_reboot\n data:\n value: '0'",
"config": [
{
"name": "ha uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ha_uptime",
"device_id": null
}
},
{
"name": "auto reboot counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.auto_reboot",
"device_id": null
}
}
]
},
{
"id": "5524cadd-7b96-41f8-b489-90782e17af80",
"automation": "- alias: 'Auto Reboot: Telegram Control - Cancel Auto Reboot'\n id: 5524cadd-7b96-41f8-b489-90782e17af80\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /cancel_auto_reboot\n actions:\n - action: script.turn_off\n target:\n entity_id: script.auto_reboot_by_errors_after_boot\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n title: '*Внимание*'\n message: Автоматическая перезагрузка Home Assistant *отменена*",
"config": [
{
"name": "Script Auto Reboot by Errors After Boot",
"room": null,
"type": "script",
"id": {
"entity_id": "script.auto_reboot_by_errors_after_boot",
"device_id": null
}
}
]
},
{
"id": "abdaa9e1-cfbc-4c00-b22c-db82f01cd214",
"automation": "- alias: Forgotten car key - Alex\n id: abdaa9e1-cfbc-4c00-b22c-db82f01cd214\n triggers:\n - trigger: state\n entity_id: binary_sensor.amazfit_gtr_4_presence\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: binary_sensor.holy_iot_white_1_presence\n state: 'on'\n - condition: state\n entity_id: binary_sensor.holy_iot_black_1_presence\n state: 'off'\n actions:\n - wait_template: '{{ is_state(''binary_sensor.holy_iot_white_1_presence'', ''off'')\n }}'\n timeout: 00:00:30\n - if:\n - '{{ not wait.completed }}'\n then:\n - parallel:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_stall_id\n parse_mode: html\n title: <b>Внимание</b>\n message: Возможно, ты забыл ключ от машины\n - action: notify.mobile_app_kb2003\n data:\n title: Ключ от машины\n message: Возможно, ты забыл ключ от машины...\n data:\n ttl: 0\n priority: high\n channel: alarm_stream\n importance: max\n color: red\n clickAction: entityId:binary_sensor.holy_iot_white_1_presence",
"config": [
{
"name": "amazfit gtr 4 presence sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.amazfit_gtr_4_presence",
"device_id": null
}
},
{
"name": "holy iot white 1 presence sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.holy_iot_white_1_presence",
"device_id": null
}
},
{
"name": "holy iot black 1 presence sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.holy_iot_black_1_presence",
"device_id": null
}
},
{
"name": "Secret TLG Stall ID",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_stall_id",
"device_id": null
}
}
]
},
{
"id": "0a72e0b9-d7f2-41b9-90b3-5d1a601de887",
"automation": "- alias: Forgotten school pass reminder - Egor\n id: 0a72e0b9-d7f2-41b9-90b3-5d1a601de887\n triggers:\n - trigger: state\n entity_id: binary_sensor.0x158d00031c790f_contact\n from: 'on'\n to: 'off'\n conditions:\n - condition: time\n after: 07:30:00\n before: 08:30:00\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: calendar.semia_alexander_borisov_school_vacation_egor\n state: 'off'\n - condition: state\n entity_id: binary_sensor.holy_iot_green_1_presence\n state: 'on'\n actions:\n - wait_template: '{{ is_state(''binary_sensor.holy_iot_green_1_presence'', ''off'')\n }}'\n timeout: 00:00:30\n - if:\n - '{{ not wait.completed }}'\n then:\n - parallel:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n parse_mode: html\n title: <b>Внимание</b>\n message: Возможно, Егор забыл пропуск в школу...\n - action: notify.mobile_app_kb2003\n data:\n title: Пропуск в школу\n message: Возможно, Егор забыл пропуск в школу...\n data:\n ttl: 0\n priority: high\n channel: alarm_stream\n importance: max\n color: red\n clickAction: entityId:binary_sensor.holy_iot_green_1_presence\n - action: media_player.play_media\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya\n data:\n media_content_id: Внимание, возможно, Егор забыл пропуск в школу\n media_content_type: text\n extra:\n volume_level: 0.7",
"config": [
{
"name": "yandex station lite прихожая",
"room": "hallway",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_prikhozhaya",
"device_id": null
}
},
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
},
{
"name": "workday sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.workday_sensor",
"device_id": null
}
},
{
"name": "calendar semia alexander borisov school vacation egor",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.semia_alexander_borisov_school_vacation_egor",
"device_id": null
}
},
{
"name": "holy iot green 1 presence sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.holy_iot_green_1_presence",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "ad6c6761-94ba-4edb-b744-b844c5f0d2d6",
"automation": "- alias: Catch Possible Frigate FFmpeg Errors\n id: ad6c6761-94ba-4edb-b744-b844c5f0d2d6\n triggers:\n - trigger: state\n entity_id: binary_sensor.frigate_reolinkcam_02_ffmpeg_problem\n from: 'off'\n to: 'on'\n actions:\n - parallel:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n title: '*Frigate Warning*'\n message: 'Возможна проблема с камерой Reolink 02,\n\n будет выполнена попытка перезагрузки Frigate.\n\n '\n - action: shell_command.restart_frigate_srv01",
"config": [
{
"name": "frigate reolinkcam 02 ffmpeg problem sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.frigate_reolinkcam_02_ffmpeg_problem",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "6166ef07-c478-44e3-a226-24d7737d6646",
"automation": "- alias: Движение в детской\n id: 6166ef07-c478-44e3-a226-24d7737d6646\n initial_state: false\n triggers:\n trigger: state\n entity_id: binary_sensor.0x158d00044cea8e_motion\n from: 'off'\n to: 'on'\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: 'В *Детской* обнаружено движение:'\n - action: notify.telegram_group_flat_1\n data:\n message: Camera Snapshot 1\n data:\n photo:\n - url: secret dafangcam_03_snapshot_url\n - delay:\n seconds: 1\n - action: notify.telegram_group_flat_1\n data:\n message: Camera Snapshot 2\n data:\n photo:\n - url: secret dafangcam_03_snapshot_url\n - delay:\n seconds: 1\n - action: notify.telegram_group_flat_1\n data:\n message: Camera Snapshot 3\n data:\n photo:\n - url: secret dafangcam_03_snapshot_url",
"config": [
{
"name": "0x158d00044cea8e motion sensor",
"room": "nursery",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00044cea8e_motion",
"device_id": null
}
}
]
},
{
"id": "f46ce78b-11b1-42e9-b217-34ed6eabb7bb",
"automation": "- alias: Вкл контроль движения в детской\n id: f46ce78b-11b1-42e9-b217-34ed6eabb7bb\n triggers:\n trigger: time\n at: '23:30:00'\n actions:\n - action: automation.turn_on\n target:\n entity_id: automation.dvizhenie_v_detskoi",
"config": [
{
"name": "automation движение в детской",
"room": "nursery",
"type": "automation",
"id": {
"entity_id": "automation.dvizhenie_v_detskoi",
"device_id": null
}
}
]
},
{
"id": "0ffb0c86-cd64-4990-9571-da1799709488",
"automation": "- alias: Выкл контроль движения в детской\n id: 0ffb0c86-cd64-4990-9571-da1799709488\n triggers:\n trigger: time\n at: 07:00:00\n actions:\n - action: automation.turn_off\n target:\n entity_id: automation.dvizhenie_v_detskoi",
"config": [
{
"name": "automation движение в детской",
"room": "nursery",
"type": "automation",
"id": {
"entity_id": "automation.dvizhenie_v_detskoi",
"device_id": null
}
}
]
},
{
"id": "47a5b56e-5c41-4ae6-a3c2-25984c67b1b5",
"automation": "- alias: Вход в квартиру\n id: 47a5b56e-5c41-4ae6-a3c2-25984c67b1b5\n triggers:\n trigger: state\n entity_id: binary_sensor.0x158d00031c790f_contact\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.0x158d000309920a_motion\n state: 'off'\n actions:\n - delay:\n seconds: 3\n - action: notify.telegram_group_flat_1\n data:\n message: Camera Snapshot 1\n data:\n photo:\n - url: secret dafangcam_02_snapshot_url\n - delay:\n seconds: 1\n - action: notify.telegram_group_flat_1\n data:\n message: Camera Snapshot 2\n data:\n photo:\n - url: secret dafangcam_02_snapshot_url\n - delay:\n seconds: 2\n - action: notify.telegram_group_flat_1\n data:\n message: Camera Snapshot 3\n data:\n photo:\n - url: secret dafangcam_02_snapshot_url\n - delay:\n seconds: 3\n - action: notify.telegram_group_flat_1\n data:\n message: Camera Snapshot 4\n data:\n photo:\n - url: secret dafangcam_02_snapshot_url",
"config": [
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
},
{
"name": "0x158d000309920a motion sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d000309920a_motion",
"device_id": null
}
}
]
},
{
"id": "ff6813b7-a4a7-4682-bacb-c28290e43f88",
"automation": "- alias: DafangCam-02 Turn Off Night Mode by Light\n id: ff6813b7-a4a7-4682-bacb-c28290e43f88\n triggers:\n trigger: state\n entity_id: light.sonoff_1000f2f14a\n to: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.dafangcam02_night_mode\n - action: switch.turn_on\n target:\n entity_id: switch.dafangcam02_ir_filter\n - action: switch.turn_off\n target:\n entity_id: switch.dafangcam02_ir_led",
"config": [
{
"name": "sonoff 1000f2f14a light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2f14a",
"device_id": null
}
},
{
"name": "dafangcam02 night mode switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.dafangcam02_night_mode",
"device_id": null
}
},
{
"name": "dafangcam02 ir filter switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.dafangcam02_ir_filter",
"device_id": null
}
},
{
"name": "dafangcam02 ir led switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.dafangcam02_ir_led",
"device_id": null
}
}
]
},
{
"id": "56d572c7-3750-4988-8294-aa241a4f4b31",
"automation": "- alias: Staircase - Person detected\n id: 56d572c7-3750-4988-8294-aa241a4f4b31\n triggers:\n - trigger: state\n entity_id: binary_sensor.reolinkcam_01_person_occupancy\n from: 'off'\n to: 'on'\n actions:\n - parallel:\n - sequence:\n - delay:\n seconds: 1\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_staircase\n message: '{{ now().strftime(''%d.%m.%Y, %H:%M:%S'') }}\n\n Обнаружен человек на лестничной клетке:\n\n '\n - action: telegram_bot.send_photo\n data:\n target: secret tlg_group_staircase\n url: secret reolinkcam_01_snapshot_url\n verify_ssl: false\n - sequence:\n - action: telegram_bot.send_video\n data:\n target: secret tlg_group_staircase\n url: secret go2rtc_reolinkcam_01_mp4_7s",
"config": [
{
"name": "reolinkcam 01 person occupancy sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.reolinkcam_01_person_occupancy",
"device_id": null
}
},
{
"name": "Secret TLG Group Staircase",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_staircase",
"device_id": null
}
}
]
},
{
"id": "692afba6-c94d-477f-9ac4-d064643898ce",
"automation": "- alias: Staircase - Send recorded video\n id: 692afba6-c94d-477f-9ac4-d064643898ce\n triggers:\n trigger: event\n event_type: folder_watcher\n event_data:\n event_type: deleted\n file: staircase_movement.mp4.tmp\n actions:\n - action: telegram_bot.send_video\n data:\n target: secret tlg_group_staircase\n file: /config/video/staircase_movement.mp4\n caption: secret look_at_cam_reolinkcam_01\n timeout: 180",
"config": [
{
"name": "Secret TLG Group Staircase",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_staircase",
"device_id": null
}
}
]
},
{
"id": "1550b036-824f-47d8-9dcf-674b475c5060",
"automation": "- alias: Staircase - Motion detected - Frigate\n id: 1550b036-824f-47d8-9dcf-674b475c5060\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: mqtt\n topic: frigate_srv01/events\n payload: reolinkcam_01\n value_template: '{{ value_json[''after''][''camera''] }}'\n variables:\n id: '{{ trigger.payload_json[''after''][''id''] }}'\n camera: '{{ trigger.payload_json[''after''][''camera''] }}'\n target_chat: secret tlg_group_staircase\n type: '{{ trigger.payload_json[''type''] }}'\n base_url: secret external_url\n conditions:\n - '{{ type = ''end'' }}'\n actions:\n - action: telegram_bot.send_message\n data:\n target: '{{ target_chat }}'\n message: '{{ now().strftime(''%d.%m.%Y, %H:%M:%S'') }}\n\n Обнаружено движение на лестничной клетке,\n\n (ID: {{ id }}):\n\n '\n - action: telegram_bot.send_photo\n data:\n target: '{{ target_chat }}'\n url: '{{base_url}}/api/frigate/notifications/{{id}}/snapshot.jpg'\n - repeat:\n sequence:\n - wait_for_trigger:\n - trigger: mqtt\n topic: frigate_srv01/events\n payload: '{{ id }}'\n value_template: '{{ value_json[''after''][''id''] }}'\n timeout:\n minutes: 2\n continue_on_timeout: false\n - condition: template\n value_template: '{{ wait.trigger.payload_json[''type''] == ''end'' }}'\n - action: telegram_bot.send_video\n data:\n target: '{{ target_chat }}'\n url: '{{base_url}}/api/frigate/notifications/{{id}}/{{camera}}/clip.mp4'\n until: '{{ wait.trigger.payload_json[''type''] == ''end'' }}'",
"config": [
{
"name": "Secret TLG Group Staircase",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_staircase",
"device_id": null
}
}
]
},
{
"id": "8431232f-319a-4184-94e9-bc070403eec4",
"automation": "- alias: Homecoming Greeting\n id: 8431232f-319a-4184-94e9-bc070403eec4\n mode: queued\n max: 5\n triggers:\n - trigger: state\n entity_id: sensor.double_take_alexander_b\n to: dafangcam_02\n id: alex\n - trigger: state\n entity_id: sensor.double_take_irina_b\n to: dafangcam_02\n id: irina\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(as_local(states[''binary_sensor.0x158d00031c790f_contact''].last_changed)))\n < 90 }}'\n actions:\n - choose:\n - conditions:\n - '{{ trigger.id == ''alex'' }}'\n - '{{ is_state(''person.alexander'', ''home'') }}'\n - '{{ (as_timestamp(now()) - as_timestamp(as_local(states.person.alexander.last_changed)))\n < 600 }}'\n sequence:\n - action: script.homecoming_greeting\n data:\n pers_name: Александр\n match_filename: '{{ trigger.to_state.attributes.match.filename }}'\n - conditions:\n - '{{ trigger.id == ''irina'' }}'\n - '{{ is_state(''person.irina'', ''home'') }}'\n - '{{ (as_timestamp(now()) - as_timestamp(as_local(states.person.irina.last_changed)))\n < 600 }}'\n sequence:\n - action: script.homecoming_greeting\n data:\n pers_name: Ирина\n match_filename: '{{ trigger.to_state.attributes.match.filename }}'",
"config": [
{
"name": "person alexander",
"room": null,
"type": "person",
"id": {
"entity_id": "person.alexander",
"device_id": null
}
},
{
"name": "person irina",
"room": null,
"type": "person",
"id": {
"entity_id": "person.irina",
"device_id": null
}
},
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
},
{
"name": "double take alexander b sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.double_take_alexander_b",
"device_id": null
}
},
{
"name": "double take irina b sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.double_take_irina_b",
"device_id": null
}
}
]
},
{
"id": "97f7f60b-61c2-482b-894a-c12704418075",
"automation": "- alias: Country House CCTV - Toggle Camera\n id: 97f7f60b-61c2-482b-894a-c12704418075\n triggers:\n - trigger: state\n entity_id: binary_sensor.coutry_house_presence\n actions:\n choose:\n - alias: Presence Sensor To On\n conditions: '{{ trigger.to_state.state == ''on'' }}'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.frigate_srv01_reolinkcam_02\n - alias: Presence Sensor To Off\n conditions: '{{ trigger.to_state.state == ''off'' }}'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.frigate_srv01_reolinkcam_02",
"config": [
{
"name": "coutry house presence sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.coutry_house_presence",
"device_id": null
}
},
{
"name": "frigate srv01 reolinkcam 02 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.frigate_srv01_reolinkcam_02",
"device_id": null
}
}
]
},
{
"id": "a0d9386b-ecf4-46f1-92d8-6ad1a777d1d9",
"automation": "- alias: Country House CCTV - Person detected\n id: a0d9386b-ecf4-46f1-92d8-6ad1a777d1d9\n triggers:\n - trigger: state\n entity_id: binary_sensor.reolinkcam_02_person_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.coutry_house_presence\n state: 'off'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_country_house\n message: '{{ now().strftime(''%d.%m.%Y, %H:%M:%S'') }}\n\n На даче обнаружен человек:\n\n '\n - action: telegram_bot.send_photo\n data:\n target: secret tlg_group_country_house\n url: secret reolinkcam_02_snapshot_url\n caption: secret look_at_cam_reolinkcam_02\n timeout: 60",
"config": [
{
"name": "coutry house presence sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.coutry_house_presence",
"device_id": null
}
},
{
"name": "reolinkcam 02 person occupancy sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.reolinkcam_02_person_occupancy",
"device_id": null
}
},
{
"name": "Secret TLG Group Country House",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_country_house",
"device_id": null
}
}
]
},
{
"id": "28450e89-7fdf-459d-bcbd-9e3ea9377de7",
"automation": "- alias: CH Set current cost per kWh\n id: 28450e89-7fdf-459d-bcbd-9e3ea9377de7\n triggers:\n - trigger: state\n entity_id: sensor.country_house_enegry_cost_mes_t1\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n conditions:\n - '{{ trigger.to_state.state | is_number() }}'\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.country_house_enegry_cost_current\n data:\n value: '{{ trigger.to_state.state | float(0) }}'",
"config": [
{
"name": "country house enegry cost mes t1 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.country_house_enegry_cost_mes_t1",
"device_id": null
}
},
{
"name": "country house enegry cost current input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.country_house_enegry_cost_current",
"device_id": null
}
}
]
},
{
"id": "3570493e-c074-4d88-b8ce-a196cb1a60a6",
"automation": "- alias: CH Set Main Energy Meter values for predict\n id: 3570493e-c074-4d88-b8ce-a196cb1a60a6\n triggers:\n - trigger: state\n entity_id:\n - input_number.country_house_enegry_meter_value\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.country_house_enegry_meter_predicted_value\n data:\n value: '{{ trigger.to_state.state | float(0) }}'",
"config": [
{
"name": "country house enegry meter value input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.country_house_enegry_meter_value",
"device_id": null
}
},
{
"name": "country house enegry meter predicted value input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.country_house_enegry_meter_predicted_value",
"device_id": null
}
}
]
},
{
"id": "36df2266-8486-42de-b42d-d7b956c24e40",
"automation": "- alias: CH Predict energy meter readings\n id: 36df2266-8486-42de-b42d-d7b956c24e40\n triggers:\n - trigger: time\n at: '23:59:55'\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.country_house_enegry_meter_predicted_value\n data:\n value: '{{ ((states(''input_number.country_house_enegry_meter_predicted_value'')\n | float(0)) + (states(''sensor.rch_ch_main_energy_daily_total'') | float(0)))\n | round(2) }}'",
"config": [
{
"name": "country house enegry meter predicted value input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.country_house_enegry_meter_predicted_value",
"device_id": null
}
},
{
"name": "rch ch main energy daily total sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.rch_ch_main_energy_daily_total",
"device_id": null
}
}
]
},
{
"id": "d20af113-a06c-4eec-a1a0-0a8a4f8f6fa9",
"automation": "- alias: CH Push Energy Meter reading\n id: d20af113-a06c-4eec-a1a0-0a8a4f8f6fa9\n triggers:\n - trigger: state\n entity_id:\n - sensor.ch_energy_meter_value_saved_for_transfer\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n conditions:\n - '{{ (now().strftime(''%d'') | int(0)) == (states(''input_number.country_house_enegry_meter_value_transfer_day'')\n | int(0)) }}'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_country_house\n title: '*Электроэнергия:*'\n message: 'Зафиксировано новое значение кВт⋅ч для передачи в МЭС.\n\n Предыдущее: {{ trigger.from_state.state }}\n\n Текущее: {{ trigger.to_state.state }}\n\n Расход: {{ (trigger.to_state.state | int(0)) - (trigger.from_state.state |\n int(0)) }} кВт⋅ч\n\n Примерная сумма счета: {{ (((trigger.to_state.state | float(0)) - (trigger.from_state.state\n | float(0))) * (states(''input_number.country_house_enegry_cost_current'')\n | float(0))) | round(1) }} руб.\n\n '\n - action: script.turn_on\n target:\n entity_id: script.ch_push_energy_readings_to_mes",
"config": [
{
"name": "country house enegry cost current input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.country_house_enegry_cost_current",
"device_id": null
}
},
{
"name": "country house enegry meter value input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.country_house_enegry_meter_value",
"device_id": null
}
},
{
"name": "ch energy meter value saved for transfer sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ch_energy_meter_value_saved_for_transfer",
"device_id": null
}
},
{
"name": "country house enegry meter value transfer day input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.country_house_enegry_meter_value_transfer_day",
"device_id": null
}
},
{
"name": "Script CH Push Energy Readings to MES",
"room": null,
"type": "script",
"id": {
"entity_id": "script.ch_push_energy_readings_to_mes",
"device_id": null
}
},
{
"name": "Secret TLG Group Country House",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_country_house",
"device_id": null
}
}
]
},
{
"id": "99ae89c3-a865-4c3b-841c-729bbbc4b447",
"automation": "- alias: CH Energy Meter readings accepted notification\n id: 99ae89c3-a865-4c3b-841c-729bbbc4b447\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.mes_55384_014_37_meter_44259893_readings_accepted\n to: 'on'\n not_from:\n - unavailable\n - unknown\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_country_house\n title: '*Электроэнергия:*'\n message: Переданные показания учтены в МЭС ({{ states('sensor.mes_55384_014_37_meter_44259893_zone_t1_period_indication')\n }} кВт⋅ч).",
"config": [
{
"name": "mes 55384 014 37 meter sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.mes_55384_014_37_meter_44259893",
"device_id": null
}
},
{
"name": "mes 55384 014 37 meter 44259893 readings accepted sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.mes_55384_014_37_meter_44259893_readings_accepted",
"device_id": null
}
},
{
"name": "mes 55384 014 37 meter 44259893 zone t1 period indication sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.mes_55384_014_37_meter_44259893_zone_t1_period_indication",
"device_id": null
}
},
{
"name": "Secret TLG Group Country House",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_country_house",
"device_id": null
}
}
]
},
{
"id": "c4ff5d52-df3b-4e02-a8ef-f4a11323dcb4",
"automation": "- alias: Дача Водяной Насос - Telegram Control - Включение\n id: c4ff5d52-df3b-4e02-a8ef-f4a11323dcb4\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /water_pump_on\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.rch_sonoff_pow_r3_02\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - alias: Wait for switch.rch_sonoff_pow_r3_02\n wait_for_trigger:\n - trigger: state\n entity_id: switch.rch_sonoff_pow_r3_02\n from: 'off'\n to: 'on'\n timeout: 00:00:10\n continue_on_timeout: false\n - action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message: Насос включен.",
"config": [
{
"name": "rch sonoff pow r3 02 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.rch_sonoff_pow_r3_02",
"device_id": null
}
}
]
},
{
"id": "86da4969-92fa-49c9-aba3-23ab804e7194",
"automation": "- alias: Дача - Telegram Control - Turn On Away Mode\n id: 86da4969-92fa-49c9-aba3-23ab804e7194\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /ch_turn_on_away_mode\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.rch_ch_away\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_country_house\n message: Включен Away Mode",
"config": [
{
"name": "rch ch away scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.rch_ch_away",
"device_id": null
}
},
{
"name": "Secret TLG Group Country House",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_country_house",
"device_id": null
}
}
]
},
{
"id": "a50dc6a0-b2d1-45d9-bab8-7fc62e43fb05",
"automation": "- alias: Central Heating State Notification\n id: a50dc6a0-b2d1-45d9-bab8-7fc62e43fb05\n mode: queued\n max: 10\n triggers:\n - trigger: state\n entity_id: binary_sensor.central_heating_nursery\n id: nursery\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n - trigger: state\n entity_id: binary_sensor.central_heating_livingroom\n id: livingroom\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n - trigger: state\n entity_id: binary_sensor.central_heating_kitchen\n id: kitchen\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n - trigger: state\n entity_id: binary_sensor.central_heating_bedroom\n id: bedroom\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n conditions: '{{ states(''sensor.ha_uptime'') = ''0'' }}'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: '{%- if trigger.id == \"nursery\" %}{% set room = \"детской\" %}{% set\n temp = states(''sensor.lumi_lumi_weather_824e9807_temperature'') %}\n\n {%- elif trigger.id == \"livingroom\" %}{% set room = \"гостиной\" %}{% set temp\n = states(''sensor.lumi_lumi_weather_bf387507_temperature'') %}\n\n {%- elif trigger.id == \"kitchen\" %}{% set room = \"кухне\" %}{% set temp = states(''sensor.lumi_lumi_weather_4dad5507_temperature'')\n %}\n\n {%- elif trigger.id == \"bedroom\" %}{% set room = \"спальне\" %}{% set temp =\n states(''sensor.lumi_lumi_weather_temperature'') %}\n\n {%- endif %}\n\n Отопление в {{ room }} {% if trigger.to_state.state == ''on'' %}*включено*{%else%}*выключено*{%endif%}.\n\n Температура в районе трубы отопления {{ temp }}°C.\n\n '",
"config": [
{
"name": "ha uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ha_uptime",
"device_id": null
}
},
{
"name": "central heating nursery sensor",
"room": "nursery",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.central_heating_nursery",
"device_id": null
}
},
{
"name": "lumi lumi weather 824e9807 temperature sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.lumi_lumi_weather_824e9807_temperature",
"device_id": null
}
},
{
"name": "central heating livingroom sensor",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.central_heating_livingroom",
"device_id": null
}
},
{
"name": "lumi lumi weather bf387507 temperature sensor",
"room": "living_room",
"type": "sensor",
"id": {
"entity_id": "sensor.lumi_lumi_weather_bf387507_temperature",
"device_id": null
}
},
{
"name": "central heating kitchen sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.central_heating_kitchen",
"device_id": null
}
},
{
"name": "lumi lumi weather 4dad5507 temperature sensor",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.lumi_lumi_weather_4dad5507_temperature",
"device_id": null
}
},
{
"name": "central heating bedroom sensor",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.central_heating_bedroom",
"device_id": null
}
},
{
"name": "lumi lumi weather temperature sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.lumi_lumi_weather_temperature",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "bb3a7df3-3e20-4ebe-8b49-bc9ba69ad2b6",
"automation": "- alias: Thermo alert [Nursery]\n id: bb3a7df3-3e20-4ebe-8b49-bc9ba69ad2b6\n triggers:\n - trigger: template\n value_template: '{{ (states(''sensor.temperature_in_nursery'') | float(0)) < 22\n }}'\n for:\n minutes: 5\n - trigger: template\n value_template: '{{ (states(''sensor.temperature_in_nursery'') | float(0)) > 25\n }}'\n for:\n minutes: 5\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: 'В *Детской* {% if (trigger.to_state.state | float(0)) > 23 -%} жарко,\n {% elif (trigger.to_state.state | float(0)) < 23 -%} холодно, {% endif -%}\n температура: *{{ trigger.to_state.state }}°C*'",
"config": [
{
"name": "temperature in nursery sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_nursery",
"device_id": null
}
}
]
},
{
"id": "0e135e8d-3ad5-40cb-9d8f-9ab3df6b91bd",
"automation": "- alias: Thermo alert [Living Room]\n id: 0e135e8d-3ad5-40cb-9d8f-9ab3df6b91bd\n triggers:\n - trigger: template\n value_template: '{{ (states(''sensor.temperature_in_livingroom'') | float(0))\n < 22 }}'\n for:\n minutes: 5\n - trigger: template\n value_template: '{{ (states(''sensor.temperature_in_livingroom'') | float(0))\n > 25 }}'\n for:\n minutes: 5\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: 'В *Гостиной* {% if (trigger.to_state.state | float(0)) > 23 -%} жарко,\n {% elif (trigger.to_state.state | float(0)) < 23 -%} холодно, {% endif -%}\n температура: *{{ trigger.to_state.state }}°C*'",
"config": [
{
"name": "temperature in livingroom sensor",
"room": "living_room",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_livingroom",
"device_id": null
}
}
]
},
{
"id": "524b5b92-0f5d-4429-88d2-9903ec325389",
"automation": "- alias: Thermo alert [Bedroom]\n id: 524b5b92-0f5d-4429-88d2-9903ec325389\n triggers:\n - trigger: template\n value_template: '{{ (states(''sensor.temperature_in_bedroom'') | float(0)) < 21\n }}'\n for:\n minutes: 5\n - trigger: template\n value_template: '{{ (states(''sensor.temperature_in_bedroom'') | float(0)) > 24.5\n }}'\n for:\n minutes: 5\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: 'В *Спальне* {% if (trigger.to_state.state | float(0)) > 23 -%} жарко,\n {% elif (trigger.to_state.state | float(0)) < 23 -%} холодно, {% endif -%}\n температура: *{{ trigger.to_state.state }}°C*'",
"config": [
{
"name": "temperature in bedroom sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.temperature_in_bedroom",
"device_id": null
}
}
]
},
{
"id": "09f64418-db04-4327-a714-57d9ea39d1ed",
"automation": "- alias: AC - long running [8h]\n id: 09f64418-db04-4327-a714-57d9ea39d1ed\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.0x158d00039cf974_contact\n - binary_sensor.0x158d0003d54725_contact\n - binary_sensor.0x158d0004073b67_contact\n from: 'off'\n to: 'on'\n for:\n hours: 8\n actions:\n action: notify.telegram_group_flat_1\n data:\n message: 'Внимание, *{{ trigger.to_state.attributes.friendly_name.replace(''Геркон\n '','''').replace('' on_off'','''') }}* работает больше 8 часов.\n\n '",
"config": [
{
"name": "nursery ac contact sensor",
"room": "nursery",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00039cf974_contact",
"device_id": null
}
},
{
"name": "living room ac contact sensor",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0003d54725_contact",
"device_id": null
}
},
{
"name": "bedroom ac contact sensor",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0004073b67_contact",
"device_id": null
}
}
]
},
{
"id": "970eef7a-4b66-4186-88ff-a0542c13c10a",
"automation": "- alias: AC - long running [16h]\n id: 970eef7a-4b66-4186-88ff-a0542c13c10a\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.0x158d00039cf974_contact\n - binary_sensor.0x158d0003d54725_contact\n - binary_sensor.0x158d0004073b67_contact\n from: 'off'\n to: 'on'\n for:\n hours: 16\n actions:\n action: notify.telegram_group_flat_1\n data:\n message: 'Внимание, *{{ trigger.to_state.attributes.friendly_name.replace(''Геркон\n '','''').replace('' on_off'','''') }}* работает больше *16* часов.\n\n '",
"config": [
{
"name": "nursery ac contact sensor",
"room": "nursery",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00039cf974_contact",
"device_id": null
}
},
{
"name": "living room ac contact sensor",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0003d54725_contact",
"device_id": null
}
},
{
"name": "bedroom ac contact sensor",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0004073b67_contact",
"device_id": null
}
}
]
},
{
"id": "106513d8-941c-4bfe-8f42-1fe9c95a77de",
"automation": "- alias: AC - long running [24h]\n id: 106513d8-941c-4bfe-8f42-1fe9c95a77de\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.0x158d00039cf974_contact\n - binary_sensor.0x158d0003d54725_contact\n - binary_sensor.0x158d0004073b67_contact\n from: 'off'\n to: 'on'\n for:\n hours: 24\n actions:\n action: notify.telegram_group_flat_1\n data:\n message: 'Внимание, *{{ trigger.to_state.attributes.friendly_name.replace(''Геркон\n '','''').replace('' on_off'','''') }}* работает больше *24* часов.\n\n '",
"config": [
{
"name": "nursery ac contact sensor",
"room": "nursery",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00039cf974_contact",
"device_id": null
}
},
{
"name": "living room ac contact sensor",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0003d54725_contact",
"device_id": null
}
},
{
"name": "bedroom ac contact sensor",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0004073b67_contact",
"device_id": null
}
}
]
},
{
"id": "5c2a3b8f-9bc7-4c73-a0b7-62f53e2d8d4a",
"automation": "- alias: Carbon dioxide alert\n id: 5c2a3b8f-9bc7-4c73-a0b7-62f53e2d8d4a\n mode: queued\n max: 10\n triggers:\n - trigger: template\n value_template: '{{ (states(''sensor.co2_in_nursery'') | int(0)) >= 1000 }}'\n for:\n minutes: 10\n - trigger: template\n value_template: '{{ (states(''sensor.co2_in_livingroom'') | int(0)) >= 1000 }}'\n for:\n minutes: 10\n - trigger: template\n value_template: '{{ (states(''sensor.co2_in_bedroom'') | int(0)) >= 1000 }}'\n for:\n minutes: 10\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: \"Повышенное содержание углекислого газа в \\n{%- if 'nursery' in trigger.entity_id\\\n \\ %} *Детской*\\n{%- elif 'livingroom' in trigger.entity_id %} *Гостиной*\\n\\\n {%- elif 'bedroom' in trigger.entity_id %} *Спальне*\\n{%- endif %} (*{{ states(trigger.entity_id)\\\n \\ }}* ppm).\\nНеобходимо проветрить комнату.\"",
"config": [
{
"name": "co2 in nursery sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.co2_in_nursery",
"device_id": null
}
},
{
"name": "co2 in livingroom sensor",
"room": "living_room",
"type": "sensor",
"id": {
"entity_id": "sensor.co2_in_livingroom",
"device_id": null
}
},
{
"name": "co2 in bedroom sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.co2_in_bedroom",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "cb5e25c1-dcb7-4b75-a6c4-6b12eb84f86b",
"automation": "- alias: Domofon - Opened by Button Notification\n id: cb5e25c1-dcb7-4b75-a6c4-6b12eb84f86b\n triggers:\n trigger: state\n entity_id: binary_sensor.domofon_button\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.domofon_incoming_call\n state: 'on'\n actions:\n action: notify.telegram_group_flat_1\n data:\n message: '_Домофон_: открыт кнопкой'",
"config": [
{
"name": "domofon button sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.domofon_button",
"device_id": null
}
},
{
"name": "domofon incoming call sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.domofon_incoming_call",
"device_id": null
}
}
]
},
{
"id": "741a9858-1687-4b2d-8afd-73373e8cc8ba",
"automation": "- alias: Domofon - Incoming Call Notification\n id: 741a9858-1687-4b2d-8afd-73373e8cc8ba\n triggers:\n trigger: state\n entity_id: binary_sensor.domofon_incoming_call\n to: 'on'\n actions:\n - parallel:\n - action: notify.telegram_group_flat_1\n data:\n message: '_Домофон_: входящий звонок... {% if is_state(''switch.domofon_automatically_open'',\n ''on'') or is_state(''switch.domofon_automatically_open_once'', ''on'')\n %}(*откроется автоматически*){% endif %}'\n data:\n inline_keyboard:\n - '{{ ''-'' if is_state(''switch.domofon_automatically_open'', ''on'') or\n is_state(''switch.domofon_automatically_open_once'', ''on'') else ''Открыть:/domofon_open,\n Отклонить:/domofon_reject'' }}'\n - sequence:\n - condition: '{{ is_state(''switch.domofon_automatically_open_once'', ''off'')\n }}'\n - action: script.domofon_alice_notify",
"config": [
{
"name": "domofon incoming call sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.domofon_incoming_call",
"device_id": null
}
},
{
"name": "domofon automatically open switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_automatically_open",
"device_id": null
}
},
{
"name": "domofon automatically open once switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_automatically_open_once",
"device_id": null
}
}
]
},
{
"id": "Domofon - Alice Intent control",
"automation": "- alias: Domofon - Alice Intent control\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Открой домофон\n id: open\n actions:\n choose:\n - alias: Open Door\n conditions:\n - condition: trigger\n id: open\n sequence:\n - action: esphome.domofon_accept_call",
"config": []
},
{
"id": "99d5c580-c382-48b3-bd2d-f6eb00b62c31",
"automation": "- alias: Domofon - Telegram Control - domofon_open\n id: 99d5c580-c382-48b3-bd2d-f6eb00b62c31\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /domofon_open\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: '{{ ''Открываю...'' if is_state(''binary_sensor.domofon_incoming_call'',\n ''on'') else ''Нет входящего звонка'' }}'\n - action: esphome.domofon_accept_call\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n message: '_Домофон_: входящий звонок...\n\n {{ ''Домофон *открыт*'' if is_state(''binary_sensor.domofon_incoming_call'',\n ''on'') else '''' }}\n\n '",
"config": [
{
"name": "domofon incoming call sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.domofon_incoming_call",
"device_id": null
}
}
]
},
{
"id": "a50fb75b-0083-4866-8496-bdd013332a88",
"automation": "- alias: Domofon - Telegram Control - domofon_reject\n id: a50fb75b-0083-4866-8496-bdd013332a88\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /domofon_reject\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: '{{ ''Отклоняю...'' if is_state(''binary_sensor.domofon_incoming_call'',\n ''on'') else ''Нет входящего звонка'' }}'\n - action: esphome.domofon_reject_call\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n message: '_Домофон_: входящий звонок...\n\n {{ ''Звонок *сброшен*'' if is_state(''binary_sensor.domofon_incoming_call'',\n ''on'') else '''' }}\n\n '",
"config": [
{
"name": "domofon incoming call sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.domofon_incoming_call",
"device_id": null
}
}
]
},
{
"id": "97a74c5f-6a9f-4af6-9f8e-2a7fcd0a5070",
"automation": "- alias: Domofon - Mute and UnMute by Time\n id: 97a74c5f-6a9f-4af6-9f8e-2a7fcd0a5070\n triggers:\n - platform: time\n at: '21:00:00'\n - platform: time\n at: 08:00:00\n actions:\n - action: \"{% if trigger.now.hour == 21 -%}\\n switch.turn_on\\n{% elif trigger.now.hour\\\n \\ == 8 -%}\\n switch.turn_off\\n{% endif %}\"\n data:\n entity_id: switch.domofon_mute_sound",
"config": [
{
"name": "domofon mute sound switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_mute_sound",
"device_id": null
}
}
]
},
{
"id": "6cac01e7-945c-4f37-8b2d-d75e03107d76",
"automation": "- alias: Domofon - ESP Board Lost Connection\n id: 6cac01e7-945c-4f37-8b2d-d75e03107d76\n triggers:\n - trigger: state\n entity_id: binary_sensor.domofon_status\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ha_shutdown'') == ''off'' }}'\n - condition: template\n value_template: '{{ states(''sensor.ha_uptime'') > ''1'' }}'\n actions:\n - action: notify.telegram_group_system\n data:\n message: \"*Внимание*\\n{% if trigger.to_state.state == 'off' -%}\\n _Домофон_:\\\n \\ потеряно подключение к HA.\\n{% elif trigger.to_state.state == 'on' -%}\\n\\\n \\ _Домофон_: восстановлено подключение к HA\\n{% endif %}\\n\"",
"config": [
{
"name": "ha shutdown input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ha_shutdown",
"device_id": null
}
},
{
"name": "ha uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ha_uptime",
"device_id": null
}
},
{
"name": "domofon status sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.domofon_status",
"device_id": null
}
}
]
},
{
"id": "c916925d-cd33-4f30-882b-4049e52acf12",
"automation": "- alias: Domofon - Open Once for Couriers\n id: c916925d-cd33-4f30-882b-4049e52acf12\n triggers:\n - trigger: state\n entity_id:\n - sensor.kb2003_last_notification\n - sensor.2109119dg_last_notification\n condition:\n - or:\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''Курьер .* будет\n у вас в течение .*'') }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''В течение .* курьер\n .* будет у вас'') }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''Курьер в пути. .*'')\n }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''Курьер забрал заказ\n и везёт его к вам'') }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''Везёт заказ из Маркет\n Express'') }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''Уже спешит к вам'')\n }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''Будет через *.'')\n }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''Скоро заказ будет\n у вас'') }}'\n - condition: template\n value_template: '{{ trigger.to_state.state | regex_search(''И уже спешит доставить\n его вам'') }}'\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.domofon_automatically_open_once\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n message: '_Домофон_: Курьер уже в пути, домофон откроется автоматически.'\n inline_keyboard:\n - Отключить звук:/domofon_mute_once",
"config": [
{
"name": "domofon automatically open switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_automatically_open",
"device_id": null
}
},
{
"name": "domofon automatically open once switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_automatically_open_once",
"device_id": null
}
},
{
"name": "kb2003 last notification sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.kb2003_last_notification",
"device_id": null
}
},
{
"name": "2109119dg last notification sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.2109119dg_last_notification",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "97093f78-f059-4918-b451-ca50f698a49d",
"automation": "- alias: Domofon - Telegram Control - domofon_mute_once\n id: 97093f78-f059-4918-b451-ca50f698a49d\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /domofon_mute_once\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: switch.turn_on\n target:\n entity_id: switch.domofon_mute_sound_once\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n message: '_Домофон_: Курьер уже в пути, домофон откроется автоматически.\n\n Звонок домофона *отключен* (однократно).\n\n '",
"config": [
{
"name": "domofon mute sound switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_mute_sound",
"device_id": null
}
},
{
"name": "domofon mute sound once switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_mute_sound_once",
"device_id": null
}
}
]
},
{
"id": "40d4a1f6-576c-438a-b20f-ba161d9bd3ee",
"automation": "- alias: Domofon - Open Once at Enter to Home Zone\n id: 40d4a1f6-576c-438a-b20f-ba161d9bd3ee\n max_exceeded: silent\n triggers:\n - trigger: zone\n entity_id:\n - person.alexander\n - person.irina\n zone: zone.domofon\n event: enter\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.domofon_automatically_open_once\n - action: switch.turn_on\n target:\n entity_id: switch.domofon_mute_sound_once\n - action: notify.telegram_group_flat_1\n data:\n message: '_Домофон_: включен режим однократного авто-открытия.'\n - wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.0x158d00031c790f_contact\n to: 'on'\n timeout: 00:10:00\n - choose:\n - conditions: '{{ is_state(''switch.domofon_automatically_open_once'', ''on'')\n }}'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.domofon_automatically_open_once\n - action: switch.turn_off\n target:\n entity_id: switch.domofon_mute_sound_once\n - action: notify.telegram_group_flat_1\n data:\n message: '_Домофон_: отключен режим однократного авто-открытия.'",
"config": [
{
"name": "person alexander",
"room": null,
"type": "person",
"id": {
"entity_id": "person.alexander",
"device_id": null
}
},
{
"name": "person irina",
"room": null,
"type": "person",
"id": {
"entity_id": "person.irina",
"device_id": null
}
},
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
},
{
"name": "domofon automatically open switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_automatically_open",
"device_id": null
}
},
{
"name": "domofon automatically open once switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_automatically_open_once",
"device_id": null
}
},
{
"name": "domofon mute sound switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_mute_sound",
"device_id": null
}
},
{
"name": "domofon mute sound once switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.domofon_mute_sound_once",
"device_id": null
}
},
{
"name": "zone domofon",
"room": null,
"type": "zone",
"id": {
"entity_id": "zone.domofon",
"device_id": null
}
}
]
},
{
"id": "420fe43c-f00d-46b6-a787-032b0c58bd47",
"automation": "- alias: Doorbell Ringing\n id: 420fe43c-f00d-46b6-a787-032b0c58bd47\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.doorbell_ringing\n to: 'on'\n actions:\n - choose:\n - alias: Mute On\n conditions: '{{ is_state(''input_boolean.doorbell_mute'', ''on'') }}'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.galaxy_tab_a_8_0_2019_screen\n - action: button.press\n target:\n entity_id: button.galaxy_tab_a_8_0_2019_load_start_url\n - action: telegram_bot.send_photo\n data:\n target: secret tlg_group_flat_1\n url: secret reolinkcam_01_snapshot_url\n verify_ssl: false\n caption: '*Внимание*, в дверь звонят _(звонок отключен)_'\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n message: secret look_at_cam_reolinkcam_01\n - action: media_player.play_media\n target:\n entity_id: media_player.yandex_station_mini2_gostinaia\n data:\n media_content_id: Внимание, в дверь звонят\n media_content_type: text\n extra:\n volume_level: '{% set time = now().hour %}{% if time >= 21 or time < 9\n %}0.5{% else %}0.7{% endif %}'\n - alias: Mute Off\n conditions: \"{{\\n is_state('input_boolean.doorbell_mute', 'off') and\\n is_state('switch.sonoff_mini_r2_01_doorbell','off')\\n\\\n }}\\n\"\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.sonoff_mini_r2_01_doorbell\n - action: switch.turn_on\n target:\n entity_id: switch.galaxy_tab_a_8_0_2019_screen\n - action: button.press\n target:\n entity_id: button.galaxy_tab_a_8_0_2019_load_start_url\n - action: telegram_bot.send_photo\n data:\n target: secret tlg_group_flat_1\n url: secret reolinkcam_01_snapshot_url\n verify_ssl: false\n caption: '*Внимание*, в дверь звонят'\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n message: secret look_at_cam_reolinkcam_01",
"config": [
{
"name": "yandex station mini2 гостиная",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_gostinaia",
"device_id": null
}
},
{
"name": "doorbell ringing sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.doorbell_ringing",
"device_id": null
}
},
{
"name": "doorbell mute input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.doorbell_mute",
"device_id": null
}
},
{
"name": "sonoff mini r2 01 doorbell switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.sonoff_mini_r2_01_doorbell",
"device_id": null
}
},
{
"name": "galaxy tab a 8 0 2019 screen switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.galaxy_tab_a_8_0_2019_screen",
"device_id": null
}
},
{
"name": "galaxy tab a 8 0 2019 load start url button",
"room": null,
"type": "button",
"id": {
"entity_id": "button.galaxy_tab_a_8_0_2019_load_start_url",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "325f3e23-39b1-47f5-a415-e5da5e4845e3",
"automation": "- alias: Doorbell - Mute and UnMute by Time\n id: 325f3e23-39b1-47f5-a415-e5da5e4845e3\n triggers:\n - trigger: time\n at: '21:00:00'\n id: turn_on\n - trigger: time\n at: 08:00:00\n id: turn_off\n actions:\n choose:\n - alias: Mute On\n conditions:\n - condition: trigger\n id: turn_on\n sequence:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.doorbell_mute\n - alias: Mute Off\n conditions:\n - condition: trigger\n id: turn_off\n sequence:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.doorbell_mute",
"config": [
{
"name": "doorbell mute input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.doorbell_mute",
"device_id": null
}
}
]
},
{
"id": "7dc9e636-2951-407e-b50f-31d6b0b22961",
"automation": "- alias: Energy - Apartment - Set Start Time of Tariffs\n id: 7dc9e636-2951-407e-b50f-31d6b0b22961\n triggers:\n - trigger: time_pattern\n hours: /1\n minutes: '15'\n conditions: '{{ not states(''sensor.mes_07762_153_47_account'') in (''unavailable'')\n }}'\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.apartment_enegry_start_time_peak_1\n data:\n time: '{% set time = (state_attr(''sensor.mes_07762_153_47_account'', ''zone_t1_description'')\n | regex_findall_index(''^(\\d+-\\d+)'')).replace(''-'','':'') -%} {% if (time.split('':'')[0]\n | int) < 10 %}0{{ time }}:00{% else %}{{ time }}:00{% endif %}\n\n '\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.apartment_enegry_start_time_peak_2\n data:\n time: '{% set time = (state_attr(''sensor.mes_07762_153_47_account'', ''zone_t1_description'')\n | regex_findall_index('',.(\\d+-\\d+)'')).replace(''-'','':'') -%} {% if (time.split('':'')[0]\n | int) < 10 -%}0{{ time }}:00{%- else -%}{{ time }}:00{% endif %}\n\n '\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.apartment_enegry_start_time_halfpeak_1\n data:\n time: '{% set time = (state_attr(''sensor.mes_07762_153_47_account'', ''zone_t3_description'')\n | regex_findall_index(''^(\\d+-\\d+)'')).replace(''-'','':'') -%} {% if (time.split('':'')[0]\n | int) < 10 %}0{{ time }}:00{% else %}{{ time }}:00{% endif %}\n\n '\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.apartment_enegry_start_time_halfpeak_2\n data:\n time: '{% set time = (state_attr(''sensor.mes_07762_153_47_account'', ''zone_t3_description'')\n | regex_findall_index('',.(\\d+-\\d+)'')).replace(''-'','':'') -%} {% if (time.split('':'')[0]\n | int) < 10 -%}0{{ time }}:00{%- else -%}{{ time }}:00{% endif %}\n\n '\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.apartment_enegry_start_time_night\n data:\n time: '{% set time = (state_attr(''sensor.mes_07762_153_47_account'', ''zone_t2_description'')\n | regex_findall_index(''^(\\d+-\\d+)'')).replace(''-'','':'') -%} {% if (time.split('':'')[0]\n | int) < 10 %}0{{ time }}:00{% else %}{{ time }}:00{% endif %}\n\n '",
"config": [
{
"name": "mes 07762 153 47 account sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.mes_07762_153_47_account",
"device_id": null
}
},
{
"name": "apartment enegry start time peak 1 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_peak_1",
"device_id": null
}
},
{
"name": "apartment enegry start time peak 2 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_peak_2",
"device_id": null
}
},
{
"name": "apartment enegry start time halfpeak 1 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_halfpeak_1",
"device_id": null
}
},
{
"name": "apartment enegry start time halfpeak 2 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_halfpeak_2",
"device_id": null
}
},
{
"name": "apartment enegry start time night input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_night",
"device_id": null
}
}
]
},
{
"id": "0266f51b-5a79-4c13-b925-f50952cc49ed",
"automation": "- alias: Energy - Apartment - Set Current Tariff\n id: 0266f51b-5a79-4c13-b925-f50952cc49ed\n triggers:\n - trigger: time\n at:\n - input_datetime.apartment_enegry_start_time_peak_1\n - input_datetime.apartment_enegry_start_time_peak_2\n id: peak\n - trigger: time\n at:\n - input_datetime.apartment_enegry_start_time_halfpeak_1\n - input_datetime.apartment_enegry_start_time_halfpeak_2\n id: halfpeak\n - trigger: time\n at: input_datetime.apartment_enegry_start_time_night\n id: night\n actions:\n choose:\n - alias: Set Peak Tariff\n conditions:\n - condition: trigger\n id: peak\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.apartment_enegry_cost_current\n data:\n value: '{{ states(''sensor.apartment_enegry_cost_peak'') | float(0) }}'\n - action: select.select_option\n target:\n entity_id: group.all_energy_utility_meters\n data:\n option: peak\n - alias: Set Halfpeak Tariff\n conditions:\n - condition: trigger\n id: halfpeak\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.apartment_enegry_cost_current\n data:\n value: '{{ states(''sensor.apartment_enegry_cost_halfpeak'') | float(0)\n }}'\n - action: select.select_option\n target:\n entity_id: group.all_energy_utility_meters\n data:\n option: halfpeak\n - alias: Set Night Tariff\n conditions:\n - condition: trigger\n id: night\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.apartment_enegry_cost_current\n data:\n value: '{{ states(''sensor.apartment_enegry_cost_night'') | float(0) }}'\n - action: select.select_option\n target:\n entity_id: group.all_energy_utility_meters\n data:\n option: night",
"config": [
{
"name": "apartment enegry start time peak 1 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_peak_1",
"device_id": null
}
},
{
"name": "apartment enegry start time peak 2 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_peak_2",
"device_id": null
}
},
{
"name": "apartment enegry start time halfpeak 1 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_halfpeak_1",
"device_id": null
}
},
{
"name": "apartment enegry start time halfpeak 2 input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_halfpeak_2",
"device_id": null
}
},
{
"name": "apartment enegry start time night input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.apartment_enegry_start_time_night",
"device_id": null
}
},
{
"name": "apartment enegry cost current input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.apartment_enegry_cost_current",
"device_id": null
}
},
{
"name": "apartment enegry cost peak sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.apartment_enegry_cost_peak",
"device_id": null
}
},
{
"name": "apartment enegry cost halfpeak sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.apartment_enegry_cost_halfpeak",
"device_id": null
}
},
{
"name": "apartment enegry cost night sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.apartment_enegry_cost_night",
"device_id": null
}
},
{
"name": "all energy utility meters group",
"room": null,
"type": "select",
"id": {
"entity_id": "group.all_energy_utility_meters",
"device_id": null
}
}
]
},
{
"id": "7acc6aec-3319-44e8-bf1c-dc36109f1b89",
"automation": "- alias: RSS feed notifications\n id: 7acc6aec-3319-44e8-bf1c-dc36109f1b89\n mode: queued\n max: 100\n triggers:\n trigger: event\n event_type: feedreader\n actions:\n - choose:\n - alias: Home Assistant News and Blog Posts\n conditions:\n condition: template\n value_template: '{{ trigger.event.data.link | regex_search(''www.home-assistant.io'')\n and (states(''sensor.ha_uptime'') | int) > 1 }}\n\n '\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n disable_web_page_preview: true\n parse_mode: html\n title: '<i>INFO</i>:'\n message: 'Новое пост на www.home-assistant.io:\n\n <b>{{ trigger.event.data.title }}</b>\n\n {{ trigger.event.data.link }}\n\n '\n - alias: Home Assistant Alerts\n conditions:\n condition: template\n value_template: '{{ trigger.event.data.link | regex_search(''alerts.home-assistant.io'')\n }}\n\n '\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n disable_web_page_preview: true\n parse_mode: html\n title: <b>Внимание</b>\n message: 'Новое сообщение на alerts.home-assistant.io:\n\n <b>{{ trigger.event.data.title }}</b>\n\n {{ trigger.event.data.link }}\n\n '\n - alias: MCHS Moscow Alerts\n conditions:\n condition: template\n value_template: '{{ trigger.event.data.link | regex_search(''moscow.mchs.gov.ru'')\n }}\n\n '\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n title: <b>Внимание</b>\n message: 'Новое оповещение от МЧС (Москва):\n\n <b>{{ trigger.event.data.title }}</b>\n\n {{ trigger.event.data.link }}'",
"config": [
{
"name": "ha uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ha_uptime",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "816f1400-5e51-4e5c-bc3a-f07e1e4202dd",
"automation": "- alias: GitHub HA Repo - Push config\n id: 816f1400-5e51-4e5c-bc3a-f07e1e4202dd\n mode: queued\n max: 5\n triggers:\n - trigger: state\n entity_id: input_button.git_commint_and_push\n id: button\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.git_time_to_push\n id: timer_finished\n - trigger: state\n entity_id: input_boolean.git_autocommit\n from: 'off'\n to: 'on'\n id: enable\n - trigger: state\n entity_id: sensor.git_number_of_modified_files\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n id: files\n actions:\n choose:\n - conditions: '{{ trigger.id == ''button'' }}'\n sequence:\n - action: shell_command.git_commint_and_push\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.git_number_of_modified_files\n - conditions: '{{ trigger.id == ''enable'' }}'\n sequence:\n - if:\n - '{{ (states(''sensor.git_number_of_modified_files'') | int(0)) > 0 }}'\n then:\n - action: timer.start\n target:\n entity_id: timer.git_time_to_push\n - conditions: '{{ trigger.id == ''timer_finished'' }}'\n sequence:\n - if:\n - '{{ is_state(''input_boolean.git_autocommit'', ''on'') }}'\n then:\n - action: shell_command.git_commint_and_push\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.git_number_of_modified_files\n else:\n - action: timer.start\n target:\n entity_id: timer.git_time_to_push\n - conditions: '{{ trigger.id == ''files'' }}'\n sequence:\n choose:\n - conditions: '{{ (trigger.to_state.state | int(0)) == 0 }}'\n sequence:\n - action: timer.cancel\n target:\n entity_id: timer.git_time_to_push\n - conditions: '{{ (trigger.to_state.state | int(0)) > (trigger.from_state.state\n | int(0)) }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.git_time_to_push",
"config": [
{
"name": "git commint and push input button",
"room": null,
"type": "input_button",
"id": {
"entity_id": "input_button.git_commint_and_push",
"device_id": null
}
},
{
"name": "git time to push timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.git_time_to_push",
"device_id": null
}
},
{
"name": "git autocommit input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.git_autocommit",
"device_id": null
}
},
{
"name": "git number of modified files sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.git_number_of_modified_files",
"device_id": null
}
}
]
},
{
"id": "b8a8f7d3-1875-4271-b576-1586f2ab425f",
"automation": "- alias: GitHub HA Repo - Stars\n id: b8a8f7d3-1875-4271-b576-1586f2ab425f\n triggers:\n - trigger: webhook\n webhook_id: secret github_ha_repo_stars_webhook\n local_only: false\n allowed_methods:\n - POST\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n parse_mode: html\n disable_web_page_preview: true\n title: '<b>GitHub HA Repo</b>:'\n message: 'Star {{ trigger.json.action }}\n\n https://github.com/avbor/HomeAssistantConfig/stargazers'",
"config": [
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "992f84be-ee32-497c-833f-7ddc8eb574a4",
"automation": "- alias: Smartmi Humidifier - Заданчивается вода\n id: 992f84be-ee32-497c-833f-7ddc8eb574a4\n triggers:\n trigger: numeric_state\n entity_id:\n - sensor.smartmi_humidifier_01_detskaia_water_level\n - sensor.smartmi_humidifier_02_spalnia_water_level\n below: 15\n conditions:\n condition: template\n value_template: '{{ (trigger.to_state.state | int) != 0 }}'\n actions:\n - action: notify.telegram_group_system\n data:\n message: '{% if ''_01_'' in trigger.entity_id -%} *Smartmi Humidifier 01* (Детская):\n заканчивается вода (осталось *{{ trigger.to_state.state }}*%)! {% elif ''_02_''\n in trigger.entity_id -%} *Smartmi Humidifier 02* (Спальня): заканчивается\n вода (осталось *{{ trigger.to_state.state }}*%)! {% endif -%}'",
"config": [
{
"name": "smartmi humidifier 01 детская water level sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_01_detskaia_water_level",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня water level sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_02_spalnia_water_level",
"device_id": null
}
}
]
},
{
"id": "41f9fd8c-50e9-43d3-8f1a-777705683f72",
"automation": "- alias: Smartmi Humidifier - Выключение по остатку воды\n id: 41f9fd8c-50e9-43d3-8f1a-777705683f72\n triggers:\n trigger: numeric_state\n entity_id:\n - sensor.smartmi_humidifier_01_detskaia_water_level\n - sensor.smartmi_humidifier_02_spalnia_water_level\n below: 10\n conditions:\n condition: template\n value_template: '{{ (trigger.to_state.state | int) != 0 }}'\n actions:\n - action: humidifier.turn_off\n target:\n entity_id: '{% if ''_01_'' in trigger.entity_id -%} humidifier.smartmi_humidifier_01_detskaia\n {% elif ''_02_'' in trigger.entity_id -%} humidifier.smartmi_humidifier_02_spalnia\n {% endif -%}'\n - action: notify.telegram_group_system\n data:\n message: '{% if ''_01_'' in trigger.entity_id -%} *Smartmi Humidifier 01* (Детская):\n выключен (остаток воды *{{ trigger.to_state.state }}*%)! {% elif ''_02_''\n in trigger.entity_id -%} *Smartmi Humidifier 02* (Спальня): выключен (остаток\n воды *{{ trigger.to_state.state }}*%)! {% endif -%}'",
"config": [
{
"name": "smartmi humidifier 01 детская water level sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_01_detskaia_water_level",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня water level sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_02_spalnia_water_level",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская humidifier",
"room": "nursery",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_01_detskaia",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня humidifier",
"room": "bedroom",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_02_spalnia",
"device_id": null
}
}
]
},
{
"id": "dd7a9cd6-0161-4af7-9dce-3359e27dfb7c",
"automation": "- alias: Smartmi Humidifier 01 - Выбор режима\n id: dd7a9cd6-0161-4af7-9dce-3359e27dfb7c\n triggers:\n trigger: state\n entity_id: input_select.smartmi_humidifier_01_detskaia_mode\n actions:\n action: script.set_smartmi_humidifier_mode\n data:\n humidifier_entity: humidifier.smartmi_humidifier_01_detskaia\n humidifier_mode: '{{ trigger.to_state.state }}'",
"config": [
{
"name": "smartmi humidifier 01 детская humidifier",
"room": "nursery",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_01_detskaia",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская mode input select",
"room": "nursery",
"type": "input_select",
"id": {
"entity_id": "input_select.smartmi_humidifier_01_detskaia_mode",
"device_id": null
}
}
]
},
{
"id": "8d2b93ea-d103-42e7-90bb-8ee4ca5c0648",
"automation": "- alias: Smartmi Humidifier 01 - Mode Revers Sync\n id: 8d2b93ea-d103-42e7-90bb-8ee4ca5c0648\n triggers:\n - trigger: state\n entity_id: sensor.smartmi_humidifier_01_detskaia_mode\n to:\n - Auto\n - Silent\n - Medium\n - High\n not_from:\n - unavailable\n - unknown\n actions:\n - if:\n - '{{ states(''sensor.smartmi_humidifier_01_detskaia_mode'') != states(''input_select.smartmi_humidifier_01_detskaia_mode'')\n }}'\n then:\n - action: input_select.select_option\n target:\n entity_id: input_select.smartmi_humidifier_01_detskaia_mode\n data:\n option: '{{ states(''sensor.smartmi_humidifier_01_detskaia_mode'') }}'",
"config": [
{
"name": "smartmi humidifier 01 детская mode input select",
"room": "nursery",
"type": "input_select",
"id": {
"entity_id": "input_select.smartmi_humidifier_01_detskaia_mode",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская mode sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_01_detskaia_mode",
"device_id": null
}
}
]
},
{
"id": "cb8d8af5-8a41-4ed8-a1c1-05b4a823fcdd",
"automation": "- alias: Увлажнение детской - Старт [время]\n id: cb8d8af5-8a41-4ed8-a1c1-05b4a823fcdd\n triggers:\n trigger: time\n at: '20:00:00'\n conditions:\n - condition: state\n entity_id: humidifier.smartmi_humidifier_01_detskaia\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.humidity_in_nursery\n below: input_number.target_humidity_01_detskaia\n - condition: numeric_state\n entity_id: sensor.smartmi_humidifier_01_detskaia_water_level\n above: 25\n actions:\n action: humidifier.turn_on\n target:\n entity_id: humidifier.smartmi_humidifier_01_detskaia",
"config": [
{
"name": "humidity in nursery sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_nursery",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская water level sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_01_detskaia_water_level",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская humidifier",
"room": "nursery",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_01_detskaia",
"device_id": null
}
},
{
"name": "target humidity 01 детская input number",
"room": "nursery",
"type": "input_number",
"id": {
"entity_id": "input_number.target_humidity_01_detskaia",
"device_id": null
}
}
]
},
{
"id": "e2a3cd54-5f73-4e8c-b110-483c2f6be654",
"automation": "- alias: Увлажнение детской - Стоп [время]\n id: e2a3cd54-5f73-4e8c-b110-483c2f6be654\n triggers:\n trigger: time\n at: 07:00:00\n conditions:\n - condition: state\n entity_id: humidifier.smartmi_humidifier_01_detskaia\n state: 'on'\n - condition: state\n entity_id: input_boolean.smartmi_humidifier_01_detskaia_autocontrol\n state: 'off'\n actions:\n action: humidifier.turn_off\n target:\n entity_id: humidifier.smartmi_humidifier_01_detskaia",
"config": [
{
"name": "smartmi humidifier 01 детская humidifier",
"room": "nursery",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_01_detskaia",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская autocontrol input boolean",
"room": "nursery",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.smartmi_humidifier_01_detskaia_autocontrol",
"device_id": null
}
}
]
},
{
"id": "c948d3e9-40c8-48f8-a8d8-dba65319d61b",
"automation": "- alias: Увлажнение детской - Старт [Влажность]\n id: c948d3e9-40c8-48f8-a8d8-dba65319d61b\n triggers:\n trigger: state\n entity_id:\n - sensor.humidity_in_nursery\n - input_number.target_humidity_01_detskaia\n - input_boolean.smartmi_humidifier_01_detskaia_autocontrol\n conditions:\n - condition: state\n entity_id: input_boolean.smartmi_humidifier_01_detskaia_autocontrol\n state: 'on'\n - condition: template\n value_template: '{{ (states(''sensor.humidity_in_nursery'') | round(0)) < (states(''input_number.target_humidity_01_detskaia'')\n | int) }}\n\n '\n - condition: state\n entity_id: humidifier.smartmi_humidifier_01_detskaia\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.smartmi_humidifier_01_detskaia_water_level\n above: 15\n actions:\n - action: humidifier.turn_on\n target:\n entity_id: humidifier.smartmi_humidifier_01_detskaia",
"config": [
{
"name": "humidity in nursery sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_nursery",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская water level sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_01_detskaia_water_level",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская humidifier",
"room": "nursery",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_01_detskaia",
"device_id": null
}
},
{
"name": "target humidity 01 детская input number",
"room": "nursery",
"type": "input_number",
"id": {
"entity_id": "input_number.target_humidity_01_detskaia",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская autocontrol input boolean",
"room": "nursery",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.smartmi_humidifier_01_detskaia_autocontrol",
"device_id": null
}
}
]
},
{
"id": "ce34b5e0-d1d9-45b0-8a66-65eb392383ec",
"automation": "- alias: Увлажнение детской - Стоп [Влажность]\n id: ce34b5e0-d1d9-45b0-8a66-65eb392383ec\n triggers:\n trigger: state\n entity_id:\n - sensor.humidity_in_nursery\n - input_number.target_humidity_01_detskaia\n - input_boolean.smartmi_humidifier_01_detskaia_autocontrol\n conditions:\n - condition: state\n entity_id: input_boolean.smartmi_humidifier_01_detskaia_autocontrol\n state: 'on'\n - condition: template\n value_template: '{{ (states(''sensor.humidity_in_nursery'') | round(0)) >= (states(''input_number.target_humidity_01_detskaia'')\n | int) }}\n\n '\n - condition: state\n entity_id: humidifier.smartmi_humidifier_01_detskaia\n state: 'on'\n actions:\n - action: humidifier.turn_off\n target:\n entity_id: humidifier.smartmi_humidifier_01_detskaia",
"config": [
{
"name": "humidity in nursery sensor",
"room": "nursery",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_nursery",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская humidifier",
"room": "nursery",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_01_detskaia",
"device_id": null
}
},
{
"name": "target humidity 01 детская input number",
"room": "nursery",
"type": "input_number",
"id": {
"entity_id": "input_number.target_humidity_01_detskaia",
"device_id": null
}
},
{
"name": "smartmi humidifier 01 детская autocontrol input boolean",
"room": "nursery",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.smartmi_humidifier_01_detskaia_autocontrol",
"device_id": null
}
}
]
},
{
"id": "23a943a3-9594-4392-bdb4-468eccc9a50b",
"automation": "- alias: Smartmi Humidifier 02 - Выбор режима\n id: 23a943a3-9594-4392-bdb4-468eccc9a50b\n triggers:\n trigger: state\n entity_id: input_select.smartmi_humidifier_02_spalnia_mode\n actions:\n action: script.set_smartmi_humidifier_mode\n data:\n humidifier_entity: humidifier.smartmi_humidifier_02_spalnia\n humidifier_mode: '{{ trigger.to_state.state }}'",
"config": [
{
"name": "smartmi humidifier 02 спальня humidifier",
"room": "bedroom",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_02_spalnia",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.smartmi_humidifier_02_spalnia_mode",
"device_id": null
}
}
]
},
{
"id": "501ee548-817e-4210-af88-dcbbd2d4d2de",
"automation": "- alias: Smartmi Humidifier 02 - Mode Revers Sync\n id: 501ee548-817e-4210-af88-dcbbd2d4d2de\n triggers:\n - trigger: state\n entity_id: sensor.smartmi_humidifier_02_spalnia_mode\n to:\n - Auto\n - Silent\n - Medium\n - High\n not_from:\n - unavailable\n - unknown\n actions:\n - if:\n - '{{ states(''sensor.smartmi_humidifier_02_spalnia_mode'') != states(''input_select.smartmi_humidifier_02_spalnia_mode'')\n }}'\n then:\n - action: input_select.select_option\n target:\n entity_id: input_select.smartmi_humidifier_02_spalnia_mode\n data:\n option: '{{ states(''sensor.smartmi_humidifier_02_spalnia_mode'') }}'",
"config": [
{
"name": "smartmi humidifier 02 спальня mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.smartmi_humidifier_02_spalnia_mode",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня mode sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_02_spalnia_mode",
"device_id": null
}
}
]
},
{
"id": "a9f8c4d8-7b10-4128-8411-1aa68a330760",
"automation": "- alias: Увлажнение спальни - Старт [Влажность]\n id: a9f8c4d8-7b10-4128-8411-1aa68a330760\n triggers:\n trigger: state\n entity_id:\n - sensor.humidity_in_bedroom\n - input_number.target_humidity_02_spalnia\n - input_boolean.smartmi_humidifier_02_spalnia_autocontrol\n conditions:\n - condition: state\n entity_id: input_boolean.smartmi_humidifier_02_spalnia_autocontrol\n state: 'on'\n - condition: template\n value_template: '{{ (states(''sensor.humidity_in_bedroom'') | round(0)) < (states(''input_number.target_humidity_02_spalnia'')\n | int) }}\n\n '\n - condition: state\n entity_id: humidifier.smartmi_humidifier_02_spalnia\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.smartmi_humidifier_02_spalnia_water_level\n above: 15\n actions:\n - action: humidifier.turn_on\n target:\n entity_id: humidifier.smartmi_humidifier_02_spalnia",
"config": [
{
"name": "humidity in bedroom sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_bedroom",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня water level sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.smartmi_humidifier_02_spalnia_water_level",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня humidifier",
"room": "bedroom",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_02_spalnia",
"device_id": null
}
},
{
"name": "target humidity 02 спальня input number",
"room": "bedroom",
"type": "input_number",
"id": {
"entity_id": "input_number.target_humidity_02_spalnia",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня autocontrol input boolean",
"room": "bedroom",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.smartmi_humidifier_02_spalnia_autocontrol",
"device_id": null
}
}
]
},
{
"id": "ec2f9de0-dacb-4a84-b0c9-0b5eb8e2b4f9",
"automation": "- alias: Увлажнение спальни - Стоп [Влажность]\n id: ec2f9de0-dacb-4a84-b0c9-0b5eb8e2b4f9\n triggers:\n trigger: state\n entity_id:\n - sensor.humidity_in_bedroom\n - input_number.target_humidity_02_spalnia\n - input_boolean.smartmi_humidifier_02_spalnia_autocontrol\n conditions:\n - condition: state\n entity_id: input_boolean.smartmi_humidifier_02_spalnia_autocontrol\n state: 'on'\n - condition: template\n value_template: '{{ (states(''sensor.humidity_in_bedroom'') | round(0)) >= (states(''input_number.target_humidity_02_spalnia'')\n | int) }}\n\n '\n - condition: state\n entity_id: humidifier.smartmi_humidifier_02_spalnia\n state: 'on'\n actions:\n - action: humidifier.turn_off\n target:\n entity_id: humidifier.smartmi_humidifier_02_spalnia",
"config": [
{
"name": "humidity in bedroom sensor",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.humidity_in_bedroom",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня humidifier",
"room": "bedroom",
"type": "humidifier",
"id": {
"entity_id": "humidifier.smartmi_humidifier_02_spalnia",
"device_id": null
}
},
{
"name": "target humidity 02 спальня input number",
"room": "bedroom",
"type": "input_number",
"id": {
"entity_id": "input_number.target_humidity_02_spalnia",
"device_id": null
}
},
{
"name": "smartmi humidifier 02 спальня autocontrol input boolean",
"room": "bedroom",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.smartmi_humidifier_02_spalnia_autocontrol",
"device_id": null
}
}
]
},
{
"id": "24f83b60-8392-4278-8725-6d1a33a0a483",
"automation": "- alias: Kitchen Covers Control by Light\n id: 24f83b60-8392-4278-8725-6d1a33a0a483\n triggers:\n - trigger: numeric_state\n entity_id: sensor.outdoor_illuminance\n below: input_number.kitchen_covers_illuminance_threshold\n for: 00:10:00\n id: dark\n - trigger: numeric_state\n entity_id: sensor.outdoor_illuminance\n above: input_number.kitchen_covers_illuminance_threshold\n for: 00:10:00\n id: lightly\n conditions: '{{ is_state(''input_boolean.kitchen_covers_auto'', ''on'') }}'\n actions:\n choose:\n - alias: Darkens (Close)\n conditions:\n - condition: trigger\n id: dark\n sequence:\n - condition: '{{ states(''cover.kitchen_covers'') in [''open'', ''opening'']\n }}'\n - action: cover.close_cover\n target:\n entity_id: cover.kitchen_covers\n - alias: Brightens (Open)\n conditions:\n - condition: trigger\n id: lightly\n sequence:\n - condition: '{{ states(''cover.kitchen_covers'') in [''closed'', ''closing'']\n }}'\n - action: cover.open_cover\n target:\n entity_id: cover.kitchen_covers",
"config": [
{
"name": "outdoor illuminance sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.outdoor_illuminance",
"device_id": null
}
},
{
"name": "kitchen covers illuminance threshold input number",
"room": "kitchen",
"type": "input_number",
"id": {
"entity_id": "input_number.kitchen_covers_illuminance_threshold",
"device_id": null
}
},
{
"name": "kitchen covers auto input boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.kitchen_covers_auto",
"device_id": null
}
},
{
"name": "kitchen covers cover",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.kitchen_covers",
"device_id": null
}
}
]
},
{
"id": "def20597-6652-43e3-836c-6a1e191967d3",
"automation": "- alias: Kitchen Covers Control by IKEA Switch\n id: def20597-6652-43e3-836c-6a1e191967d3\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 50:32:5f:ff:fe:70:d7:69\n id: ikea_sw_5\n actions:\n choose:\n - alias: 'command: on or move_with_on_off'\n conditions: '{{ trigger.event.data.command in (''on'', ''move_with_on_off'')\n }}'\n sequence:\n - action: cover.open_cover\n target:\n entity_id: cover.kitchen_covers\n - alias: 'command: off or move'\n conditions: '{{ trigger.event.data.command in (''off'', ''move'') }}'\n sequence:\n - action: cover.close_cover\n target:\n entity_id: cover.kitchen_covers\n - alias: 'command: stop'\n conditions: '{{ trigger.event.data.command == ''stop'' }}'\n sequence:\n - action: cover.stop_cover\n target:\n entity_id: cover.kitchen_covers",
"config": [
{
"name": "kitchen covers cover",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.kitchen_covers",
"device_id": null
}
}
]
},
{
"id": "9a24416b-82b6-4fa8-81a7-ea6c71daa727",
"automation": "- alias: Свет в Ванной\n id: 9a24416b-82b6-4fa8-81a7-ea6c71daa727\n mode: queued\n max: 10\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: timer.bathroom_presence\n to: idle\n id: timer_idle\n - trigger: state\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_on_off\n id: magnet\n - trigger: state\n entity_id: binary_sensor.trust_iaszone\n to: 'on'\n id: motion_on\n - trigger: state\n entity_id: binary_sensor.0xa4c138792ba1d268_presence\n to: 'on'\n id: presence_on\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:03:d1:77:62\n command: click\n id: click\n actions:\n choose:\n - alias: Timer Idle\n conditions:\n - condition: trigger\n id: timer_idle\n sequence:\n choose:\n - alias: Presence On\n conditions: '{{ states(''binary_sensor.0xa4c138792ba1d268_presence'') ==\n ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.bathroom_presence\n - alias: Motion On\n conditions: '{{ states(''binary_sensor.trust_iaszone'') == ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.bathroom_presence\n - alias: Motion Off\n conditions: '{{ states(''binary_sensor.trust_iaszone'') == ''off'' }}'\n sequence:\n choose:\n - alias: Motion detected > 5 min ago\n conditions: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.trust_iaszone.last_changed))\n > 300 }}'\n sequence:\n - parallel:\n - sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_04_on_off\n - sequence:\n - condition: '{{ is_state(''fan.bathroom_extractor'', ''on'') }}'\n - condition: '{{ is_state(''binary_sensor.bathroom_high_humidity'',\n ''off'') }}'\n - action: fan.turn_off\n target:\n entity_id: fan.bathroom_extractor\n - alias: Motion detected <= 5 min ago\n conditions: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.trust_iaszone.last_changed))\n <= 300 }}'\n sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_04_on_off\n - delay:\n seconds: 0.3\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_04_on_off\n - wait_template: '{{ is_state(''binary_sensor.trust_iaszone'', ''on'')\n }}'\n timeout: 00:01:00\n - if:\n - '{{ not wait.completed }}'\n then:\n - parallel:\n - sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_04_on_off\n - sequence:\n - condition: '{{ is_state(''fan.bathroom_extractor'', ''on'')\n }}'\n - condition: '{{ is_state(''binary_sensor.bathroom_high_humidity'',\n ''off'') }}'\n - action: fan.turn_off\n target:\n entity_id: fan.bathroom_extractor\n - alias: Magnet\n conditions:\n - condition: trigger\n id: magnet\n sequence:\n choose:\n - alias: To On\n conditions: '{{ trigger.from_state.state == ''off'' and trigger.to_state.state\n == ''on'' }}'\n sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''off'') }}'\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_04_on_off\n - action: timer.start\n target:\n entity_id: timer.bathroom_presence\n - alias: To Off\n conditions: '{{ trigger.from_state.state == ''on'' and trigger.to_state.state\n == ''off'' }}'\n sequence:\n - parallel:\n - sequence:\n - condition: '{{ is_state(''binary_sensor.trust_iaszone'', ''off'')\n }}'\n - condition: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_04_on_off\n - sequence:\n - condition: '{{ is_state(''fan.bathroom_extractor'', ''on'') }}'\n - condition: '{{ is_state(''binary_sensor.bathroom_high_humidity'',\n ''off'') }}'\n - condition: '{{ is_state(''binary_sensor.trust_iaszone'', ''off'')\n }}'\n - action: fan.turn_off\n target:\n entity_id: fan.bathroom_extractor\n - alias: Presence\n conditions:\n - condition: trigger\n id: presence_on\n sequence:\n - action: timer.start\n target:\n entity_id: timer.bathroom_presence\n - alias: Motion\n conditions:\n - condition: trigger\n id: motion_on\n sequence:\n - action: timer.start\n target:\n entity_id: timer.bathroom_presence\n - parallel:\n - sequence:\n - condition: '{{ is_state(''fan.bathroom_extractor'', ''off'') }}'\n - action: fan.turn_on\n target:\n entity_id: fan.bathroom_extractor\n - sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''off'') }}'\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_04_on_off\n - alias: Button\n conditions:\n - condition: trigger\n id: click\n sequence:\n choose:\n - alias: Single click\n conditions: '{{ trigger.event.data.args.click_type == ''single'' }}'\n sequence:\n - action: light.toggle\n data:\n entity_id: light.sonoff_zbmini_04_on_off\n - delay: 00:00:02\n - choose:\n - alias: Light On\n conditions: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''on'')\n }}'\n sequence:\n - action: fan.turn_on\n target:\n entity_id: fan.bathroom_extractor\n - alias: Light Off\n conditions: '{{ is_state(''light.sonoff_zbmini_04_on_off'', ''off'')\n }}'\n sequence:\n - condition: '{{ is_state(''binary_sensor.bathroom_high_humidity'',\n ''off'') }}'\n - action: fan.turn_off\n target:\n entity_id: fan.bathroom_extractor\n - alias: Double click\n conditions: '{{ trigger.event.data.args.click_type == ''double'' }}'\n sequence:\n - action: fan.toggle\n target:\n entity_id: fan.bathroom_extractor",
"config": [
{
"name": "sonoff zbmini 04 on off light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_zbmini_04_on_off",
"device_id": null
}
},
{
"name": "bathroom presence timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.bathroom_presence",
"device_id": null
}
},
{
"name": "lumi lumi sensor magnet on off sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_magnet_on_off",
"device_id": null
}
},
{
"name": "trust iaszone sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.trust_iaszone",
"device_id": null
}
},
{
"name": "0xa4c138792ba1d268 presence sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0xa4c138792ba1d268_presence",
"device_id": null
}
},
{
"name": "bathroom extractor fan",
"room": "bathroom",
"type": "fan",
"id": {
"entity_id": "fan.bathroom_extractor",
"device_id": null
}
},
{
"name": "bathroom high humidity sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bathroom_high_humidity",
"device_id": null
}
}
]
},
{
"id": "9c4552b3-11ee-4364-bf40-2b142c5f97e6",
"automation": "- alias: Ванная - вытяжка\n id: 9c4552b3-11ee-4364-bf40-2b142c5f97e6\n triggers:\n - trigger: state\n entity_id: binary_sensor.bathroom_high_humidity\n to: 'on'\n for:\n minutes: 3\n id: high_humidity\n - trigger: state\n entity_id: binary_sensor.bathroom_high_humidity\n to: 'off'\n for:\n minutes: 10\n id: normal_humidity\n actions:\n choose:\n - alias: High humidity\n conditions:\n - condition: trigger\n id: high_humidity\n sequence:\n - condition: '{{ is_state(''fan.bathroom_extractor'', ''off'') }}'\n - action: fan.turn_on\n target:\n entity_id: fan.bathroom_extractor\n - alias: Normal humidity\n conditions:\n - condition: trigger\n id: normal_humidity\n sequence:\n - condition: '{{ is_state(''fan.bathroom_extractor'', ''on'') }}'\n - action: fan.turn_off\n target:\n entity_id: fan.bathroom_extractor",
"config": [
{
"name": "bathroom extractor fan",
"room": "bathroom",
"type": "fan",
"id": {
"entity_id": "fan.bathroom_extractor",
"device_id": null
}
},
{
"name": "bathroom high humidity sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bathroom_high_humidity",
"device_id": null
}
}
]
},
{
"id": "ffd8dce9-55d7-449c-a5ed-280604c00930",
"automation": "- alias: Кнопки IKEA в Спальне\n id: ffd8dce9-55d7-449c-a5ed-280604c00930\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 84:fd:27:ff:fe:90:a6:46\n id: ikea_sw_1\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 84:fd:27:ff:fe:9e:e4:06\n id: ikea_sw_2\n actions:\n choose:\n - alias: 'command: on'\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''on'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_1001053235\n - alias: 'command: off'\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''off'' }}'\n sequence:\n choose:\n - alias: If Group is On\n conditions:\n - condition: state\n entity_id: group.light_spalnia_bra\n state: 'on'\n sequence:\n - action: homeassistant.turn_off\n target:\n entity_id: group.light_spalnia_bra\n - alias: If Group is Off\n conditions:\n - condition: state\n entity_id: group.light_spalnia_bra\n state: 'off'\n sequence:\n - action: homeassistant.turn_on\n target:\n entity_id: group.light_spalnia_bra\n - alias: 'command: move_with_on_off'\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''move_with_on_off'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.spalnia_stol\n - alias: 'command: move'\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.command == ''move'' }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: group.all_lamps",
"config": [
{
"name": "sonoff 1001053235 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_1001053235",
"device_id": null
}
},
{
"name": "спальня стол light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.spalnia_stol",
"device_id": null
}
},
{
"name": "light спальня bra group",
"room": "bedroom",
"type": "group",
"id": {
"entity_id": "group.light_spalnia_bra",
"device_id": null
}
},
{
"name": "all lamps group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_lamps",
"device_id": null
}
}
]
},
{
"id": "35fa00c7-72bd-4a5f-9bef-7bcf13a3bf49",
"automation": "- alias: Sunrise Lighting (Bedroom)\n id: 35fa00c7-72bd-4a5f-9bef-7bcf13a3bf49\n triggers:\n - trigger: time\n at: input_datetime.sunrise_in_bedroom\n condition:\n - and:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: calendar.semia_alexander_borisov_vacation\n state: 'off'\n - condition: sun\n before: sunrise\n before_offset: 00:30:00\n actions:\n - action: script.turn_on\n target:\n entity_id: script.sunrise_in_bedroom_left\n - alias: Wait for OnePlus presence at livingroom\n wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.living_room_oneplus_8t_presence\n from: 'off'\n to: 'on'\n for: 00:03:00\n timeout: 00:30:00\n - parallel:\n - if:\n - '{{ is_state(''script.sunrise_in_bedroom_left'', ''on'') }}'\n then:\n - action: script.turn_off\n target:\n entity_id: script.sunrise_in_bedroom_left\n - if:\n - '{{ is_state(''light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light_2'',\n ''on'') }}'\n then:\n - action: light.turn_off\n target:\n entity_id: light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light_2",
"config": [
{
"name": "ikea e14 ws opal 600lm light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light",
"device_id": null
}
},
{
"name": "workday sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.workday_sensor",
"device_id": null
}
},
{
"name": "sunrise in bedroom input datetime",
"room": "bedroom",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.sunrise_in_bedroom",
"device_id": null
}
},
{
"name": "calendar semia alexander borisov vacation",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.semia_alexander_borisov_vacation",
"device_id": null
}
},
{
"name": "sunrise in bedroom left script",
"room": "bedroom",
"type": "script",
"id": {
"entity_id": "script.sunrise_in_bedroom_left",
"device_id": null
}
},
{
"name": "living room oneplus 8t presence sensor",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_room_oneplus_8t_presence",
"device_id": null
}
},
{
"name": "ikea of sweden tradfri bulb e14 ws opal 600lm light 2",
"room": null,
"type": "light",
"id": {
"entity_id": "light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light_2",
"device_id": null
}
}
]
},
{
"id": "b06cbc8a-6488-412b-8842-e6c72b004ff1",
"automation": "- alias: Turn Off All Light When Nobody at Home\n id: b06cbc8a-6488-412b-8842-e6c72b004ff1\n triggers:\n trigger: state\n entity_id: group.family_persons\n to: not_home\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: group.all_lamps\n state: 'on'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Дома никого нет, но остался включенным свет:\n\n {{ ((expand(''group.all_lamps'') | selectattr(''state'', ''eq'', ''on'') |\n map(attribute=''name'') | list)) | replace(\"''\",\"\") | replace(\", \", \"\\n\")\n }}\n\n '\n inline_keyboard:\n - Выключить свет:/turn_off_all_lamps",
"config": [
{
"name": "family persons group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family_persons",
"device_id": null
}
},
{
"name": "all lamps group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_lamps",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "a395b9eb-6a18-40bd-a7f4-6e3f133049ba",
"automation": "- alias: Light - Telegram Control - Turn Off All Lamps\n id: a395b9eb-6a18-40bd-a7f4-6e3f133049ba\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /turn_off_all_lamps\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: group.all_lamps\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n message: Свет выключен.",
"config": [
{
"name": "all lamps group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_lamps",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "69f5d88e-f0b9-4f31-9951-fe9f7bd60906",
"automation": "- alias: Кнопка Xiaomi в Коридоре\n id: 69f5d88e-f0b9-4f31-9951-fe9f7bd60906\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:04:5a:11:53\n command: click\n id: click\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:04:5a:11:53\n command: hold\n id: hold\n actions:\n choose:\n - alias: Action Click\n conditions:\n - condition: trigger\n id: click\n sequence:\n choose:\n - alias: Single click\n conditions: '{{ trigger.event.data.args.click_type == ''single'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_1000f2a500\n - alias: Double click\n conditions: '{{ trigger.event.data.args.click_type == ''double'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_1000f2f14a\n - alias: Action Hold\n conditions:\n - condition: trigger\n id: hold\n sequence:\n - action: light.turn_off\n target:\n entity_id:\n - group.light_detskaia\n - group.light_prikhozhaya\n - group.light_koridor\n - group.light_gostinaia\n - group.light_kukhnia\n - group.light_kladovaya",
"config": [
{
"name": "sonoff 1000f2f14a light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2f14a",
"device_id": null
}
},
{
"name": "sonoff 1000f2a500 light",
"room": "corridor",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2a500",
"device_id": null
}
},
{
"name": "light детская group",
"room": "nursery",
"type": "group",
"id": {
"entity_id": "group.light_detskaia",
"device_id": null
}
},
{
"name": "light прихожая group",
"room": "hallway",
"type": "group",
"id": {
"entity_id": "group.light_prikhozhaya",
"device_id": null
}
},
{
"name": "light коридор group",
"room": "corridor",
"type": "group",
"id": {
"entity_id": "group.light_koridor",
"device_id": null
}
},
{
"name": "light гостиная group",
"room": "living_room",
"type": "group",
"id": {
"entity_id": "group.light_gostinaia",
"device_id": null
}
},
{
"name": "light кухня group",
"room": "kitchen",
"type": "group",
"id": {
"entity_id": "group.light_kukhnia",
"device_id": null
}
},
{
"name": "light кладовая group",
"room": "storeroom",
"type": "group",
"id": {
"entity_id": "group.light_kladovaya",
"device_id": null
}
}
]
},
{
"id": "b564ba72-9799-4438-b7c0-2a72a61a864c",
"automation": "- alias: Свет в Прихожей\n id: b564ba72-9799-4438-b7c0-2a72a61a864c\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: timer.hallway_light\n id: timer\n - trigger: state\n entity_id: binary_sensor.0x158d00031c790f_contact\n id: magnet\n - trigger: state\n entity_id: binary_sensor.0x158d000309920a_motion\n id: motion\n action:\n choose:\n - alias: Timer\n conditions:\n - condition: trigger\n id: timer\n sequence:\n choose:\n - alias: To Off\n conditions: '{{ trigger.to_state.state == ''idle'' }}'\n sequence:\n choose:\n - alias: Frigate Presence On\n conditions: '{{ states(''binary_sensor.dafangcam_02_person_occupancy'')\n == ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.hallway_light\n - alias: Motion On\n conditions: '{{ states(''binary_sensor.0x158d000309920a_motion'') ==\n ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.hallway_light\n - alias: Motion Off\n conditions: '{{ states(''binary_sensor.0x158d000309920a_motion'') ==\n ''off'' }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.sonoff_1000f2f14a\n - alias: Magnet\n conditions:\n - condition: trigger\n id: magnet\n sequence:\n choose:\n - alias: To On\n conditions: '{{ trigger.from_state.state == ''off'' and trigger.to_state.state\n == ''on'' }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.sonoff_1000f2f14a\n - action: timer.start\n target:\n entity_id: timer.hallway_light\n - alias: Motion\n conditions:\n - condition: trigger\n id: motion\n sequence:\n choose:\n - alias: To On\n conditions: '{{ trigger.to_state.state == ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.hallway_light\n - condition: state\n entity_id: light.sonoff_1000f2f14a\n state: 'off'\n - action: light.turn_on\n target:\n entity_id: light.sonoff_1000f2f14a\n - alias: To Off\n conditions: '{{ trigger.to_state.state == ''off'' }}'\n sequence:\n - action: timer.finish\n target:\n entity_id: timer.hallway_light",
"config": [
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
},
{
"name": "sonoff 1000f2f14a light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2f14a",
"device_id": null
}
},
{
"name": "0x158d000309920a motion sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d000309920a_motion",
"device_id": null
}
},
{
"name": "hallway light timer",
"room": "hallway",
"type": "timer",
"id": {
"entity_id": "timer.hallway_light",
"device_id": null
}
},
{
"name": "dafangcam 02 person occupancy sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dafangcam_02_person_occupancy",
"device_id": null
}
}
]
},
{
"id": "c8299171-1d2a-428f-8f5f-d24d28e82b48",
"automation": "- alias: Кнопка Xiaomi в Прихожей\n id: c8299171-1d2a-428f-8f5f-d24d28e82b48\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:04:5a:11:b1\n command: click\n id: click\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:04:5a:11:b1\n command: hold\n id: hold\n actions:\n choose:\n - alias: Action Click\n conditions:\n - condition: trigger\n id: click\n sequence:\n choose:\n - alias: Single click\n conditions: '{{ trigger.event.data.args.click_type == ''single'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_1000f2f14a\n - alias: Double click\n conditions: '{{ trigger.event.data.args.click_type == ''double'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_1000f2a500\n - alias: Action Hold\n conditions:\n - condition: trigger\n id: hold\n sequence:\n - action: light.turn_off\n target:\n entity_id: group.all_lamps",
"config": [
{
"name": "sonoff 1000f2f14a light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2f14a",
"device_id": null
}
},
{
"name": "sonoff 1000f2a500 light",
"room": "corridor",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2a500",
"device_id": null
}
},
{
"name": "all lamps group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_lamps",
"device_id": null
}
}
]
},
{
"id": "3dd87840-2d90-4823-a4af-844395be2a2a",
"automation": "- alias: Кнопка Xiaomi на Кухне\n id: 3dd87840-2d90-4823-a4af-844395be2a2a\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:03:5f:f6:31\n command: click\n id: click\n actions:\n choose:\n - alias: Action Click\n conditions:\n - condition: trigger\n id: click\n sequence:\n choose:\n - alias: Single click\n conditions: '{{ trigger.event.data.args.click_type == ''single'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.kukhnia_lenta\n - alias: Double click\n conditions: '{{ trigger.event.data.args.click_type == ''double'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.ikea_e27_kukhnia",
"config": [
{
"name": "кухня лента light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kukhnia_lenta",
"device_id": null
}
},
{
"name": "ikea e27 кухня light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_kukhnia",
"device_id": null
}
}
]
},
{
"id": "72c4f7ac-f72c-47fd-bf06-6e3671d12b1d",
"automation": "- alias: Подсветка на кухне (сенсор движения - вкл)\n id: 72c4f7ac-f72c-47fd-bf06-6e3671d12b1d\n triggers:\n trigger: state\n entity_id: binary_sensor.0x158d0003fac0ec_motion\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.0x158d0003fac0ec_illuminance\n below: 10\n actions:\n action: light.turn_on\n target:\n entity_id: light.kukhnia_lenta",
"config": [
{
"name": "кухня лента light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kukhnia_lenta",
"device_id": null
}
},
{
"name": "0x158d0003fac0ec motion sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0003fac0ec_motion",
"device_id": null
}
},
{
"name": "0x158d0003fac0ec illuminance sensor",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.0x158d0003fac0ec_illuminance",
"device_id": null
}
}
]
},
{
"id": "47413029-b8c2-4ec1-ad98-7c72b271766d",
"automation": "- alias: Подсветка на кухне (сенсор движения - выкл)\n id: 47413029-b8c2-4ec1-ad98-7c72b271766d\n triggers:\n trigger: state\n entity_id: binary_sensor.0x158d0003fac0ec_motion\n to: 'off'\n for:\n minutes: 3\n actions:\n action: light.turn_off\n target:\n entity_id: light.kukhnia_lenta",
"config": [
{
"name": "кухня лента light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kukhnia_lenta",
"device_id": null
}
},
{
"name": "0x158d0003fac0ec motion sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0003fac0ec_motion",
"device_id": null
}
}
]
},
{
"id": "20b084dc-0393-44e3-897d-3cec019647a1",
"automation": "- alias: Кнопка Xiaomi в Гостиной\n id: 20b084dc-0393-44e3-897d-3cec019647a1\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:03:5a:9b:c5\n command: click\n id: click\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:03:5a:9b:c5\n command: hold\n id: hold\n actions:\n choose:\n - alias: Action Click\n conditions:\n - condition: trigger\n id: click\n sequence:\n choose:\n - alias: Single click\n conditions: '{{ trigger.event.data.args.click_type == ''single'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_1000ab3c28\n - alias: Double click\n conditions: '{{ trigger.event.data.args.click_type == ''double'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_1000f3035d\n - alias: Action Hold\n conditions:\n - condition: trigger\n id: hold\n sequence:\n - action: light.toggle\n target:\n entity_id: light.gostinaia_podsvetka_na_okne",
"config": [
{
"name": "sonoff 1000f3035d light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f3035d",
"device_id": null
}
},
{
"name": "sonoff 1000ab3c28 light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000ab3c28",
"device_id": null
}
},
{
"name": "гостиная подсветка на окне light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.gostinaia_podsvetka_na_okne",
"device_id": null
}
}
]
},
{
"id": "32c18d2f-1d01-4458-b5e2-05048b73a3d7",
"automation": "- alias: Подсветка на окне в Гостиной\n id: 32c18d2f-1d01-4458-b5e2-05048b73a3d7\n triggers:\n - trigger: numeric_state\n entity_id: sensor.outdoor_illuminance\n below: input_number.livingroom_window_light_illuminance_threshold\n for: 00:10:00\n id: dark\n - trigger: numeric_state\n entity_id: sensor.outdoor_illuminance\n above: input_number.livingroom_window_light_illuminance_threshold\n for: 00:10:00\n id: lightly\n - trigger: time\n at: 00:30:00\n id: time\n - trigger: state\n entity_id: group.family_persons\n from: not_home\n to: home\n id: to_home\n conditions: '{{ is_state(''input_boolean.livingroom_window_light_auto'', ''on'')\n }}'\n actions:\n choose:\n - alias: Darkens (Turn On)\n conditions:\n - condition: trigger\n id: dark\n sequence:\n - condition: state\n entity_id: light.gostinaia_podsvetka_na_okne\n state: 'off'\n - action: light.turn_on\n target:\n entity_id: light.gostinaia_podsvetka_na_okne\n - alias: Brightens (Turn Off)\n conditions:\n - or:\n - condition: trigger\n id: lightly\n - condition: trigger\n id: time\n sequence:\n - condition: state\n entity_id: light.gostinaia_podsvetka_na_okne\n state: 'on'\n - action: light.turn_off\n target:\n entity_id: light.gostinaia_podsvetka_na_okne\n - alias: Came Home\n conditions:\n - and:\n - condition: trigger\n id: to_home\n - condition: numeric_state\n entity_id: sensor.outdoor_illuminance\n below: input_number.livingroom_window_light_illuminance_threshold\n sequence:\n - condition: state\n entity_id: light.gostinaia_podsvetka_na_okne\n state: 'off'\n - action: light.turn_on\n target:\n entity_id: light.gostinaia_podsvetka_na_okne",
"config": [
{
"name": "family persons group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family_persons",
"device_id": null
}
},
{
"name": "гостиная подсветка на окне light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.gostinaia_podsvetka_na_okne",
"device_id": null
}
},
{
"name": "outdoor illuminance sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.outdoor_illuminance",
"device_id": null
}
},
{
"name": "livingroom window light illuminance threshold input number",
"room": "living_room",
"type": "input_number",
"id": {
"entity_id": "input_number.livingroom_window_light_illuminance_threshold",
"device_id": null
}
},
{
"name": "livingroom window light auto input boolean",
"room": "living_room",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.livingroom_window_light_auto",
"device_id": null
}
}
]
},
{
"id": "94f03734-3e9f-47cd-80c6-af9f37236974",
"automation": "- alias: Пульт IKEA в Гостиной\n id: 94f03734-3e9f-47cd-80c6-af9f37236974\n mode: restart\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: d0:cf:5e:ff:fe:33:93:f6\n actions:\n - alias: Set variables\n variables:\n target_lamp: light.ikea_e27_level_light_color_on_off\n - choose:\n - alias: toggle\n conditions: '{{ trigger.event.data.command == ''toggle'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: '{{ target_lamp }}'\n - alias: step_with_on_off\n conditions: '{{ trigger.event.data.command == ''step_with_on_off'' }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n brightness_step: 8\n - alias: move_with_on_off\n conditions: '{{ trigger.event.data.command == ''move_with_on_off'' }}'\n sequence:\n repeat:\n until: '{{ wait.trigger is not none }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n brightness_step: 8\n - wait_for_trigger:\n trigger: event\n event_type: zha_event\n event_data:\n device_ieee: '{{ trigger.event.data.device_ieee }}'\n command: stop\n timeout:\n milliseconds: 200\n - alias: step\n conditions: '{{ trigger.event.data.command == ''step'' }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n brightness_step: -8\n - alias: move\n conditions: '{{ trigger.event.data.command == ''move'' }}'\n sequence:\n repeat:\n until: '{{ wait.trigger is not none }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n brightness_step: -8\n - wait_for_trigger:\n trigger: event\n event_type: zha_event\n event_data:\n device_ieee: '{{ trigger.event.data.device_ieee }}'\n command: stop\n timeout:\n milliseconds: 200\n - alias: press\n conditions: '{{ trigger.event.data.command == ''press'' }}'\n sequence:\n choose:\n - alias: left button\n conditions: '{{ (trigger.event.data.args[0] | int(0)) == 257 }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n color_temp: '{% set color_t = (state_attr(target_lamp, ''color_temp'')\n | int(0)) %} {{ iif ((color_t - 10) > 172, color_t - 10, 172) }}'\n - alias: right button\n conditions: '{{ (trigger.event.data.args[0] | int(0)) == 256 }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n color_temp: '{% set color_t = (state_attr(target_lamp, ''color_temp'')\n | int(0)) %} {{ iif ((color_t + 10 ) < 454, color_t + 10, 454) }}'\n - alias: hold\n conditions: '{{ trigger.event.data.command == ''hold'' }}'\n sequence:\n choose:\n - alias: left button\n conditions: '{{ (trigger.event.data.args[0] | int(0)) == 3329 }}'\n sequence:\n repeat:\n until: '{{ wait.trigger is not none }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n color_temp: '{% set color_t = (state_attr(target_lamp, ''color_temp'')\n | int(0)) %} {{ iif ((color_t - 10) > 172, color_t - 10, 172)\n }}'\n - wait_for_trigger:\n trigger: event\n event_type: zha_event\n event_data:\n device_ieee: '{{ trigger.event.data.device_ieee }}'\n command: release\n timeout:\n milliseconds: 200\n - alias: right button\n conditions: '{{ (trigger.event.data.args[0] | int(0)) == 3328 }}'\n sequence:\n repeat:\n until: '{{ wait.trigger is not none }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ target_lamp }}'\n data:\n color_temp: '{% set color_t = (state_attr(target_lamp, ''color_temp'')\n | int(0)) %} {{ iif ((color_t + 10) < 454, color_t + 10, 454)\n }}'\n - wait_for_trigger:\n trigger: event\n event_type: zha_event\n event_data:\n device_ieee: '{{ trigger.event.data.device_ieee }}'\n command: release\n timeout:\n milliseconds: 200",
"config": [
{
"name": "ikea e27 level light color on off light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_level_light_color_on_off",
"device_id": null
}
}
]
},
{
"id": "b1b33068-e33a-4955-94a0-80bc3b8f61fd",
"automation": "- alias: Кнопка Xiaomi в Детской\n id: b1b33068-e33a-4955-94a0-80bc3b8f61fd\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:03:3e:fd:9e\n command: click\n id: click\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:03:3e:fd:9e\n command: hold\n id: hold\n actions:\n choose:\n - alias: Action Click\n conditions:\n - condition: trigger\n id: click\n sequence:\n choose:\n - alias: Single click\n conditions: '{{ trigger.event.data.args.click_type == ''single'' }}'\n sequence:\n choose:\n - alias: Bulb unavailable\n conditions: '{{ is_state(''light.ikea_e27_detskaia'', ''unavailable'')\n }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_01_on_off\n - delay: 00:00:01\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_01_on_off\n - wait_for_trigger:\n - trigger: state\n entity_id: light.ikea_e27_detskaia\n to: 'on'\n timeout: 00:00:30\n - action: light.turn_on\n target:\n entity_id: light.ikea_e27_detskaia\n data:\n brightness: 255\n - alias: Relay off\n conditions: '{{ is_state(''light.sonoff_zbmini_01_on_off'', ''off'')\n }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_01_on_off\n - wait_for_trigger:\n - trigger: state\n entity_id: light.ikea_e27_detskaia\n to: 'on'\n timeout: 00:00:30\n - action: light.turn_on\n target:\n entity_id: light.ikea_e27_detskaia\n data:\n brightness: 255\n - alias: Relay on\n conditions: '{{ is_state(''light.sonoff_zbmini_01_on_off'', ''on'')\n }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.ikea_e27_detskaia\n - alias: Double click\n conditions: '{{ trigger.event.data.args.click_type == ''double'' }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.ikea_e27_detskaia\n data:\n transition: '0.5'\n brightness: \"{%- if (state_attr('light.ikea_e27_detskaia', 'brightness')\\\n \\ | int(0)) <= 3 %}\\n 51\\n{% elif (state_attr('light.ikea_e27_detskaia',\\\n \\ 'brightness') | int(0)) <= 51 %}\\n 102\\n{% elif (state_attr('light.ikea_e27_detskaia',\\\n \\ 'brightness') | int(0)) <= 102 %}\\n 153\\n{% elif (state_attr('light.ikea_e27_detskaia',\\\n \\ 'brightness') | int(0)) <= 153 %}\\n 204\\n{% elif (state_attr('light.ikea_e27_detskaia',\\\n \\ 'brightness') | int(0)) <= 204 %}\\n 255\\n{% elif (state_attr('light.ikea_e27_detskaia',\\\n \\ 'brightness') | int(0)) <= 255 %}\\n 3\\n{% endif %}\\n\"\n - alias: Triple click\n conditions: '{{ trigger.event.data.args.click_type == ''triple'' }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.ikea_e27_detskaia\n data:\n color_temp: 270\n - delay: '00:00:00.0500'\n - action: light.turn_on\n target:\n entity_id: light.ikea_e27_detskaia\n data:\n transition: '0.5'\n brightness: 255\n - alias: Action Hold\n conditions:\n - condition: trigger\n id: hold\n sequence:\n - action: light.toggle\n target:\n entity_id: light.detskaia_podsvetka_na_okne",
"config": [
{
"name": "ikea e27 детская light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_detskaia",
"device_id": null
}
},
{
"name": "детская подсветка на окне light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.detskaia_podsvetka_na_okne",
"device_id": null
}
},
{
"name": "sonoff zbmini 01 on off light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.sonoff_zbmini_01_on_off",
"device_id": null
}
}
]
},
{
"id": "319b4fe1-b76d-459f-ac43-3187f0c9079a",
"automation": "- alias: Подсветка на окне в Детской\n id: 319b4fe1-b76d-459f-ac43-3187f0c9079a\n triggers:\n - trigger: numeric_state\n entity_id: sensor.outdoor_illuminance\n below: input_number.nursery_window_light_illuminance_threshold\n for: 00:10:00\n id: dark\n - trigger: numeric_state\n entity_id: sensor.outdoor_illuminance\n above: input_number.nursery_window_light_illuminance_threshold\n for: 00:10:00\n id: lightly\n - trigger: state\n entity_id: group.family_persons\n from: not_home\n to: home\n id: to_home\n conditions: '{{ is_state(''input_boolean.nursery_window_light_auto'', ''on'') }}'\n actions:\n choose:\n - alias: Darkens (Turn On)\n conditions:\n - condition: trigger\n id: dark\n sequence:\n - condition: state\n entity_id: light.detskaia_podsvetka_na_okne\n state: 'off'\n - action: light.turn_on\n target:\n entity_id: light.detskaia_podsvetka_na_okne\n - alias: Brightens (Turn Off)\n conditions:\n - or:\n - condition: trigger\n id: lightly\n sequence:\n - condition: state\n entity_id: light.detskaia_podsvetka_na_okne\n state: 'on'\n - action: light.turn_off\n target:\n entity_id: light.detskaia_podsvetka_na_okne\n - alias: Came Home\n conditions:\n - and:\n - condition: trigger\n id: to_home\n - condition: numeric_state\n entity_id: sensor.outdoor_illuminance\n below: input_number.nursery_window_light_illuminance_threshold\n sequence:\n - condition: state\n entity_id: light.detskaia_podsvetka_na_okne\n state: 'off'\n - action: light.turn_on\n target:\n entity_id: light.detskaia_podsvetka_na_okne",
"config": [
{
"name": "family persons group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family_persons",
"device_id": null
}
},
{
"name": "детская подсветка на окне light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.detskaia_podsvetka_na_okne",
"device_id": null
}
},
{
"name": "outdoor illuminance sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.outdoor_illuminance",
"device_id": null
}
},
{
"name": "nursery window light illuminance threshold input number",
"room": "nursery",
"type": "input_number",
"id": {
"entity_id": "input_number.nursery_window_light_illuminance_threshold",
"device_id": null
}
},
{
"name": "nursery window light auto input boolean",
"room": "nursery",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nursery_window_light_auto",
"device_id": null
}
}
]
},
{
"id": "2d312381-a7c3-4d33-874b-d7771d8ff178",
"automation": "- alias: Лампы на столе в Детской\n id: 2d312381-a7c3-4d33-874b-d7771d8ff178\n triggers:\n - trigger: time\n at: 00:30:00\n id: time_off\n actions:\n choose:\n - alias: Time (Turn Off)\n conditions:\n - condition: trigger\n id: time_off\n sequence:\n - parallel:\n - sequence:\n - condition: '{{ is_state(''light.ikea_e14_level_light_color_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.ikea_e14_level_light_color_on_off\n - sequence:\n - condition: '{{ is_state(''light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light'',\n ''on'') }}'\n - action: light.turn_off\n target:\n entity_id: light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light",
"config": [
{
"name": "ikea e14 level light color on off light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_e14_level_light_color_on_off",
"device_id": null
}
},
{
"name": "ikea e14 ws opal 600lm light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_of_sweden_tradfri_bulb_e14_ws_opal_600lm_light",
"device_id": null
}
}
]
},
{
"id": "d50bfe78-2e35-4870-a24c-71d0f6ebf969",
"automation": "- alias: Sunrise Lighting (Nursery)\n id: d50bfe78-2e35-4870-a24c-71d0f6ebf969\n triggers:\n - trigger: time\n at: input_datetime.sunrise_in_nursery\n conditions:\n - and:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: sun\n before: sunrise\n before_offset: 00:30:00\n - condition: state\n entity_id: calendar.semia_alexander_borisov_school_vacation_egor\n state: 'off'\n - condition: state\n entity_id: calendar.semia_alexander_borisov_school_vacation_kirill\n state: 'off'\n actions:\n - action: script.turn_on\n target:\n entity_id: script.sunrise_in_nursery",
"config": [
{
"name": "workday sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.workday_sensor",
"device_id": null
}
},
{
"name": "calendar semia alexander borisov school vacation egor",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.semia_alexander_borisov_school_vacation_egor",
"device_id": null
}
},
{
"name": "sunrise in nursery input datetime",
"room": "nursery",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.sunrise_in_nursery",
"device_id": null
}
},
{
"name": "calendar semia alexander borisov school vacation kirill",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.semia_alexander_borisov_school_vacation_kirill",
"device_id": null
}
},
{
"name": "sunrise in nursery script",
"room": "nursery",
"type": "script",
"id": {
"entity_id": "script.sunrise_in_nursery",
"device_id": null
}
}
]
},
{
"id": "a2e4ec8e-926f-44bf-96fb-0029bd137f32",
"automation": "- alias: Kids must sleep at night\n id: a2e4ec8e-926f-44bf-96fb-0029bd137f32\n triggers:\n trigger: state\n entity_id: light.ikea_e27_detskaia\n to: 'on'\n for:\n minutes: 2\n conditions:\n condition: time\n after: 00:00\n before: 06:30\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: light.ikea_e27_detskaia\n - action: notify.telegram_group_flat_1\n data:\n message: _{{ now().strftime(\"%d.%m.%Y %H:%M:%S\") }}_ автоматически выключен\n свет в детской.",
"config": [
{
"name": "ikea e27 детская light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_e27_detskaia",
"device_id": null
}
}
]
},
{
"id": "3ac0562a-feca-479d-ba2a-4bf0cc1fe5ce",
"automation": "- alias: Кубик Aqara в Детской\n id: 3ac0562a-feca-479d-ba2a-4bf0cc1fe5ce\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:05:29:2a:d9\n actions:\n choose:\n - alias: Rotate\n conditions: '{{ trigger.event.data.command in (''rotate_right'', ''rotate_left'')\n }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.ikea_e14_level_light_color_on_off\n data:\n brightness: '{{ (state_attr(''light.ikea_e14_level_light_color_on_off'',\n ''brightness'') | int(0)) + (trigger.event.data.args.relative_degrees\n | int) }}'\n - alias: Flip\n conditions: '{{ trigger.event.data.command in (''flip'') }}'\n sequence:\n choose:\n - alias: Flip 90\n conditions: '{{ (trigger.event.data.args.flip_degrees | int) == 90 }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.ikea_e14_level_light_color_on_off\n data:\n brightness: 255",
"config": [
{
"name": "ikea e14 level light color on off light",
"room": "nursery",
"type": "light",
"id": {
"entity_id": "light.ikea_e14_level_light_color_on_off",
"device_id": null
}
}
]
},
{
"id": "4144c0c9-bd8e-4ed4-a6f4-42cf9d5b6228",
"automation": "- alias: Люстра в Кладовой\n id: 4144c0c9-bd8e-4ed4-a6f4-42cf9d5b6228\n mode: queued\n max: 3\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_50659603_on_off\n id: magnet\n - trigger: state\n entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_7b4e5f07_ias_zone\n id: motion\n - trigger: state\n entity_id: timer.storeroom_light\n id: timer\n actions:\n choose:\n - alias: Magnet\n conditions:\n - condition: trigger\n id: magnet\n sequence:\n choose:\n - alias: To On\n conditions: '{{ trigger.from_state.state == ''off'' and trigger.to_state.state\n == ''on'' }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.sonoff_1000b6831b\n - action: timer.start\n target:\n entity_id: timer.storeroom_light\n - alias: To Off\n conditions: '{{ trigger.from_state.state == ''on'' and trigger.to_state.state\n == ''off'' }}'\n sequence:\n - action: timer.finish\n target:\n entity_id: timer.storeroom_light\n - alias: Motion\n conditions:\n - condition: trigger\n id: motion\n sequence:\n choose:\n - alias: To On\n conditions: '{{ trigger.to_state.state == ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.storeroom_light\n - condition: state\n entity_id: light.sonoff_1000b6831b\n state: 'off'\n - action: light.turn_on\n target:\n entity_id: light.sonoff_1000b6831b\n - alias: To Off\n conditions: '{{ trigger.to_state.state == ''off'' }}'\n sequence:\n choose:\n - alias: Door closed\n conditions: '{{ is_state(''binary_sensor.lumi_lumi_sensor_magnet_50659603_on_off'',\n ''off'') }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.sonoff_1000b6831b\n - alias: Door opened\n conditions: '{{ is_state(''binary_sensor.lumi_lumi_sensor_magnet_50659603_on_off'',\n ''on'') }}'\n sequence:\n - action: timer.finish\n target:\n entity_id: timer.storeroom_light\n - alias: Timer\n conditions:\n - condition: trigger\n id: timer\n sequence:\n choose:\n conditions: '{{ trigger.to_state.state == ''idle'' }}'\n sequence:\n choose:\n - alias: Motion On\n conditions: '{{ states(''binary_sensor.lumi_lumi_sensor_motion_aq2_7b4e5f07_ias_zone'')\n == ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.storeroom_light\n - alias: Motion Off\n conditions: '{{ states(''binary_sensor.lumi_lumi_sensor_motion_aq2_7b4e5f07_ias_zone'')\n == ''off'' }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.sonoff_1000b6831b",
"config": [
{
"name": "sonoff 1000b6831b light",
"room": "storeroom",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000b6831b",
"device_id": null
}
},
{
"name": "storeroom light timer",
"room": "storeroom",
"type": "timer",
"id": {
"entity_id": "timer.storeroom_light",
"device_id": null
}
},
{
"name": "lumi lumi sensor magnet 50659603 on off sensor",
"room": "storeroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_magnet_50659603_on_off",
"device_id": null
}
},
{
"name": "lumi lumi sensor motion aq2 7b4e5f07 ias zone sensor",
"room": "storeroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_motion_aq2_7b4e5f07_ias_zone",
"device_id": null
}
}
]
},
{
"id": "7fa56654-f362-4f13-97ca-9d8e4ff52ccb",
"automation": "- alias: Свет в Туалете\n id: 7fa56654-f362-4f13-97ca-9d8e4ff52ccb\n mode: queued\n max: 10\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: timer.toilet_presence\n to: idle\n id: timer_idle\n - trigger: state\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_9bef9603_on_off\n id: magnet\n - trigger: state\n entity_id: binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone\n to: 'on'\n id: motion_on\n - trigger: state\n entity_id: binary_sensor.0xa4c138b96f4627bc_presence\n to: 'on'\n id: presence_on\n - trigger: event\n event_type: zha_event\n event_data:\n device_ieee: 00:15:8d:00:03:d1:5d:00\n command: click\n id: click\n actions:\n choose:\n - alias: Timer Idle\n conditions:\n - condition: trigger\n id: timer_idle\n sequence:\n choose:\n - alias: Presence On\n conditions: '{{ states(''binary_sensor.0xa4c138b96f4627bc_presence'') ==\n ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.bathroom_presence\n - alias: Motion On\n conditions: '{{ states(''binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone'')\n == ''on'' }}'\n sequence:\n - action: timer.start\n target:\n entity_id: timer.toilet_presence\n - alias: Motion Off\n conditions: '{{ states(''binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone'')\n == ''off'' }}'\n sequence:\n choose:\n - alias: Motion detected > 2 min ago\n conditions: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone.last_changed))\n > 120 }}'\n sequence:\n - parallel:\n - sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_03_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - sequence:\n - condition: '{{ is_state(''fan.toilet_extractor'', ''on'') }}'\n - action: fan.turn_off\n target:\n entity_id: fan.toilet_extractor\n - alias: Motion detected <= 2 min ago\n conditions: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone.last_changed))\n <= 120 }}'\n sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_03_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - delay:\n seconds: 0.3\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - wait_template: '{{ is_state(''binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone'',\n ''on'') }}'\n timeout: 00:00:30\n - if:\n - '{{ not wait.completed }}'\n then:\n - parallel:\n - sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_03_on_off'', ''on'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - sequence:\n - condition: '{{ is_state(''fan.toilet_extractor'', ''on'') }}'\n - action: fan.turn_off\n target:\n entity_id: fan.toilet_extractor\n - alias: Magnet\n conditions:\n - condition: trigger\n id: magnet\n sequence:\n choose:\n - alias: To On\n conditions: '{{ trigger.from_state.state == ''off'' and trigger.to_state.state\n == ''on'' }}'\n sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_03_on_off'', ''off'') }}'\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - action: timer.start\n target:\n entity_id: timer.toilet_presence\n - alias: To Off\n conditions: '{{ trigger.from_state.state == ''on'' and trigger.to_state.state\n == ''off'' }}'\n sequence:\n - condition: '{{ is_state(''binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone'',\n ''off'') }}'\n - condition: '{{ is_state(''light.sonoff_zbmini_03_on_off'', ''on'') }}'\n - action: light.turn_off\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - condition: '{{ is_state(''fan.toilet_extractor'', ''on'') }}'\n - action: fan.turn_off\n target:\n entity_id: fan.toilet_extractor\n - alias: Presence\n conditions:\n - condition: trigger\n id: presence_on\n sequence:\n - action: timer.start\n target:\n entity_id: timer.bathroom_presence\n - alias: Motion\n conditions:\n - condition: trigger\n id: motion_on\n sequence:\n - action: timer.start\n target:\n entity_id: timer.toilet_presence\n - parallel:\n - sequence:\n - condition: '{{ is_state(''fan.toilet_extractor'', ''off'') }}'\n - action: fan.turn_on\n target:\n entity_id: fan.toilet_extractor\n - sequence:\n - condition: '{{ is_state(''light.sonoff_zbmini_03_on_off'', ''off'') }}'\n - action: light.turn_on\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - alias: Button\n conditions:\n - condition: trigger\n id: click\n sequence:\n choose:\n - alias: Single click\n conditions: '{{ trigger.event.data.args.click_type == ''single'' }}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.sonoff_zbmini_03_on_off\n - action: fan.toggle\n target:\n entity_id: fan.toilet_extractor\n - alias: Double click\n conditions: '{{ trigger.event.data.args.click_type == ''double'' }}'\n sequence:\n - action: fan.toggle\n target:\n entity_id: fan.toilet_extractor",
"config": [
{
"name": "sonoff zbmini 03 on off light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.sonoff_zbmini_03_on_off",
"device_id": null
}
},
{
"name": "bathroom presence timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.bathroom_presence",
"device_id": null
}
},
{
"name": "toilet presence timer",
"room": "toilet",
"type": "timer",
"id": {
"entity_id": "timer.toilet_presence",
"device_id": null
}
},
{
"name": "lumi lumi sensor magnet 9bef9603 on off sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_magnet_9bef9603_on_off",
"device_id": null
}
},
{
"name": "adurolight vms adurolight f604cd01 ias zone sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.adurolight_vms_adurolight_f604cd01_ias_zone",
"device_id": null
}
},
{
"name": "0xa4c138b96f4627bc presence sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0xa4c138b96f4627bc_presence",
"device_id": null
}
},
{
"name": "toilet extractor fan",
"room": "toilet",
"type": "fan",
"id": {
"entity_id": "fan.toilet_extractor",
"device_id": null
}
}
]
},
{
"id": "63ea7cdd-f8bc-4a4d-b3ce-72fc493e7392",
"automation": "- alias: New Year Light [Scheduled]\n id: 63ea7cdd-f8bc-4a4d-b3ce-72fc493e7392\n triggers:\n - trigger: time\n at: input_datetime.new_year_illumination_on\n id: 'on'\n - trigger: time\n at: input_datetime.new_year_illumination_off\n id: 'off'\n actions:\n choose:\n - conditions: '{{ trigger.id == ''on'' }}'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.new_year_light_on\n - conditions: '{{ trigger.id == ''off'' }}'\n sequence:\n - if: '{{ states(\"sensor.date\")[-5:] != \"01-01\" }}'\n then:\n - action: scene.turn_on\n target:\n entity_id: scene.new_year_light_off",
"config": [
{
"name": "new year illumination on input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.new_year_illumination_on",
"device_id": null
}
},
{
"name": "new year illumination off input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.new_year_illumination_off",
"device_id": null
}
},
{
"name": "new year light on scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.new_year_light_on",
"device_id": null
}
},
{
"name": "new year light off scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.new_year_light_off",
"device_id": null
}
},
{
"name": "date sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.date",
"device_id": null
}
}
]
},
{
"id": "e0299715-bb22-4667-b4ad-7cf0b72bd433",
"automation": "- alias: New Year Light [Home Presence]\n id: e0299715-bb22-4667-b4ad-7cf0b72bd433\n triggers:\n - trigger: state\n entity_id: group.family_persons\n from: not_home\n to: home\n id: home\n - trigger: state\n entity_id: group.family_persons\n to: not_home\n for:\n minutes: 5\n id: not_home\n actions:\n choose:\n - conditions: '{{ trigger.id == ''home'' }}'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.new_year_light_on\n - conditions: '{{ trigger.id == ''not_home'' }}'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.new_year_light_off",
"config": [
{
"name": "family persons group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family_persons",
"device_id": null
}
},
{
"name": "new year light on scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.new_year_light_on",
"device_id": null
}
},
{
"name": "new year light off scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.new_year_light_off",
"device_id": null
}
}
]
},
{
"id": "113d01d2-80b9-4a5e-9745-ad34cb66ea4d",
"automation": "- alias: Radio - Selected Name to URL\n id: 113d01d2-80b9-4a5e-9745-ad34cb66ea4d\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: state\n entity_id: input_select.radio_station\n actions:\n - action: input_text.set_value\n target:\n entity_id: input_text.radio_url_to_play\n data:\n value: \"{% if is_state(\\\"input_select.radio_station\\\", \\\"Радио Jazz\\\") -%}\\n\\\n \\ http://nashe1.hostingradio.ru/jazz-128.mp3\\n{% elif is_state(\\\"input_select.radio_station\\\"\\\n , \\\"Monte Carlo\\\") -%}\\n http://montecarlo.hostingradio.ru/montecarlo128.mp3\\n\\\n {% elif is_state(\\\"input_select.radio_station\\\", \\\"Monte Carlo Lounge\\\") -%}\\n\\\n \\ http://stream.zeno.fm/953wvvz4gseuv\\n{% elif is_state(\\\"input_select.radio_station\\\"\\\n , \\\"Наше Радио\\\") -%}\\n http://nashe5.hostingradio.ru/nashe-128.mp3\\n{% elif\\\n \\ is_state(\\\"input_select.radio_station\\\", \\\"ENERGY\\\") -%}\\n http://ic2.101.ru:8000/v1_1\\n\\\n {% elif is_state(\\\"input_select.radio_station\\\", \\\"Русское Радио\\\") -%}\\n\\\n \\ http://rusradio.hostingradio.ru/rusradio128.mp3\\n{% elif is_state(\\\"input_select.radio_station\\\"\\\n , \\\"Maximum\\\") -%}\\n http://maximum.hostingradio.ru/maximum128.mp3\\n{% elif\\\n \\ is_state(\\\"input_select.radio_station\\\", \\\"Детское Радио\\\") -%}\\n http://ic7.101.ru:8000/a199\\n\\\n {% elif is_state(\\\"input_select.radio_station\\\", \\\"Детское Радио (Старое радио)\\\"\\\n ) -%}\\n http://195.91.237.50:8000/detskoe128\\n{% endif %}\"",
"config": [
{
"name": "radio station input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.radio_station",
"device_id": null
}
},
{
"name": "radio url to play input text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.radio_url_to_play",
"device_id": null
}
}
]
},
{
"id": "fda46b3d-2b94-4aeb-b58d-69d537756cd5",
"automation": "- alias: Radio - Selected Name to Device\n id: fda46b3d-2b94-4aeb-b58d-69d537756cd5\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: state\n entity_id: input_select.output_device\n action:\n - action: input_text.set_value\n target:\n entity_id: input_text.output_device_to_play\n data:\n value: \"{% if is_state(\\\"input_select.output_device\\\", \\\"Гостинная (TV)\\\") -%}\\n\\\n \\ media_player.gostinaia\\n{% elif is_state(\\\"input_select.output_device\\\"\\\n , \\\"Детская (TV)\\\") -%}\\n media_player.detskaia\\n{% elif is_state(\\\"input_select.output_device\\\"\\\n , \\\"Ванная (Home Mini)\\\") -%}\\n media_player.mini_v_vannoi\\n{% elif is_state(\\\"\\\n input_select.output_device\\\", \\\"Гостинная (Яндекс)\\\") -%}\\n media_player.yandex_station_mini2_gostinaia\\n\\\n {% elif is_state(\\\"input_select.output_device\\\", \\\"Спальня (Яндекс)\\\") -%}\\n\\\n \\ media_player.yandex_station_mini2_spalnia\\n{% elif is_state(\\\"input_select.output_device\\\"\\\n , \\\"Детская (Яндекс)\\\") -%}\\n media_player.yandex_station_lite_detskaia\\n\\\n {% endif %}\"",
"config": [
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "yandex station mini2 гостиная",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_gostinaia",
"device_id": null
}
},
{
"name": "yandex station mini2 спальня",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_spalnia",
"device_id": null
}
},
{
"name": "гостиная chromecast media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.gostinaia",
"device_id": null
}
},
{
"name": "детская chromecast media player",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.detskaia",
"device_id": null
}
},
{
"name": "output device input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.output_device",
"device_id": null
}
},
{
"name": "output device to play input text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.output_device_to_play",
"device_id": null
}
},
{
"name": "mini v ванной media player",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mini_v_vannoi",
"device_id": null
}
}
]
},
{
"id": "a5915a17-ec28-4adf-a3c3-6ac08f71d11f",
"automation": "- alias: Radio - Volume Control\n id: a5915a17-ec28-4adf-a3c3-6ac08f71d11f\n triggers:\n trigger: state\n entity_id: input_number.volume_radio\n actions:\n action: media_player.volume_set\n target:\n entity_id: '{{ states(''input_text.output_device_to_play'') }}'\n data:\n volume_level: '{{ states(''input_number.volume_radio'') }}'",
"config": [
{
"name": "output device to play input text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.output_device_to_play",
"device_id": null
}
},
{
"name": "volume radio input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.volume_radio",
"device_id": null
}
}
]
},
{
"id": "Samsung TV ue43ru7470 Turn On",
"automation": "- alias: Samsung TV ue43ru7470 Turn On\n triggers:\n - trigger: samsungtv.turn_on\n entity_id: media_player.ue43ru7470\n actions:\n - action: wake_on_lan.send_magic_packet\n data:\n mac: 8c:79:f5:51:2f:d1",
"config": [
{
"name": "ue43ru7470 media player",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.ue43ru7470",
"device_id": null
}
}
]
},
{
"id": "Samsung TV ue32es5500 Turn On",
"automation": "- alias: Samsung TV ue32es5500 Turn On\n triggers:\n - trigger: samsungtv.turn_on\n entity_id: media_player.ue32es5500\n actions:\n - action: shell_command.chromecast_tv_on\n data:\n ip_addr: 172.16.16.194",
"config": [
{
"name": "ue32es5500 media player",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.ue32es5500",
"device_id": null
}
}
]
},
{
"id": "Samsung TV ue46es5507 Turn On",
"automation": "- alias: Samsung TV ue46es5507 Turn On\n triggers:\n - trigger: samsungtv.turn_on\n entity_id: media_player.ue46es5507\n actions:\n - action: shell_command.chromecast_tv_on\n data:\n ip_addr: 172.16.16.211",
"config": [
{
"name": "ue46es5507 media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.ue46es5507",
"device_id": null
}
}
]
},
{
"id": "4ecf7cf0-fc2e-4769-9d95-548dc4d52ba2",
"automation": "- alias: 'Scene: Children go to Bed'\n id: 4ecf7cf0-fc2e-4769-9d95-548dc4d52ba2\n mode: restart\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Дети ложатся спать\n id: sleep\n actions:\n choose:\n - alias: Go to Bed\n conditions:\n - condition: trigger\n id: sleep\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.children_go_to_bed\n data:\n transition: 2\n - action: script.turn_off\n target:\n entity_id: script.nursery_alice_stop_watchdog_1h\n - wait_for_trigger:\n - trigger: state\n entity_id: media_player.yandex_station_lite_detskaia\n to:\n - 'off'\n - paused\n timeout: 01:00:00\n continue_on_timeout: false\n - action: script.turn_on\n target:\n entity_id: script.nursery_alice_stop_watchdog_1h",
"config": [
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "children go to bed scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.children_go_to_bed",
"device_id": null
}
},
{
"name": "nursery alice stop watchdog 1h script",
"room": "nursery",
"type": "script",
"id": {
"entity_id": "script.nursery_alice_stop_watchdog_1h",
"device_id": null
}
}
]
},
{
"id": "930a85ab-d531-42e7-a1a6-86bdfe0a628f",
"automation": "- alias: Sync Shopping List with Yandex\n id: 930a85ab-d531-42e7-a1a6-86bdfe0a628f\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: time_pattern\n minutes: '35'\n id: time\n - trigger: event\n event_type: shopping_list_updated\n id: event\n - trigger: state\n entity_id:\n - person.alexander\n - person.irina\n to: not_home\n id: state\n actions:\n - wait_template: '{{ is_state_attr(''media_player.yandex_station_lite_prikhozhaya'',\n ''alice_state'', ''IDLE'') }}'\n - if:\n - alias: Event trigger\n condition: trigger\n id: event\n then:\n - delay: 00:05:00\n - if:\n - '{{ state_attr(''media_player.yandex_station_lite_prikhozhaya'', ''volume_level'')\n != 0.1 }}'\n then:\n - repeat:\n sequence:\n - action: media_player.volume_set\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya\n data:\n volume_level: 0.1\n - wait_template: '{{ state_attr(''media_player.yandex_station_lite_prikhozhaya'',\n ''volume_level'') == 0.1 }}'\n timeout: 00:00:01\n until:\n - '{{ state_attr(''media_player.yandex_station_lite_prikhozhaya'', ''volume_level'')\n == 0.1 }}'\n - '{{ repeat.index <= 3 }}'\n - if:\n - '{{ state_attr(''media_player.yandex_station_lite_prikhozhaya'', ''is_volume_muted'')\n != true }}'\n then:\n - repeat:\n sequence:\n - action: media_player.volume_mute\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya\n data:\n is_volume_muted: true\n - wait_template: '{{ state_attr(''media_player.yandex_station_lite_prikhozhaya'',\n ''is_volume_muted'') == true }}'\n timeout: 00:00:01\n until:\n - '{{ state_attr(''media_player.yandex_station_lite_prikhozhaya'', ''is_volume_muted'')\n == true }}'\n - '{{ repeat.index <= 3 }}'\n - delay: 00:00:01\n - action: media_player.play_media\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya\n data:\n media_content_id: update\n media_content_type: shopping_list\n - delay: 00:00:03\n - wait_template: '{{ is_state_attr(''media_player.yandex_station_lite_prikhozhaya'',\n ''alice_state'', ''LISTENING'') }}'\n - action: media_player.volume_mute\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya\n data:\n is_volume_muted: false",
"config": [
{
"name": "yandex station lite прихожая",
"room": "hallway",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_prikhozhaya",
"device_id": null
}
},
{
"name": "person alexander",
"room": null,
"type": "person",
"id": {
"entity_id": "person.alexander",
"device_id": null
}
},
{
"name": "person irina",
"room": null,
"type": "person",
"id": {
"entity_id": "person.irina",
"device_id": null
}
}
]
},
{
"id": "d8f01254-9cde-41a8-b35a-f296621d3ac9",
"automation": "- alias: Планшет в Прихожей - включение экрана\n id: d8f01254-9cde-41a8-b35a-f296621d3ac9\n mode: queued\n max: 5\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: light.sonoff_1000f2f14a\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n actions:\n choose:\n - alias: To On\n conditions: '{{ trigger.from_state.state == ''off'' and trigger.to_state.state\n == ''on'' }}'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.galaxy_tab_a_8_0_2019_screen\n - action: media_player.volume_set\n target:\n entity_id: media_player.galaxy_tab_a_8_0_2019\n data:\n volume_level: \"{% if is_state('binary_sensor.time_between_21_08','off')\\\n \\ -%}\\n 0.8\\n{% else -%}\\n 0.3\\n{% endif -%}\"\n - alias: To Off\n conditions: '{{ trigger.from_state.state == ''on'' and trigger.to_state.state\n == ''off'' }}'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.galaxy_tab_a_8_0_2019_screen\n - action: media_player.volume_set\n target:\n entity_id: media_player.galaxy_tab_a_8_0_2019\n data:\n volume_level: 0\n - action: fully_kiosk.load_url\n target:\n device_id: 41638a8b36f2ac6228aed99d142fd286\n data:\n url: about:blank",
"config": [
{
"name": "sonoff 1000f2f14a light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.sonoff_1000f2f14a",
"device_id": null
}
},
{
"name": "galaxy tab a 8 0 2019 screen switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.galaxy_tab_a_8_0_2019_screen",
"device_id": null
}
},
{
"name": "time between 21 08 binary sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.time_between_21_08",
"device_id": null
}
},
{
"name": "galaxy tab a 8 0 2019 media player",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.galaxy_tab_a_8_0_2019",
"device_id": null
}
},
{
"name": "Device Galaxy Tab A 8.0 2019",
"room": null,
"type": null,
"id": {
"entity_id": "41638a8b36f2ac6228aed99d142fd286",
"device_id": "41638a8b36f2ac6228aed99d142fd286"
}
}
]
},
{
"id": "82fb6789-4385-44cc-b721-90b892063447",
"automation": "- alias: Планшет в Прихожей - поддержание заряда\n id: 82fb6789-4385-44cc-b721-90b892063447\n max_exceeded: silent\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.galaxy_tab_a_8_0_2019_battery\n - sensor.sm_t295_hallway_battery_level\n below: 30\n for:\n minutes: 5\n id: low\n - trigger: numeric_state\n entity_id:\n - sensor.galaxy_tab_a_8_0_2019_battery\n - sensor.sm_t295_hallway_battery_level\n above: 80\n for:\n minutes: 5\n id: hight\n actions:\n choose:\n - alias: Battery Low\n conditions:\n - condition: trigger\n id: low\n sequence:\n - condition: '{{ is_state(''switch.sonoff_mini_r2_02_switch'', ''off'') }}'\n - action: switch.turn_on\n target:\n entity_id: switch.sonoff_mini_r2_02_switch\n - alias: Battery Charged\n conditions:\n - condition: trigger\n id: hight\n sequence:\n - condition: '{{ is_state(''switch.sonoff_mini_r2_02_switch'', ''on'') }}'\n - action: switch.turn_off\n target:\n entity_id: switch.sonoff_mini_r2_02_switch",
"config": [
{
"name": "sm t295 hallway battery level sensor",
"room": "hallway",
"type": "sensor",
"id": {
"entity_id": "sensor.sm_t295_hallway_battery_level",
"device_id": null
}
},
{
"name": "sonoff mini r2 02 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.sonoff_mini_r2_02_switch",
"device_id": null
}
},
{
"name": "Galaxy Tab A 8.0 2019 Battery",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.galaxy_tab_a_8_0_2019_battery",
"device_id": null
}
}
]
},
{
"id": "2f4e6840-deb7-4629-80f1-8a34347e64e0",
"automation": "- alias: 'Sonoff Dongles: Persistent Notifications'\n id: 2f4e6840-deb7-4629-80f1-8a34347e64e0\n mode: queued\n max: 5\n triggers:\n - trigger: state\n entity_id: binary_sensor.sonoff_dongle_e_usb_stick_exist\n not_from:\n - unavailable\n - unknown\n id: e\n - trigger: state\n entity_id: binary_sensor.sonoff_dongle_p_usb_stick_exist\n not_from:\n - unavailable\n - unknown\n id: p\n actions:\n - choose:\n - conditions: '{{ trigger.id == ''e'' }}'\n sequence:\n - choose:\n - conditions: '{{ trigger.to_state.state == ''off'' }}'\n sequence:\n - action: persistent_notification.create\n data:\n title: Sonoff ZBDongle-E Disconnected\n message: 'Sonoff ZBDongle-E **отключен** от VM,\n\n недоступны все устройства интеграции **ZHA**.\n\n '\n notification_id: zbe_disconnected\n - conditions: '{{ trigger.to_state.state == ''on'' }}'\n sequence:\n - action: persistent_notification.dismiss\n data:\n notification_id: zbe_disconnected\n - action: persistent_notification.create\n data:\n title: Sonoff ZBDongle-E Connected\n message: 'Sonoff ZBDongle-E **подключен**,\n\n проверьте работу **ZHA** и **Multiprotocol Add-on**.\n\n '\n notification_id: zbe_connected\n - conditions: '{{ trigger.id == ''p'' }}'\n sequence:\n - choose:\n - conditions: '{{ trigger.to_state.state == ''off'' }}'\n sequence:\n - action: persistent_notification.create\n data:\n title: Sonoff ZBDongle-P Disconnected\n message: 'Sonoff ZBDongle-P **отключен** от VM,\n\n недоступны все устройства **Zigbee2MQTT**.\n\n '\n notification_id: zbp_disconnected\n - conditions: '{{ trigger.to_state.state == ''on'' }}'\n sequence:\n - action: persistent_notification.dismiss\n data:\n notification_id: zbp_disconnected\n - action: persistent_notification.create\n data:\n title: Sonoff ZBDongle-P Connected\n message: 'Sonoff ZBDongle-P **подключен**,\n\n проверьте работу **Zigbee2MQTT**.\n\n '\n notification_id: zbp_connected",
"config": [
{
"name": "sonoff dongle e usb stick exist sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.sonoff_dongle_e_usb_stick_exist",
"device_id": null
}
},
{
"name": "sonoff dongle p usb stick exist sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.sonoff_dongle_p_usb_stick_exist",
"device_id": null
}
}
]
},
{
"id": "165f7294-7880-4aaf-955c-d5f301bb1e72",
"automation": "- alias: 'Sonoff Dongles: Attach USB Stick to HA VM'\n id: 165f7294-7880-4aaf-955c-d5f301bb1e72\n mode: parallel\n max: 5\n triggers:\n - trigger: state\n entity_id: binary_sensor.sonoff_dongle_e_usb_stick_exist\n to: 'off'\n id: e\n - trigger: state\n entity_id: binary_sensor.sonoff_dongle_p_usb_stick_exist\n to: 'off'\n id: p\n actions:\n - choose:\n - conditions: '{{ trigger.id == ''e'' }}'\n sequence:\n - parallel:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n title: '*Внимание*'\n message: 'Sonoff Dongle E отключен от VM, будет запущен процесс автоматического\n подключения.\n\n '\n - repeat:\n sequence:\n - action: shell_command.attach_sonoff_dongle_e_to_ha_vm\n - delay: 00:03:00\n until:\n - condition: state\n entity_id: binary_sensor.sonoff_dongle_e_usb_stick_exist\n state: 'on'\n - conditions: '{{ trigger.id == ''p'' }}'\n sequence:\n - parallel:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n title: '*Внимание*'\n message: 'Sonoff Dongle P отключен от VM, будет запущен процесс автоматического\n подключения.\n\n '\n - repeat:\n sequence:\n - action: shell_command.attach_sonoff_dongle_p_to_ha_vm\n - delay: 00:03:00\n until:\n - condition: state\n entity_id: binary_sensor.sonoff_dongle_p_usb_stick_exist\n state: 'on'",
"config": [
{
"name": "sonoff dongle e usb stick exist sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.sonoff_dongle_e_usb_stick_exist",
"device_id": null
}
},
{
"name": "sonoff dongle p usb stick exist sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.sonoff_dongle_p_usb_stick_exist",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "cc1601bd-a416-4fb1-9af9-4a436b7557e9",
"automation": "- alias: 'Sonoff Dongles: USB Stick Attached to HA VM'\n id: cc1601bd-a416-4fb1-9af9-4a436b7557e9\n mode: queued\n max: 5\n triggers:\n - trigger: state\n entity_id: binary_sensor.sonoff_dongle_e_usb_stick_exist\n from: 'off'\n to: 'on'\n id: e\n - trigger: state\n entity_id: binary_sensor.sonoff_dongle_p_usb_stick_exist\n from: 'off'\n to: 'on'\n id: p\n actions:\n - choose:\n - conditions: '{{ trigger.id == ''e'' }}'\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n title: '*Внимание*'\n message: 'Sonoff Dongle E подключен.\n\n '\n inline_keyboard:\n - Перезапустить HA:/sd_ha_restart, Перезагрузить VM:/sd_vm_reboot\n - conditions: '{{ trigger.id == ''p'' }}'\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_system\n title: '*Внимание*'\n message: 'Sonoff Dongle P подключен.\n\n '\n inline_keyboard:\n - Перезапустить HA:/sd_ha_restart, Перезагрузить VM:/sd_vm_reboot",
"config": [
{
"name": "sonoff dongle e usb stick exist sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.sonoff_dongle_e_usb_stick_exist",
"device_id": null
}
},
{
"name": "sonoff dongle p usb stick exist sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.sonoff_dongle_p_usb_stick_exist",
"device_id": null
}
},
{
"name": "Secret TLG Group System",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_system",
"device_id": null
}
}
]
},
{
"id": "a5621d7e-91e5-4f14-a6b2-80c774d415ac",
"automation": "- alias: Sonoff Dongles - Restart HA\n id: a5621d7e-91e5-4f14-a6b2-80c774d415ac\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /sd_ha_restart\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: homeassistant.restart",
"config": []
},
{
"id": "08dfe08a-3901-46f3-b16a-e807edf80986",
"automation": "- alias: Sonoff Dongles - Reboot VM\n id: 08dfe08a-3901-46f3-b16a-e807edf80986\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /sd_vm_reboot\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: hassio.host_reboot",
"config": []
},
{
"id": "61fb954b-3450-4fc6-9848-cc5304b54a16",
"automation": "- alias: Оповещение о начале уборки\n id: 61fb954b-3450-4fc6-9848-cc5304b54a16\n triggers:\n trigger: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n to: cleaning\n conditions:\n condition: template\n value_template: '{{ trigger.from_state.state = ''unavailable''}}\n\n '\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n message: '_Mi Robot_: начал уборку.'\n inline_keyboard:\n - Остановить:/vacuum_stop, На базу:/vacuum_go_home",
"config": [
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "78e4ee4f-d0d7-4d23-9e3c-4ec125f19400",
"automation": "- alias: Vacuum - Telegram Control - Stop\n id: 78e4ee4f-d0d7-4d23-9e3c-4ec125f19400\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /vacuum_stop\n actions:\n - action: vacuum.pause\n target:\n entity_id: vacuum.xiaomi_vacuum_cleaner\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n message: '_Mi Robot_: начал уборку.\n\n Уборка остановлена.\n\n '\n inline_keyboard:\n - На базу:/vacuum_go_home",
"config": [
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
}
]
},
{
"id": "0b1fd434-4044-4ce7-ab8a-262d6250407a",
"automation": "- alias: Vacuum - Telegram Control - Go to Base\n id: 0b1fd434-4044-4ce7-ab8a-262d6250407a\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /vacuum_go_home\n actions:\n - action: vacuum.pause\n target:\n entity_id: vacuum.xiaomi_vacuum_cleaner\n - delay: 1\n - action: vacuum.return_to_base\n target:\n entity_id: vacuum.xiaomi_vacuum_cleaner\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n message: '_Mi Robot_: начал уборку.\n\n Уборка остановлена, робот отправлен на базу.\n\n '",
"config": [
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
}
]
},
{
"id": "68311ec4-1030-4d7d-a2ea-e9cb21f7f40c",
"automation": "- alias: Оповещение о возращении пылесоса на базу [notify to group flat]\n id: 68311ec4-1030-4d7d-a2ea-e9cb21f7f40c\n triggers:\n trigger: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n to: docked\n conditions:\n condition: template\n value_template: '{{ trigger.from_state.state = ''unavailable''}}\n\n '\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: '_Mi Robot_: вернулся на базу (закончил уборку).'",
"config": [
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
}
]
},
{
"id": "db76ec80-b5d6-4991-8a6c-9272b25c1a39",
"automation": "- alias: Оповещение о забытом пылесосе [notify to group flat]\n id: db76ec80-b5d6-4991-8a6c-9272b25c1a39\n triggers:\n trigger: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n to: idle\n for:\n minutes: 15\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: '_Mi Robot_: потерялся и бездельничает, отправляем на базу.'\n - action: vacuum.return_to_base\n target:\n entity_id: vacuum.xiaomi_vacuum_cleaner",
"config": [
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
}
]
},
{
"id": "fe6bb5c1-f886-4161-bad7-4bf04be83258",
"automation": "- alias: Оповещение об ошибке [notify to group flat]\n id: fe6bb5c1-f886-4161-bad7-4bf04be83258\n triggers:\n trigger: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n to: error\n conditions:\n condition: template\n value_template: '{{ trigger.from_state.state = ''unavailable''}}\n\n '\n actions:\n - action: notify.telegram_group_flat_1\n data:\n message: '_Mi Robot_: Произошла *ошибка*\n\n {{ state_attr(''vacuum.xiaomi_vacuum_cleaner'', \"error\") }}\n\n '",
"config": [
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
}
]
},
{
"id": "67acac52-bf44-4661-9140-2e40f0006175",
"automation": "- alias: Ежедневная уборка по будням [утро]\n id: 67acac52-bf44-4661-9140-2e40f0006175\n triggers:\n trigger: state\n entity_id: group.family_persons\n to: not_home\n for:\n minutes: 20\n conditions:\n - and:\n - condition: time\n after: 08:30:00\n before: '10:30:00'\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: template\n value_template: '{{ now().day = states.automation.ezhednevnaia_uborka_po_budniam_utro.attributes.last_triggered.day\n | default(0) }}'\n actions:\n - action: vacuum.set_fan_speed\n target:\n entity_id: vacuum.xiaomi_vacuum_cleaner\n data:\n fan_speed: Turbo\n - action: vacuum.start\n target:\n entity_id: vacuum.xiaomi_vacuum_cleaner",
"config": [
{
"name": "family persons group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family_persons",
"device_id": null
}
},
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
}
]
},
{
"id": "6c64060c-0a65-4caf-8064-1d5cdfea50a3",
"automation": "- alias: Регулярная уборка прихожей\n id: 6c64060c-0a65-4caf-8064-1d5cdfea50a3\n triggers:\n trigger: state\n entity_id: binary_sensor.0x158d00031c790f_contact\n from: 'on'\n to: 'off'\n conditions:\n - and:\n - condition: time\n after: 09:30:00\n before: '21:30:00'\n - condition: template\n value_template: '{{ (as_timestamp(now())-(as_timestamp(state_attr(\"automation.reguliarnaia_uborka_prikhozhei\",\n \"last_triggered\")))>480) }}'\n - or:\n - condition: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n state: docked\n - condition: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n state: idle\n actions:\n - action: script.turn_on\n target:\n entity_id: script.start_vacuum_hallway_by_door_sensor",
"config": [
{
"name": "entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d00031c790f_contact",
"device_id": null
}
},
{
"name": "xiaomi vacuum cleaner",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"device_id": null
}
},
{
"name": "Script Start Vacuum Hallway by Door Sensor",
"room": null,
"type": "script",
"id": {
"entity_id": "script.start_vacuum_hallway_by_door_sensor",
"device_id": null
}
}
]
},
{
"id": "8fef5cc1-030e-4549-91b4-ffe25207672c",
"automation": "- alias: Set cleaning mode\n id: 8fef5cc1-030e-4549-91b4-ffe25207672c\n triggers:\n trigger: state\n entity_id: input_select.vacuum_power\n actions:\n - action: \"{% if trigger.to_state.state == 'Silent' %}\\n script.set_vacuum_power_silent\\n\\\n {% elif trigger.to_state.state == 'Standard' %}\\n script.set_vacuum_power_standard\\n\\\n {% elif trigger.to_state.state == 'Medium' %}\\n script.set_vacuum_power_medium\\n\\\n {% elif trigger.to_state.state == 'Turbo' %}\\n script.set_vacuum_power_turbo\\n\\\n {% elif trigger.to_state.state == 'Gentle' %}\\n script.set_vacuum_power_gentle\\n\\\n {% endif %}\\n\"",
"config": [
{
"name": "vacuum power input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.vacuum_power",
"device_id": null
}
}
]
},
{
"id": "75d1f4fc-c40b-433a-b6bc-ed480b53365e",
"automation": "- alias: Wakeup Radio - Childrens\n id: 75d1f4fc-c40b-433a-b6bc-ed480b53365e\n triggers:\n trigger: time\n at: input_datetime.wakeup_radio_in_nursery\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: calendar.semia_alexander_borisov_school_vacation_egor\n state: 'off'\n - condition: state\n entity_id: calendar.semia_alexander_borisov_school_vacation_kirill\n state: 'off'\n actions:\n - if:\n - '{{ state_attr(''media_player.yandex_station_lite_detskaia'', ''volume_level'')\n != 0.1 }}'\n then:\n - repeat:\n sequence:\n - action: media_player.volume_set\n target:\n entity_id: media_player.yandex_station_lite_detskaia\n data:\n volume_level: 0.1\n - wait_template: '{{ state_attr(''media_player.yandex_station_lite_detskaia'',\n ''volume_level'') == 0.1 }}'\n timeout: 00:00:01\n until:\n - '{{ state_attr(''media_player.yandex_station_lite_detskaia'', ''volume_level'')\n == 0.1 }}'\n - '{{ repeat.index <= 3 }}'\n - if:\n - '{{ state_attr(''media_player.yandex_station_lite_detskaia'', ''is_volume_muted'')\n != true }}'\n then:\n - repeat:\n sequence:\n - action: media_player.volume_mute\n target:\n entity_id: media_player.yandex_station_lite_detskaia\n data:\n is_volume_muted: true\n - wait_template: '{{ state_attr(''media_player.yandex_station_lite_detskaia'',\n ''is_volume_muted'') == true }}'\n timeout: 00:00:01\n until:\n - '{{ state_attr(''media_player.yandex_station_lite_detskaia'', ''is_volume_muted'')\n == true }}'\n - '{{ repeat.index <= 3 }}'\n - delay: 00:00:01\n - action: yandex_station.send_command\n target:\n entity_id: media_player.yandex_station_lite_detskaia\n data:\n command: sendText\n text: Включи {{ states('input_text.wakeup_radio_in_nursery_query') }}\n - delay: 00:00:10\n - if:\n - '{{ state_attr(''media_player.yandex_station_lite_detskaia'', ''volume_level'')\n != 0.1 }}'\n then:\n - action: media_player.volume_set\n target:\n entity_id: media_player.yandex_station_lite_detskaia\n data:\n volume_level: '0.1'\n - alias: Volume Up 4 times\n repeat:\n while:\n - condition: template\n value_template: '{{ repeat.index <= 4 }}'\n sequence:\n - delay: 00:03:00\n - action: media_player.volume_up\n target:\n entity_id: media_player.yandex_station_lite_detskaia\n - action: yandex_station.send_command\n target:\n entity_id: media_player.yandex_station_lite_detskaia\n data:\n command: sendText\n text: Повтори за мной 'Доброе утро дети, пора вставать!'",
"config": [
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "workday sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.workday_sensor",
"device_id": null
}
},
{
"name": "calendar semia alexander borisov school vacation egor",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.semia_alexander_borisov_school_vacation_egor",
"device_id": null
}
},
{
"name": "calendar semia alexander borisov school vacation kirill",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.semia_alexander_borisov_school_vacation_kirill",
"device_id": null
}
},
{
"name": "wakeup radio in nursery input datetime",
"room": "nursery",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.wakeup_radio_in_nursery",
"device_id": null
}
},
{
"name": "wakeup radio in nursery query input text",
"room": "nursery",
"type": "input_text",
"id": {
"entity_id": "input_text.wakeup_radio_in_nursery_query",
"device_id": null
}
}
]
},
{
"id": "2eb96392-3d8a-41b7-87f2-7c6e5c5b6232",
"automation": "- alias: Water Leak Detected\n id: 2eb96392-3d8a-41b7-87f2-7c6e5c5b6232\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.neptun_water_leakage\n - binary_sensor.0x158d000400e77d_moisture\n - binary_sensor.0x158d0004030d84_moisture\n - binary_sensor.lumi_lumi_sensor_wleak_aq1_ias_zone\n from: 'off'\n to: 'on'\n actions:\n - action: script.turn_on\n target:\n entity_id: script.water_valves_close",
"config": [
{
"name": "neptun water leakage sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.neptun_water_leakage",
"device_id": null
}
},
{
"name": "aqara storeroom moisture sensor",
"room": "storeroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d000400e77d_moisture",
"device_id": null
}
},
{
"name": "aqara under bath moisture sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0004030d84_moisture",
"device_id": null
}
},
{
"name": "aqara near bath moisture sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_wleak_aq1_ias_zone",
"device_id": null
}
},
{
"name": "Script Water Valves Close",
"room": null,
"type": "script",
"id": {
"entity_id": "script.water_valves_close",
"device_id": null
}
}
]
},
{
"id": "0e013823-d5f8-4362-b7aa-2be3c25da064",
"automation": "- alias: Catch Neptun Activated\n id: 0e013823-d5f8-4362-b7aa-2be3c25da064\n mode: queued\n triggers:\n trigger: state\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_opening\n from: 'on'\n to: 'off'\n for: 00:00:05\n conditions:\n condition: state\n entity_id: input_boolean.neptun_activated\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.neptun_activated",
"config": [
{
"name": "neptun activated input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.neptun_activated",
"device_id": null
}
},
{
"name": "lumi lumi sensor magnet opening sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_magnet_opening",
"device_id": null
}
}
]
},
{
"id": "f17481ec-0be2-4774-b2cb-53fffab68781",
"automation": "- alias: Catch Neptun DeActivated\n id: f17481ec-0be2-4774-b2cb-53fffab68781\n mode: queued\n triggers:\n trigger: state\n entity_id: switch.sonoff_1000b68886\n from: 'off'\n to: 'on'\n conditions:\n condition: state\n entity_id: input_boolean.neptun_activated\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.neptun_activated",
"config": [
{
"name": "sonoff 1000b68886 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.sonoff_1000b68886",
"device_id": null
}
},
{
"name": "neptun activated input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.neptun_activated",
"device_id": null
}
}
]
},
{
"id": "896b9256-93fc-41d2-8ffc-a4c6503f62e0",
"automation": "- alias: Restart Neptun [twice a month]\n id: 896b9256-93fc-41d2-8ffc-a4c6503f62e0\n triggers:\n - trigger: time\n at: '11:00:00'\n conditions:\n - and:\n - condition: time\n weekday: mon\n - condition: template\n value_template: '{{ (as_timestamp(now())|timestamp_custom (''%W'') | int % 2)\n == 1 }}'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.sonoff_1000b68886\n - delay: 5\n - action: switch.turn_on\n target:\n entity_id: switch.sonoff_1000b68886\n - action: notify.telegram_group_flat_1\n data:\n message: '_INFO:_ Нептун был перезапущен.\n\n '",
"config": [
{
"name": "sonoff 1000b68886 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.sonoff_1000b68886",
"device_id": null
}
}
]
},
{
"id": "ac6042cd-ab15-4ff2-a0ed-9f873830d221",
"automation": "- alias: PowerOff Valves After 60 Seconds\n id: ac6042cd-ab15-4ff2-a0ed-9f873830d221\n triggers:\n - trigger: state\n entity_id:\n - switch.rele_aqara_vodoprovodnye_krany_l1\n - switch.rele_aqara_vodoprovodnye_krany_l2\n to: 'on'\n for: 00:01:00\n actions:\n action: switch.turn_off\n target:\n entity_id: '{{ trigger.entity_id }}'",
"config": [
{
"name": "rele aqara водопроводные краны l1 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.rele_aqara_vodoprovodnye_krany_l1",
"device_id": null
}
},
{
"name": "rele aqara водопроводные краны l2 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.rele_aqara_vodoprovodnye_krany_l2",
"device_id": null
}
}
]
},
{
"id": "f16be388-8c31-43d0-905b-d9c31968414c",
"automation": "- alias: Valves Relay Software Interlock\n id: f16be388-8c31-43d0-905b-d9c31968414c\n triggers:\n - trigger: state\n entity_id: switch.rele_aqara_vodoprovodnye_krany_l1\n to: 'on'\n id: open\n - trigger: state\n entity_id: switch.rele_aqara_vodoprovodnye_krany_l2\n to: 'on'\n id: close\n actions:\n - choose:\n - alias: open_channel_to_on\n conditions:\n - condition: trigger\n id: open\n sequence:\n - if:\n - '{{ is_state(''switch.rele_aqara_vodoprovodnye_krany_l2'', ''on'') }}'\n then:\n - action: switch.turn_off\n target:\n entity_id: switch.rele_aqara_vodoprovodnye_krany_l2\n - alias: close_channel_to_on\n conditions:\n - condition: trigger\n id: close\n sequence:\n - if:\n - '{{ is_state(''switch.rele_aqara_vodoprovodnye_krany_l1'', ''on'') }}'\n then:\n - action: switch.turn_off\n target:\n entity_id: switch.rele_aqara_vodoprovodnye_krany_l1",
"config": [
{
"name": "rele aqara водопроводные краны l1 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.rele_aqara_vodoprovodnye_krany_l1",
"device_id": null
}
},
{
"name": "rele aqara водопроводные краны l2 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.rele_aqara_vodoprovodnye_krany_l2",
"device_id": null
}
}
]
},
{
"id": "54d437ce-2ec6-4779-93cb-3f36fe99b44c",
"automation": "- alias: Оповещения об активации датчиков [notify to group flat]\n id: 54d437ce-2ec6-4779-93cb-3f36fe99b44c\n triggers:\n - trigger: state\n entity_id: binary_sensor.neptun_water_leakage\n to: 'on'\n id: neptun_on\n - trigger: state\n entity_id: binary_sensor.0x158d000400e77d_moisture\n from: 'off'\n to: 'on'\n id: aqara_storeroom_on\n - trigger: state\n entity_id: binary_sensor.0x158d0004030d84_moisture\n from: 'off'\n to: 'on'\n id: aqara_under_bath_on\n - trigger: state\n entity_id: binary_sensor.lumi_lumi_sensor_wleak_aq1_ias_zone\n from: 'off'\n to: 'on'\n id: aqara_03_near_door\n actions:\n - choose:\n - alias: neptun_on\n conditions:\n - condition: trigger\n id: neptun_on\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Сработал датчик протечки *Нептун*.\n\n Водопроводные краны перекрыты\n\n Необходимо проверить Кухню, Ванную, Туалет, Кладовую.\n\n '\n inline_keyboard:\n - Открыть краны:/water_valves_open\n - alias: aqara_storeroom_on\n conditions:\n - condition: trigger\n id: aqara_storeroom_on\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Сработал датчик протечки Aqara в *Кладовой*.\n\n Водопроводные краны перекрыты\n\n Необходимо проверить наличие воды за стиральной машиной.\n\n '\n inline_keyboard:\n - Открыть краны:/water_valves_open\n - alias: aqara_under_bath_on\n conditions:\n - condition: trigger\n id: aqara_under_bath_on\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Сработал датчик протечки Aqara в *Ванной*.\n\n Водопроводные краны перекрыты\n\n Необходимо проверить наличие воды *слева под ванной*.\n\n '\n inline_keyboard:\n - Открыть краны:/water_valves_open\n - alias: aqara_03_near_door\n conditions:\n - condition: trigger\n id: aqara_03_near_door\n sequence:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Сработал датчик протечки Aqara в *Ванной*.\n\n Водопроводные краны перекрыты\n\n Необходимо проверить наличие воды *рядом с ванной, справа*.\n\n '\n inline_keyboard:\n - Открыть краны:/water_valves_open",
"config": [
{
"name": "neptun water leakage sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.neptun_water_leakage",
"device_id": null
}
},
{
"name": "aqara storeroom moisture sensor",
"room": "storeroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d000400e77d_moisture",
"device_id": null
}
},
{
"name": "aqara under bath moisture sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.0x158d0004030d84_moisture",
"device_id": null
}
},
{
"name": "aqara near bath moisture sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lumi_lumi_sensor_wleak_aq1_ias_zone",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "344fff46-b0f1-41c3-b6e7-6386b5bc1256",
"automation": "- alias: Оповещение о деактивации Нептуна [notify to group flat]\n id: 344fff46-b0f1-41c3-b6e7-6386b5bc1256\n triggers:\n trigger: state\n entity_id: binary_sensor.neptun_water_leakage\n to: 'off'\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n message: Нептун деактивирован.",
"config": [
{
"name": "neptun water leakage sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.neptun_water_leakage",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "1a017a47-40b1-4315-892e-36760a8e86ec",
"automation": "- alias: Оповещение об отключенном Нептуне (>2 мин)\n id: 1a017a47-40b1-4315-892e-36760a8e86ec\n triggers:\n trigger: state\n entity_id: switch.sonoff_1000b68886\n to: 'off'\n for: 00:02:00\n actions:\n - action: telegram_bot.send_message\n data:\n target: secret tlg_group_flat_1\n title: '*Внимание*'\n message: 'Питание контроллера Нептун отключено более 2х минут\n\n '\n inline_keyboard:\n - Включить:/neptune_poweron",
"config": [
{
"name": "sonoff 1000b68886 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.sonoff_1000b68886",
"device_id": null
}
},
{
"name": "Secret TLG Group Flat 1",
"room": null,
"type": null,
"id": {
"entity_id": "secret tlg_group_flat_1",
"device_id": null
}
}
]
},
{
"id": "d42cd9f6-1a89-4116-8348-d99970407b75",
"automation": "- alias: Neptune - Telegram Control - Open\n id: d42cd9f6-1a89-4116-8348-d99970407b75\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /neptune_poweron\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.sonoff_1000b68886\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_message\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n message: 'Питание контроллера Нептун отключено более 2х минут\n\n Нептун включен.\n\n '",
"config": [
{
"name": "sonoff 1000b68886 switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.sonoff_1000b68886",
"device_id": null
}
}
]
},
{
"id": "b5321723-bc10-4146-88a5-7080d0fe70a8",
"automation": "- alias: Water Valves - Telegram Control - Open\n id: b5321723-bc10-4146-88a5-7080d0fe70a8\n triggers:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /water_valves_open\n actions:\n - action: script.turn_on\n target:\n entity_id: script.water_valves_open\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Команда отправлена\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - alias: Wait for script.water_valves_open to stop\n wait_for_trigger:\n - trigger: state\n entity_id: script.water_valves_open\n from: 'on'\n to: 'off'\n timeout: 00:00:40\n continue_on_timeout: false\n - action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message: Водопроводные краны открыты.",
"config": [
{
"name": "Script Water Valves Open",
"room": null,
"type": "script",
"id": {
"entity_id": "script.water_valves_open",
"device_id": null
}
}
]
},
{
"id": "c0192c64-d64b-45b6-ab2e-91170c12f591",
"automation": "- alias: Update Saures Sensors after HA Start\n id: c0192c64-d64b-45b6-ab2e-91170c12f591\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - wait_template: '{{ has_value(''sensor.saures_api_sid'') }}'\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.saures_controller_1113513_battery",
"config": [
{
"name": "saures api sid sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.saures_api_sid",
"device_id": null
}
},
{
"name": "saures controller 1113513 battery sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.saures_controller_1113513_battery",
"device_id": null
}
}
]
},
{
"id": "2a16fa66-67a7-4960-95b0-9b766528f44d",
"automation": "- alias: Ya Music - Selected Name to Device\n id: 2a16fa66-67a7-4960-95b0-9b766528f44d\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: state\n entity_id: input_select.yandex_station_start_stream_to\n actions:\n - action: input_text.set_value\n target:\n entity_id: input_text.yandex_station_device_to_play\n data:\n value: \"{% if is_state(\\\"input_select.yandex_station_start_stream_to\\\", \\\"Ванная\\\n \\ (Home Mini)\\\") -%}\\n Мини в Ванной\\n{% elif is_state(\\\"input_select.yandex_station_start_stream_to\\\"\\\n , \\\"Гостинная (Яндекс)\\\") -%}\\n media_player.yandex_station_mini2_gostinaia\\n\\\n {% elif is_state(\\\"input_select.yandex_station_start_stream_to\\\", \\\"Спальня\\\n \\ (Яндекс)\\\") -%}\\n media_player.yandex_station_mini2_spalnia\\n{% elif is_state(\\\"\\\n input_select.yandex_station_start_stream_to\\\", \\\"Детская (Яндекс)\\\") -%}\\n\\\n \\ media_player.yandex_station_lite_detskaia\\n{% endif %}\"",
"config": [
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "yandex station mini2 гостиная",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_gostinaia",
"device_id": null
}
},
{
"name": "yandex station mini2 спальня",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_spalnia",
"device_id": null
}
},
{
"name": "yandex station start stream to input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.yandex_station_start_stream_to",
"device_id": null
}
},
{
"name": "yandex station device to play input text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.yandex_station_device_to_play",
"device_id": null
}
}
]
},
{
"id": "0303b471-3e9c-436a-84c0-cc5784eee706",
"automation": "- alias: Ya Music - Volume Control\n id: 0303b471-3e9c-436a-84c0-cc5784eee706\n triggers:\n trigger: state\n entity_id: input_number.volume_ya_music\n actions:\n - if:\n - '{{ ''Мини в Ванной'' in states(''input_text.yandex_station_device_to_play'')\n }}'\n then:\n - action: media_player.volume_set\n target:\n entity_id: media_player.mini_v_vannoi\n data:\n volume_level: '{{ states(''input_number.volume_ya_music'') }}'\n else:\n - action: media_player.volume_set\n target:\n entity_id: '{{ states(''input_text.yandex_station_device_to_play'') }}'\n data:\n volume_level: '{{ states(''input_number.volume_ya_music'') }}'",
"config": [
{
"name": "mini v ванной media player",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mini_v_vannoi",
"device_id": null
}
},
{
"name": "yandex station device to play input text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.yandex_station_device_to_play",
"device_id": null
}
},
{
"name": "volume ya music input number",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.volume_ya_music",
"device_id": null
}
}
]
},
{
"id": "82c05e64-0259-4f54-8d17-952d241ef34e",
"automation": "- alias: Синхронизация состояния Алисы в Прихожей с Мини в Ванной\n id: 82c05e64-0259-4f54-8d17-952d241ef34e\n triggers:\n - trigger: state\n entity_id: media_player.mini_v_vannoi\n from: playing\n to: 'off'\n conditions:\n condition: state\n entity_id: media_player.yandex_station_lite_prikhozhaya\n state: playing\n actions:\n - action: media_player.media_pause\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya\n - delay: 00:00:01\n - action: media_player.select_source\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya\n data:\n source: Станция",
"config": [
{
"name": "yandex station lite прихожая",
"room": "hallway",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_prikhozhaya",
"device_id": null
}
},
{
"name": "mini v ванной media player",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mini_v_vannoi",
"device_id": null
}
}
]
},
{
"id": "Stop Yandex Station",
"automation": "- alias: Stop Yandex Station\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Выключи колонку в детской\n id: nursery\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Выключи колонку в гостиной\n id: livingroom\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Выключи колонку на кухне\n id: livingroom\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Выключи колонку в спальне\n id: bedroom\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Выключи колонку в прихожей\n id: hallway\n actions:\n - choose:\n - conditions: '{{ trigger.id == ''nursery'' }}'\n sequence:\n - action: media_player.turn_off\n target:\n entity_id: media_player.yandex_station_lite_detskaia\n - conditions: '{{ trigger.id == ''livingroom'' }}'\n sequence:\n - action: media_player.turn_off\n target:\n entity_id: media_player.yandex_station_mini2_gostinaia\n - conditions: '{{ trigger.id == ''bedroom'' }}'\n sequence:\n - action: media_player.turn_off\n target:\n entity_id: media_player.yandex_station_mini2_spalnia\n - conditions: '{{ trigger.id == ''hallway'' }}'\n sequence:\n - action: media_player.turn_off\n target:\n entity_id: media_player.yandex_station_lite_prikhozhaya",
"config": [
{
"name": "yandex station lite детская",
"room": "nursery",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_detskaia",
"device_id": null
}
},
{
"name": "yandex station mini2 гостиная",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_gostinaia",
"device_id": null
}
},
{
"name": "yandex station mini2 спальня",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_mini2_spalnia",
"device_id": null
}
},
{
"name": "yandex station lite прихожая",
"room": "hallway",
"type": "media_player",
"id": {
"entity_id": "media_player.yandex_station_lite_prikhozhaya",
"device_id": null
}
}
]
}
]