3421 lines
159 KiB
JSON
3421 lines
159 KiB
JSON
[
|
||
{
|
||
"id": "'1716476299336'",
|
||
"automation": "- id: '1716476299336'\n alias: doorbell\n description: doorbell\n trigger:\n - platform: state\n entity_id:\n - sensor.doorbell_button_action\n condition: []\n action:\n - service: switch.turn_on\n target:\n entity_id: switch.balcony_light_switch_left\n data: {}\n mode: restart",
|
||
"config": [
|
||
{
|
||
"name": "doorbell button action",
|
||
"room": "entrance",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.doorbell_button_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony light switch left",
|
||
"room": "balcony",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.balcony_light_switch_left",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1716476565706'",
|
||
"automation": "- id: '1716476565706'\n alias: doorbell\n description: ''\n trigger:\n - platform: state\n entity_id:\n - sensor.doorbell_button_action\n condition: []\n action:\n - service: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.balcony_light_switch_left\n mode: restart",
|
||
"config": [
|
||
{
|
||
"name": "doorbell button action",
|
||
"room": "entrance",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.doorbell_button_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony light switch left",
|
||
"room": "balcony",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.balcony_light_switch_left",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "balcony_white_light_toggle",
|
||
"automation": "- id: balcony_white_light_toggle\n alias: balcony_white_light_toggle\n triggers:\n - domain: mqtt\n device_id: 3153a1e8b94626dd8c88fafc91f23faa\n type: action\n subtype: 3_single\n trigger: device\n - domain: mqtt\n device_id: 3153a1e8b94626dd8c88fafc91f23faa\n type: action\n subtype: 3_double\n trigger: device\n - domain: mqtt\n device_id: 3153a1e8b94626dd8c88fafc91f23faa\n type: action\n subtype: 3_hold\n trigger: device\n action:\n - service: light.toggle\n entity_id: light.balcony_one_bulb",
|
||
"config": [
|
||
{
|
||
"name": "balcony white light controller",
|
||
"room": "balcony",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "3153a1e8b94626dd8c88fafc91f23faa"
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony one bulb",
|
||
"room": "balcony",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.balcony_one_bulb",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "balcony_rgb_light_toggle",
|
||
"automation": "- id: balcony_rgb_light_toggle\n alias: balcony_rgb_light_toggle\n triggers:\n - domain: mqtt\n device_id: 3153a1e8b94626dd8c88fafc91f23faa\n type: action\n subtype: 4_single\n trigger: device\n - domain: mqtt\n device_id: 3153a1e8b94626dd8c88fafc91f23faa\n type: action\n subtype: 4_double\n trigger: device\n - domain: mqtt\n device_id: 3153a1e8b94626dd8c88fafc91f23faa\n type: action\n subtype: 4_hold\n trigger: device\n action:\n - service: light.toggle\n entity_id: light.balcony_two_bulbs",
|
||
"config": [
|
||
{
|
||
"name": "balcony white light controller",
|
||
"room": "balcony",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "3153a1e8b94626dd8c88fafc91f23faa"
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony two bulbs",
|
||
"room": "balcony",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.balcony_two_bulbs",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "balcony_auto_mode_light_init",
|
||
"automation": "- id: balcony_auto_mode_light_init\n alias: balcony_auto_mode_light_init\n trigger:\n - platform: time\n at: '12:32:00'\n condition:\n - condition: state\n entity_id: input_boolean.balcony_auto_mode_light\n state: 'off'\n action:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.balcony_auto_mode_light",
|
||
"config": [
|
||
{
|
||
"name": "balcony auto mode light",
|
||
"room": "balcony",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.balcony_auto_mode_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "balcony_light_on",
|
||
"automation": "- id: balcony_light_on\n alias: balcony_light_on\n trigger:\n - platform: state\n entity_id: binary_sensor.balcony_motion_occupancy\n to: 'on'\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ state_attr(''sun.sun'', ''elevation'') < 0 }}'\n - condition: state\n entity_id: input_boolean.balcony_auto_mode_light\n state: 'on'\n actions:\n - action: light.turn_on\n target:\n entity_id:\n - light.balcony_one_bulb\n - light.balcony_two_bulbs",
|
||
"config": [
|
||
{
|
||
"name": "balcony one bulb",
|
||
"room": "balcony",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.balcony_one_bulb",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony two bulbs",
|
||
"room": "balcony",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.balcony_two_bulbs",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony auto mode light",
|
||
"room": "balcony",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.balcony_auto_mode_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony motion occupancy",
|
||
"room": "balcony",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.balcony_motion_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sun",
|
||
"room": "outdoor",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "balcony_light_off",
|
||
"automation": "- id: balcony_light_off\n alias: balcony_light_off\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.balcony_motion_occupancy\n to: 'off'\n for:\n minutes: 5\n - trigger: state\n entity_id:\n - light.balcony_one_bulb\n - light.balcony_two_bulbs\n to: 'on'\n for:\n minutes: 15\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.balcony_motion_occupancy\n state: 'off'\n for:\n minutes: 4\n - condition: state\n entity_id: input_boolean.balcony_auto_mode_light\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: light.balcony_one_bulb\n state: 'on'\n - condition: state\n entity_id: light.balcony_two_bulbs\n state: 'on'\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.balcony_one_bulb\n - light.balcony_two_bulbs",
|
||
"config": [
|
||
{
|
||
"name": "balcony one bulb",
|
||
"room": "balcony",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.balcony_one_bulb",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony two bulbs",
|
||
"room": "balcony",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.balcony_two_bulbs",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony auto mode light",
|
||
"room": "balcony",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.balcony_auto_mode_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "balcony motion occupancy",
|
||
"room": "balcony",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.balcony_motion_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "apply_scene",
|
||
"automation": "- id: apply_scene\n alias: apply_scene\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.scenes\n action:\n - service: scene.turn_on\n data_template:\n entity_id: scene.{{trigger.to_state.state}}\n transition: 2",
|
||
"config": [
|
||
{
|
||
"name": "scenes selector",
|
||
"room": "living_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.scenes",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "childrens_room_change_scene",
|
||
"automation": "- id: childrens_room_change_scene\n alias: childrens_room_change_scene\n initial_state: true\n trigger:\n - platform: state\n entity_id: sensor.living_room_scene_switch_action\n to: 1_single\n condition:\n - condition: state\n entity_id: light.childrens_room_ceiling_lamp\n state: 'on'\n action:\n service: input_select.select_next\n data:\n entity_id: input_select.scenes",
|
||
"config": [
|
||
{
|
||
"name": "scenes selector",
|
||
"room": "living_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.scenes",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "living room scene switch action",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_scene_switch_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room ceiling lamp",
|
||
"room": "childrens_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.childrens_room_ceiling_lamp",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "childrens_room_light_on",
|
||
"automation": "- id: childrens_room_light_on\n alias: childrens_room_light_on\n trigger:\n platform: state\n entity_id: binary_sensor.childrens_room_motion_occupancy\n to: 'on'\n condition:\n - condition: time\n after: 09:00:00\n before: '21:00:00'\n - condition: state\n entity_id: input_boolean.childrens_room_resolution_auto_mode_light\n state: 'on'\n action:\n - service: scene.turn_on\n target:\n entity_id: scene.full",
|
||
"config": [
|
||
{
|
||
"name": "childrens room motion occupancy",
|
||
"room": "childrens_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.childrens_room_motion_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room resolution auto mode light",
|
||
"room": "childrens_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.childrens_room_resolution_auto_mode_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Full Scene",
|
||
"room": "Corridor",
|
||
"type": "scene",
|
||
"id": {
|
||
"entity_id": "scene.full",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "childrens_room_light_off",
|
||
"automation": "- id: childrens_room_light_off\n alias: childrens_room_light_off\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.childrens_room_motion_occupancy\n to: 'off'\n for: 00:03:00\n condition:\n - condition: state\n entity_id: input_boolean.childrens_room_resolution_auto_mode_light\n state: 'on'\n - condition: time\n after: 09:00:00\n before: '21:00:00'\n - condition: state\n entity_id: light.yeelight_s1_child_1\n state: 'on'\n action:\n service: light.turn_off\n target:\n entity_id: light.childrens_room_ceiling_lamp",
|
||
"config": [
|
||
{
|
||
"name": "childrens room ceiling lamp",
|
||
"room": "childrens_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.childrens_room_ceiling_lamp",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room motion occupancy",
|
||
"room": "childrens_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.childrens_room_motion_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room resolution auto mode light",
|
||
"room": "childrens_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.childrens_room_resolution_auto_mode_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "yeelight s1 child 1",
|
||
"room": "childrens_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.yeelight_s1_child_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "childrens_room_light_night_on",
|
||
"automation": "- id: childrens_room_light_night_on\n alias: childrens_room_light_night_on\n trigger:\n platform: state\n entity_id: binary_sensor.childrens_room_motion_occupancy\n to: 'on'\n condition:\n - condition: time\n after: '23:00:00'\n before: 06:00:00\n - condition: state\n entity_id: input_boolean.childrens_room_resolution_auto_mode_light\n state: 'on'\n action:\n - service: scene.turn_on\n target:\n entity_id: scene.min",
|
||
"config": [
|
||
{
|
||
"name": "childrens room motion occupancy",
|
||
"room": "childrens_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.childrens_room_motion_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room resolution auto mode light",
|
||
"room": "childrens_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.childrens_room_resolution_auto_mode_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Min Scene",
|
||
"room": "Childrens Room",
|
||
"type": "scene",
|
||
"id": {
|
||
"entity_id": "scene.min",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "childrens_room_light_night_off",
|
||
"automation": "- id: childrens_room_light_night_off\n alias: childrens_room_light_night_off\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.childrens_room_motion_occupancy\n to: 'off'\n for: 00:00:30\n condition:\n - condition: state\n entity_id: input_boolean.childrens_room_resolution_auto_mode_light\n state: 'on'\n - condition: time\n after: '23:00:00'\n before: 06:00:00\n - condition: state\n entity_id: light.yeelight_s1_child_1\n state: 'on'\n action:\n service: light.turn_off\n target:\n entity_id: light.childrens_room_ceiling_lamp",
|
||
"config": [
|
||
{
|
||
"name": "childrens room ceiling lamp",
|
||
"room": "childrens_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.childrens_room_ceiling_lamp",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room motion occupancy",
|
||
"room": "childrens_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.childrens_room_motion_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room resolution auto mode light",
|
||
"room": "childrens_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.childrens_room_resolution_auto_mode_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "yeelight s1 child 1",
|
||
"room": "childrens_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.yeelight_s1_child_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "childrens_room_light_alarm_clock_on",
|
||
"automation": "- id: childrens_room_light_alarm_clock_on\n alias: childrens_room_light_alarm_clock_on\n trigger:\n platform: time\n at: input_datetime.childrens_room_alarm_clock_time\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n action:\n - service: script.childrens_room_sunrise_start",
|
||
"config": [
|
||
{
|
||
"name": "childrens room alarm clock time",
|
||
"room": "childrens_room",
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.childrens_room_alarm_clock_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "workday sensor",
|
||
"room": "system",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workday_sensor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Childrens Room Sunrise Start Script",
|
||
"room": "Childrens Room",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.childrens_room_sunrise_start",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "childrens_room_high_co2_notify",
|
||
"automation": "- id: childrens_room_high_co2_notify\n alias: childrens_room_high_co2_notify\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sensor.childrens_room_air_quality_co2\n above: 1000\n for: 00:15:00\n conditions:\n - condition: state\n entity_id: person.artemevi\n state: home\n action:\n - service: notify.mobile_app_artemevk\n data:\n title: CO2\n message: Высокая концентрация углекислого газа в детской\n data:\n url: /lovelace/childrens_room\n push:\n sound:\n name: default\n critical: 1\n volume: 0.1",
|
||
"config": [
|
||
{
|
||
"name": "childrens room air quality co2",
|
||
"room": "childrens_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.childrens_room_air_quality_co2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "artemevi person",
|
||
"room": "home",
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.artemevi",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water leak",
|
||
"automation": "- id: water leak\n alias: water leak\n description: water leak\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.toilet_water_leak\n to: 'on'\n action:\n - service: notify.mobile_app_artemevk\n data:\n title: Протечка!\n message: Обнаружена протечка!\n data:\n url: /lovelace/main\n push:\n sound:\n name: alarm.caf\n critical: 1\n volume: 1.0",
|
||
"config": [
|
||
{
|
||
"name": "toilet water leak",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.toilet_water_leak",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "doorbell_call",
|
||
"automation": "- id: doorbell_call\n alias: Дверной звонок\n description: ''\n mode: restart\n triggers:\n - domain: mqtt\n device_id: ca4306e18a6b6935c1711b36719632d2\n type: action\n subtype: single\n trigger: device\n - domain: mqtt\n device_id: ca4306e18a6b6935c1711b36719632d2\n type: action\n subtype: double\n trigger: device\n - domain: mqtt\n device_id: ca4306e18a6b6935c1711b36719632d2\n type: action\n subtype: hold\n trigger: device\n condition: []\n action:\n - service: script.turn_on\n target:\n entity_id: script.call",
|
||
"config": [
|
||
{
|
||
"name": "doorbell controller",
|
||
"room": "entrance",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "ca4306e18a6b6935c1711b36719632d2"
|
||
}
|
||
},
|
||
{
|
||
"name": "Call Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.call",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "smartintercom_accept_call_on",
|
||
"automation": "- id: smartintercom_accept_call_on\n alias: Домофон (включается accept_call)\n description: ''\n trigger:\n - platform: state\n entity_id: switch.smartintercom_accept_call\n from: 'off'\n to: 'on'\n condition: []\n action:\n - service: timer.start\n entity_id: timer.smartintercom_wait\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "smartintercom accept call",
|
||
"room": "entrance",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_accept_call",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartintercom wait timer",
|
||
"room": "entrance",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.smartintercom_wait",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "smartintercom_accept_call_off",
|
||
"automation": "- id: smartintercom_accept_call_off\n alias: Домофон (выключается accept_call)\n description: ''\n trigger:\n - platform: state\n entity_id: switch.smartintercom_accept_call\n from: 'on'\n to: 'off'\n condition: []\n action:\n - service: timer.cancel\n entity_id: timer.smartintercom_wait\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "smartintercom accept call",
|
||
"room": "entrance",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_accept_call",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartintercom wait timer",
|
||
"room": "entrance",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.smartintercom_wait",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "smartintercom_timer_finished",
|
||
"automation": "- id: smartintercom_timer_finished\n alias: Домофон (обработчик таймера accept_call)\n description: ''\n trigger:\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.smartintercom_wait\n condition:\n - condition: state\n entity_id: switch.smartintercom_accept_call\n state: 'on'\n action:\n - service: switch.turn_off\n target:\n entity_id: switch.smartintercom_accept_call\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "smartintercom accept call",
|
||
"room": "entrance",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_accept_call",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartintercom wait timer",
|
||
"room": "entrance",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.smartintercom_wait",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "smartintercom_call",
|
||
"automation": "- id: smartintercom_call\n alias: SmartIntercom Call\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.smartinteircom_line_detect\n from: 'off'\n to: 'on'\n condition: []\n action:\n - alias: Define Actions\n variables:\n action_allow_access: '{{ ''ALLOW_ACCESS_'' ~ context.id }}'\n action_allow_delivery: '{{ ''ALLOW_DELIVERY_'' ~ context.id }}'\n action_reject_access: '{{ ''REJECT_ACCESS_'' ~ context.id }}'\n notification_tag: smartintercom-call-detected\n - alias: Send Call Notification\n service: notify.mobile_app_artemevk\n metadata: {}\n data:\n title: Домофон\n message: Вызов\n data:\n tag: '{{ notification_tag }}'\n url: /lovelace/main\n actions:\n - action: '{{ action_allow_access }}'\n title: Открыть\n - action: '{{ action_allow_delivery }}'\n title: Открыть курьеру\n - action: '{{ action_reject_access }}'\n title: Сбросить\n destructive: true\n enabled: true\n - alias: Wait for Notification Response\n wait_for_trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_allow_access }}'\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_allow_delivery }}'\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_reject_access }}'\n timeout:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n continue_on_timeout: false\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_allow_access\n }}'\n sequence:\n - service: switch.turn_on\n target:\n entity_id: switch.smartintercom_accept_call\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_allow_delivery\n }}'\n sequence:\n - service: switch.turn_on\n target:\n entity_id: switch.smartintercom_delivery\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_reject_access\n }}'\n sequence:\n - service: switch.turn_on\n target:\n entity_id: switch.smartintercom_reject_call\n data: {}\n mode: parallel\n max: 5",
|
||
"config": [
|
||
{
|
||
"name": "smartintercom accept call",
|
||
"room": "entrance",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_accept_call",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartintercom line detect",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.smartinteircom_line_detect",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartintercom delivery",
|
||
"room": "entrance",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "smartintercom reject call",
|
||
"room": "entrance",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_reject_call",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Сообщение о пересохших цветах",
|
||
"automation": "- id: Сообщение о пересохших цветах\n alias: dry_flowers\n triggers:\n - trigger: time_pattern\n hours: /6\n conditions:\n - and:\n - condition: state\n entity_id: timer.1m\n state: idle\n - or:\n - condition: numeric_state\n entity_id: sensor.palm_soil_moisture\n below: 50\n - condition: numeric_state\n entity_id: sensor.womens_happines_soil_moisture\n below: 50\n actions:\n - action: telegram_bot.send_message\n data:\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user5_id\n message: \"{{\\\"\\\\U0001F940\\\"}} Мы высохли, дайте попить. \\n{{- \\\" \\\"}}{{\\\"\\\\\\\n U0001F337\\\"}}: {{ states('sensor.womens_happines_soil_moisture') }}\\n{{- \\\"\\\n , \\\"}}{{\\\"\\\\U0001F334\\\"}}: {{ states('sensor.palm_soil_moisture') }}\\nВаши\\\n \\ цветы.\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "palm soil moisture",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.palm_soil_moisture",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "womens happines soil moisture",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.womens_happines_soil_moisture",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1m timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.1m",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Благодарность",
|
||
"automation": "- id: Благодарность\n alias: wet_flowers\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.palm_soil_moisture\n above: 80\n - trigger: numeric_state\n entity_id: sensor.womens_happines_soil_moisture\n above: 80\n conditions:\n - condition: state\n entity_id: timer.1m\n state: idle\n - condition: numeric_state\n entity_id: sensor.palm_soil_moisture\n above: 80\n - condition: numeric_state\n entity_id: sensor.womens_happines_soil_moisture\n above: 80\n actions:\n - action: telegram_bot.send_message\n data:\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user5_id\n message: '{{\"\\U0001FAB4\"}} Спасибо за то, что полили нас.\n\n {{- \" \"}}{{\"\\U0001F337\"}}: {{ states(''sensor.womens_happines_soil_moisture'')\n }}\n\n {{- \", \"}}{{\"\\U0001F334\"}}: {{ states(''sensor.palm_soil_moisture'') }}\n\n Ваши цветы.\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "palm soil moisture",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.palm_soil_moisture",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "womens happines soil moisture",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.womens_happines_soil_moisture",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1m timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.1m",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "automatic arming",
|
||
"automation": "- id: automatic arming\n alias: automatic arming\n triggers:\n - trigger: template\n value_template: '{{ states(''zone.home'') | int == 0 }}'\n condition:\n not:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_away\n actions:\n - action: alarm_control_panel.alarm_arm_away\n target:\n entity_id: alarm_control_panel.home_alarm\n - action: script.turn_on\n entity_id: script.light_turn_off_all",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Turn Off All Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.light_turn_off_all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Home Zone",
|
||
"room": null,
|
||
"type": "zone",
|
||
"id": {
|
||
"entity_id": "zone.home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "automatic disarming",
|
||
"automation": "- id: automatic disarming\n alias: automatic disarming\n triggers:\n - trigger: template\n value_template: '{{ states(''zone.home'') | int > 0 }}'\n condition:\n not:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: disarmed\n actions:\n - action: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Home Zone",
|
||
"room": null,
|
||
"type": "zone",
|
||
"id": {
|
||
"entity_id": "zone.home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Actions when arming",
|
||
"automation": "- id: Actions when arming\n alias: Actions when arming\n triggers:\n - trigger: state\n entity_id:\n - alarm_control_panel.home_alarm\n to: arming\n actions:\n - action: switch.turn_off\n entity_id: switch.tapo_c110_43b0_privacy\n - action: switch.turn_on\n entity_id: switch.tapo_c110_43b0_notifications\n - delay: 5\n - action: camera.snapshot\n data:\n filename: /media/hallway_last_snapshot.jpg\n target:\n entity_id: camera.tapo_c110_43b0_hd_stream",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 privacy",
|
||
"room": "hallway",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tapo_c110_43b0_privacy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 notifications",
|
||
"room": "hallway",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tapo_c110_43b0_notifications",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 hd stream",
|
||
"room": "hallway",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.tapo_c110_43b0_hd_stream",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Actions when alarm is Armed in Away mode",
|
||
"automation": "- alias: Actions when alarm is Armed in Away mode\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.home_alarm\n to: armed_away\n actions:\n - action: telegram_bot.send_photo\n data:\n file: /media/hallway_last_snapshot.jpg\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user5_id\n caption: Сигнализация активирована.\n disable_notification: true\n - action: notify.alarm\n data:\n title: Охрана\n message: Квартира поставлена на охрану.\n data:\n url: /lovelace/main\n importance: high\n persistent: true\n image: /media/local/hallway_last_snapshot.jpg\n content-type: image",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Actions when alarm is Armed in Home mode",
|
||
"automation": "- alias: Actions when alarm is Armed in Home mode\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.home_alarm\n to: armed_home\n actions:\n - action: telegram_bot.send_message\n data:\n disable_notification: true\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user5_id\n message: Сигнализация активирована в режима Дома.\n title: Охрана\n - action: notify.alarm\n data:\n title: Охрана\n message: Сигнализация активирована в режима Дома.\n data:\n url: /lovelace/main",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Trigger alarm while armed away",
|
||
"automation": "- alias: Trigger alarm while armed away\n triggers:\n - trigger: state\n entity_id: binary_sensor.door_sensor_contact\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.tapo_c110_43b0_motion_alarm\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.tapo_c110_43b0_noise\n to: 'on'\n condition:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_away\n actions:\n action: alarm_control_panel.alarm_trigger\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "door sensor contact",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_sensor_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 motion alarm",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.tapo_c110_43b0_motion_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 noise",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.tapo_c110_43b0_noise",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Actions when alarm is in pending status",
|
||
"automation": "- alias: Actions when alarm is in pending status\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.home_alarm\n to: pending\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.tapo_c110_43b0_hd_stream\n data:\n filename: /media/hallway_last_snapshot.jpg\n - delay: 2\n - action: telegram_bot.send_photo\n data:\n file: /media/hallway_last_snapshot.jpg\n caption: Сигнализация перешла в режим ожидания\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user5_id\n - action: notify.alarm\n data:\n title: Охрана\n message: Сигнализация перешла в режим ожидания\n data:\n url: /lovelace/main\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n ledColor: red\n image: /media/local/hallway_last_snapshot.jpg\n content-type: image\n push:\n sound:\n name: alarm.caf\n critical: 1\n volume: 0.75\n actions:\n - action: ALARM\n title: Sound Alarm\n destructive: true\n icon: sfsymbols:bell\n - action: SILENCE\n title: Silence Alarm\n icon: sfsymbols:bell.slash\n - action: disarmed\n title: Снять с охраны\n icon: sfsymbols:lock.open",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 hd stream",
|
||
"room": "hallway",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.tapo_c110_43b0_hd_stream",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "disarmed",
|
||
"automation": "- alias: disarmed\n triggers:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: disarmed\n actions:\n - action: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Send notification when alarm triggered",
|
||
"automation": "- alias: Send notification when alarm triggered\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.home_alarm\n to: triggered\n actions:\n - action: camera.snapshot\n target:\n entity_id: camera.tapo_c110_43b0_hd_stream\n data:\n filename: /media/hallway_last_snapshot.jpg\n - delay: 2\n - action: telegram_bot.send_photo\n data:\n file: /media/hallway_last_snapshot.jpg\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user5_id\n caption: Сработала сигнализация\n - action: notify.alarm\n data:\n title: Охрана\n message: Сработала сигнализация\n data:\n url: /lovelace/main\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n ledColor: red\n image: /media/local/hallway_last_snapshot.jpg\n content-type: image\n push:\n sound:\n name: alarm.caf\n critical: 1\n volume: 1\n actions:\n - action: ALARM\n title: Sound Alarm\n destructive: true\n icon: sfsymbols:bell\n - action: SILENCE\n title: Silence Alarm\n icon: sfsymbols:bell.slash\n - action: disarmed\n title: Снять с охраны\n icon: sfsymbols:lock.open",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 hd stream",
|
||
"room": "hallway",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.tapo_c110_43b0_hd_stream",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Actions when alarm is Disarmed",
|
||
"automation": "- alias: Actions when alarm is Disarmed\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.home_alarm\n not_from: arming\n to: disarmed\n actions:\n - action: telegram_bot.send_message\n data:\n disable_notification: true\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user5_id\n message: Квартира снята с охраны.\n title: Охрана\n - action: notify.alarm\n data:\n title: Охрана\n message: Квартира снята с охраны.\n data:\n url: /lovelace/main\n importance: high\n persistent: true\n - action: switch.turn_on\n entity_id: switch.tapo_c110_43b0_privacy\n - action: switch.turn_off\n entity_id: switch.tapo_c110_43b0_notifications\n - action: select.select_option\n target:\n entity_id: select.tapo_c110_43b0_automatic_alarm\n data:\n option: 'off'",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 privacy",
|
||
"room": "hallway",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tapo_c110_43b0_privacy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tapo c110 43b0 notifications",
|
||
"room": "hallway",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.tapo_c110_43b0_notifications",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "select tapo c110 43b0 automatic alarm",
|
||
"room": "hallway",
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.tapo_c110_43b0_automatic_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "l1k3",
|
||
"automation": "- id: l1k3\n alias: push_HA_configuration_to_GitHub_repo\n initial_state: true\n trigger:\n - platform: time\n at: '23:33:23'\n action:\n - service: shell_command.push_to_github",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "start_offline_timer",
|
||
"automation": "- id: start_offline_timer\n alias: start_offline_timer\n initial_state: true\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.ihome_connection\n to: 'off'\n action:\n - service: timer.start\n entity_id: timer.ihome_offline",
|
||
"config": [
|
||
{
|
||
"name": "ihome connection",
|
||
"room": "system",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.ihome_connection",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ihome offline timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.ihome_offline",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ihome_disconnected",
|
||
"automation": "- id: ihome_disconnected\n alias: ihome_disconnected\n trigger:\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.ihome_offline\n action:\n - service: notify.tlg_user1_id\n data:\n title: '#system'\n message: Сервер iHome не отвечает!\n - service: notify.mobile_app_artemevk\n data:\n message: Сервер iHome не отвечает!",
|
||
"config": [
|
||
{
|
||
"name": "ihome offline timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.ihome_offline",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "cancel_offline_timer",
|
||
"automation": "- id: cancel_offline_timer\n alias: cancel_offline_timer\n initial_state: true\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.ihome_connection\n to: 'on'\n action:\n - service: timer.cancel\n entity_id: timer.ihome_offline",
|
||
"config": [
|
||
{
|
||
"name": "ihome connection",
|
||
"room": "system",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.ihome_connection",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ihome offline timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.ihome_offline",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Telegram bot hello",
|
||
"automation": "- alias: Telegram bot hello\n trigger:\n - platform: event\n event_type: telegram_command\n event_data:\n command: /start\n action:\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: 'Добро пожаловать в главное меню. Выберите действие:'\n disable_notification: true\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "Telegram bot main menu",
|
||
"automation": "- alias: Telegram bot main menu\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /mm\n action:\n - service: telegram_bot.delete_message\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: 'Добро пожаловать в главное меню. Выберите действие:'\n disable_notification: true\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "Telegram bot main menu from msg",
|
||
"automation": "- alias: Telegram bot main menu from msg\n trigger:\n - platform: event\n event_type: telegram_command\n event_data:\n command: /mm\n action:\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: 'Добро пожаловать в главное меню. Выберите действие:'\n disable_notification: true\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "Отчет при запуске системы",
|
||
"automation": "- id: Отчет при запуске системы\n alias: start_message\n initial_state: true\n trigger:\n - platform: homeassistant\n event: start\n action:\n - service: notify.tlg_user1_id\n data:\n title: '#system'\n message: '{{\"\\U0001F5A5\"}} Зафиксирован запуск. Отчет о состоянии будет через\n 2 минуты.\n\n '\n - service: timer.start\n target:\n entity_id: timer.1m\n - delay: 00:02:00\n - service: notify.tlg_user1_id\n data:\n title: '#system'\n message: '{{ states(\"sensor.report_msg\") }}\n\n\n {{ states(''sensor.batteries_states_msg'') }}\n\n '\n - delay: 00:00:02\n - service: notify.tlg_user1_id\n data:\n message: 'Добро пожаловать в главное меню. Выберите действие:'\n data:\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": [
|
||
{
|
||
"name": "1m timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.1m",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "report msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.report_msg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "batteries states msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.batteries_states_msg",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отчет о системе по запросу",
|
||
"automation": "- id: Отчет о системе по запросу\n alias: send_report\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /report\n action:\n - service: telegram_bot.delete_message\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n title: '#system'\n message: '{{ states(''sensor.report_msg'') }}\n\n\n {{ states(''sensor.batteries_states_msg'') }}\n\n '\n disable_notification: true\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": [
|
||
{
|
||
"name": "report msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.report_msg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "batteries states msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.batteries_states_msg",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отчет при потере объектов",
|
||
"automation": "- id: Отчет при потере объектов\n alias: send_report_when_objects_are_lost\n initial_state: true\n trigger:\n - platform: state\n entity_id: sensor.unavailable_objects\n for: 00:03:00\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state > trigger.from_state.state }}'\n action:\n - service: telegram_bot.send_message\n data_template:\n target: secret tlg_user1_id\n message: '{{\"\\U0000203C\"}}Обнаружена новая неисправность\n\n {{ states(''sensor.report_msg'') }}\n\n '\n data:\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": [
|
||
{
|
||
"name": "report msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.report_msg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "unavailable objects",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.unavailable_objects",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отправить отчет о состоянии батареек",
|
||
"automation": "- id: Отправить отчет о состоянии батареек\n alias: send_battaries_states_msg\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /battaries_states\n action:\n - service: telegram_bot.delete_message\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n title: '#system'\n disable_notification: true\n message: '{{ states(''sensor.batteries_states_msg'') }}\n\n ---------------------\n\n childrens room motion - CR2032\n\n living room scene switch - CR2430\n\n balcony motion - 2xCR2450\n\n door sensor - CR1632\n\n palm - 2xAAA, LR03\n\n womens happines - 2xAAA\n\n siren - 2xCR123A\n\n door bell button - CR2032\n\n '\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": [
|
||
{
|
||
"name": "batteries states msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.batteries_states_msg",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Автоматический отчет о состоянии батареек",
|
||
"automation": "- id: Автоматический отчет о состоянии батареек\n alias: send_battaries_states_msg_auto\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.min_batteries_state\n below: 20\n action:\n - service: telegram_bot.send_message\n data_template:\n target: secret tlg_user1_id\n title: '#system'\n message: '{{ states(''sensor.batteries_states_msg'') }}\n\n ---------------------\n\n childrens room motion - CR2032\n\n living room scene switch - CR2430\n\n balcony motion - 2xCR2450\n\n door sensor - CR1632\n\n palm - 2xAAA, LR03\n\n womens happines - 2xAAA\n\n siren - 2xCR123A\n\n door bell button - CR2032\n\n toilet water leak - CR2032\n\n '\n inline_keyboard:\n - '{{''📋''}}Отчет о системе:/report, {{''🔋''}}Батарейки:/battaries_states'\n - '{{''🚨''}}Сигнализация:/alarm_menu, {{''🚪''}}Домофон:/smartintercom'",
|
||
"config": [
|
||
{
|
||
"name": "batteries states msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.batteries_states_msg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "min batteries state",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.min_batteries_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Меню Сигнализация",
|
||
"automation": "- id: Меню Сигнализация\n alias: alarm_menu\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /alarm_menu\n - platform: event\n event_type: telegram_command\n event_data:\n command: /alarm_menu\n action:\n - service: telegram_bot.delete_message\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: '{{ \"\\n\" -}}{{\"\\U0001F6A8\"}} Сигнализация {% if states(''alarm_control_panel.home_alarm'')\n == ''disarmed'' %}{{\"выкл.\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed'' %}{{\"вкл.\"}}\n\n {% else %}{{ states(''alarm_control_panel.home_alarm'') }}\n\n {% endif %}\n\n {{ \"\\n\" -}}\n\n '\n disable_notification: true\n inline_keyboard:\n - Вкл.:/turn_on_alarm, Выкл.:/turn_off_alarm\n - '{{''📖''}} Главное меню:/mm, {{''🔄''}}Обновить:/alarm_menu'",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_on_alarm",
|
||
"automation": "- id: turn_on_alarm\n alias: turn_on_alarm\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /turn_on_alarm\n condition:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: disarmed\n action:\n service: alarm_control_panel.alarm_arm_away\n data: {}\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_off_alarm",
|
||
"automation": "- id: turn_off_alarm\n alias: turn_off_alarm\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /turn_off_alarm\n condition:\n condition: template\n value_template: '{{ states(\"alarm_control_panel.home_alarm\") = \"disarmed\" }}'\n action:\n service: alarm_control_panel.alarm_disarm\n data: {}\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "telegram_smartintercom",
|
||
"automation": "- id: telegram_smartintercom\n alias: Telegram (домофон - menu)\n description: ''\n trigger:\n - platform: event\n event_type: telegram_command\n event_data:\n command: /smartintercom\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /smartintercom\n action:\n - service: telegram_bot.delete_message\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n - service: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.user_id }}'\n title: '{{\"\\U0001F6AA\"}} Домофон'\n message: ''\n disable_notification: true\n inline_keyboard:\n - '{% set mode = states(\"select.smartintercom_modes\") %} {% if mode == \"Не активен\"\n %} {{\"\\U0001F7E2\"}} {% else %} {{\"\\U0001F534\"}} {% endif %} Не активен:/smartintercom_not_active,\n {% set mode = states(\"select.smartintercom_modes\") %} {% if mode == \"Открывать\n всегда\" %} {{\"\\U0001F7E2\"}} {% else %} {{\"\\U0001F534\"}} {% endif %} Открывать\n всегда:/smartintercom_open_always'\n - '{% if is_state(\"switch.smartintercom_accept_call\", \"on\") %} {{\"\\U0001F7E2\"}}\n {% else %} {{\"\\U0001F534\"}} {% endif %} Открыть:/smartintercom_accept_call,\n {% set mode = states(\"select.smartintercom_modes\") %} {% if mode == \"Сброс\n вызова\" %} {{\"\\U0001F7E2\"}} {% else %} {{\"\\U0001F534\"}} {% endif %} Сброс\n вызова:/smartintercom_reset'\n - '{% if is_state(\"switch.smartintercom_sound\", \"on\") %} {{\"\\U0001F7E2\"}} {%\n else %} {{\"\\U0001F534\"}} {% endif %} Звук:/smartintercom_sound, {% if is_state(\"switch.smartintercom_mute\",\n \"on\") %} {{\"\\U0001F7E2\"}} {% else %} {{\"\\U0001F534\"}} {% endif %} Mute:/smartintercom_mute'\n - '{{''📖''}} Главное меню:/mm, {{''🔄''}}Обновить:/smartintercom'",
|
||
"config": [
|
||
{
|
||
"name": "smartintercom accept call",
|
||
"room": "entrance",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_accept_call",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Smart Intercom Modes",
|
||
"room": null,
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.smartintercom_modes",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Smart Intercom Mute",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_mute",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Smart Intercom Sound",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.smartintercom_sound",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "1st_floor_bedroom_heater_thermostat Set Temperature",
|
||
"automation": "- alias: 1st_floor_bedroom_heater_thermostat Set Temperature\n trigger:\n - platform: state\n entity_id: sensor.1st_floor_bedroom_setpoint\n action:\n - service: climate.set_temperature\n target:\n entity_id: climate.1st_floor_bedroom_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.1st_floor_bedroom_thermostat'', ''temperature'')\n }}'",
|
||
"config": [
|
||
{
|
||
"name": "1st floor bedroom setpoint",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.1st_floor_bedroom_setpoint",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1st floor bedroom heater thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1st floor bedroom thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_thermostat",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "1st_floor_bedroom_thermostat Set Temperature",
|
||
"automation": "- alias: 1st_floor_bedroom_thermostat Set Temperature\n trigger:\n - platform: state\n entity_id: sensor.1st_floor_bedroom_heater_setpoint\n action:\n - service: climate.set_temperature\n target:\n entity_id: climate.1st_floor_bedroom_thermostat\n data:\n temperature: '{{ state_attr(''climate.1st_floor_bedroom_heater_thermostat'',\n ''temperature'') }}'",
|
||
"config": [
|
||
{
|
||
"name": "1st floor bedroom heater thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1st floor bedroom thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1st floor bedroom heater setpoint",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.1st_floor_bedroom_heater_setpoint",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathhouse_drying_timer_restart",
|
||
"automation": "- alias: bathhouse_drying_timer_restart\n id: bathhouse_drying_timer_restart\n triggers:\n - trigger: state\n entity_id:\n - script.bathhouse_drying_on\n actions:\n - action: timer.start\n data:\n duration: '{{ states(''input_number.bathhouse_drying_time'') | int * 60 * 60\n }}'\n target:\n entity_id: timer.bathhouse_drying_timer",
|
||
"config": [
|
||
{
|
||
"name": "bathhouse drying timer",
|
||
"room": "bathhouse",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.bathhouse_drying_timer",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "bathhouse drying time",
|
||
"room": "bathhouse",
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.bathhouse_drying_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathhouse Drying On Script",
|
||
"room": "Bathhouse",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.bathhouse_drying_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathhouse_drying_off",
|
||
"automation": "- alias: bathhouse_drying_off\n id: bathhouse_drying_off\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.bathhouse_drying_timer\n actions:\n - action: script.turn_on\n target:\n entity_id: script.bathhouse_drying_off",
|
||
"config": [
|
||
{
|
||
"name": "bathhouse drying timer",
|
||
"room": "bathhouse",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.bathhouse_drying_timer",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathhouse Drying Off Script",
|
||
"room": "Bathhouse",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.bathhouse_drying_off",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "apply_bathhouse_scene",
|
||
"automation": "- id: apply_bathhouse_scene\n alias: apply_bathhouse_scene\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.bathhouse_scenes\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.{{trigger.to_state.state}}\n data:\n transition: 2.5",
|
||
"config": [
|
||
{
|
||
"name": "bathhouse scenes",
|
||
"room": "bathhouse",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.bathhouse_scenes",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "corridor_light_auto_mode_reset",
|
||
"automation": "- alias: corridor_light_auto_mode_reset\n id: corridor_light_auto_mode_reset\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: -2.0\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.corridor_light_auto_mode\n state: 'off'\n - condition: state\n entity_id: light.corridor\n state: 'on'\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.corridor_light_auto_mode\n - action: scene.turn_on\n data_template:\n entity_id: scene.off_light\n transition: 2",
|
||
"config": [
|
||
{
|
||
"name": "sun",
|
||
"room": "outdoor",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "corridor light auto mode",
|
||
"room": "corridor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.corridor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "corridor light",
|
||
"room": "corridor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.corridor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Off Light Scene",
|
||
"room": "Corridor",
|
||
"type": "scene",
|
||
"id": {
|
||
"entity_id": "scene.off_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "apply_scene",
|
||
"automation": "- id: apply_scene\n alias: apply_scene\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.scenes\n actions:\n - action: scene.turn_on\n data_template:\n entity_id: scene.{{trigger.to_state.state}}\n transition: 2",
|
||
"config": [
|
||
{
|
||
"name": "scenes selector",
|
||
"room": "living_room",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.scenes",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "switch_on_full_corridor_lamps",
|
||
"automation": "- id: switch_on_full_corridor_lamps\n alias: switch_on_full_corridor_lamps\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.open_kitchen_motion_sensor\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.entrance_door_contact\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.corridor_light_auto_mode\n state: 'on'\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.full",
|
||
"config": [
|
||
{
|
||
"name": "corridor light auto mode",
|
||
"room": "corridor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.corridor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen motion sensor",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.open_kitchen_motion_sensor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "entrance door contact",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_door_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Full Scene",
|
||
"room": "Corridor",
|
||
"type": "scene",
|
||
"id": {
|
||
"entity_id": "scene.full",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "start_restart_corridor_light_timer",
|
||
"automation": "- alias: start_restart_corridor_light_timer\n id: start_restart_corridor_light_timer\n triggers:\n - trigger: state\n entity_id: binary_sensor.open_kitchen_motion_sensor\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.entrance_door_contact\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: light.corridor\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.corridor_light_auto_mode\n state: 'on'\n - condition: state\n entity_id: light.corridor\n state: 'on'\n actions:\n - action: timer.start\n data:\n duration: '{{ states(''input_number.corridor_light_limit_minutes'') | int *\n 60 }}'\n target:\n entity_id: timer.corridor_light",
|
||
"config": [
|
||
{
|
||
"name": "corridor light auto mode",
|
||
"room": "corridor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.corridor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "corridor light",
|
||
"room": "corridor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.corridor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen motion sensor",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.open_kitchen_motion_sensor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "entrance door contact",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_door_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "corridor light limit minutes",
|
||
"room": "corridor",
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.corridor_light_limit_minutes",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "corridor light timer",
|
||
"room": "corridor",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.corridor_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "switch_off_corridor_lamps",
|
||
"automation": "- alias: switch_off_corridor_lamps\n id: switch_off_corridor_lamps\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.corridor_light\n conditions:\n - condition: state\n entity_id: input_boolean.corridor_light_auto_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.open_kitchen_motion_sensor\n state: 'off'\n - condition: state\n entity_id: binary_sensor.entrance_door_contact\n state: 'off'\n - condition: state\n entity_id: light.corridor\n state: 'on'\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.off_light",
|
||
"config": [
|
||
{
|
||
"name": "corridor light auto mode",
|
||
"room": "corridor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.corridor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "corridor light",
|
||
"room": "corridor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.corridor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen motion sensor",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.open_kitchen_motion_sensor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "entrance door contact",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_door_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "corridor light timer",
|
||
"room": "corridor",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.corridor_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Off Light Scene",
|
||
"room": "Corridor",
|
||
"type": "scene",
|
||
"id": {
|
||
"entity_id": "scene.off_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water leak",
|
||
"automation": "- id: water leak\n alias: water leak\n description: water leak\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.toilet_water_leak\n to: 'on'\n action:\n - service: notify.mobile_app_artemevk\n data:\n title: Протечка\n message: Обнаружена протечка\n data:\n url: /lovelace/main\n push:\n sound:\n name: alarm.caf\n critical: 1\n volume: 1.0",
|
||
"config": [
|
||
{
|
||
"name": "toilet water leak",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.toilet_water_leak",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "power_protection",
|
||
"automation": "- id: power_protection\n alias: power protection\n description: power protection\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.a_power\n - sensor.b_power\n - sensor.c_power\n for:\n hours: 0\n minutes: 1\n seconds: 0\n above: 6000\n action:\n - service: notify.mobile_app_artemevk\n data:\n title: Потребление электроэнергии\n message: '{{ states(''sensor.msg_power_protection'') }}'\n data:\n url: /lovelace/main\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n push:\n sound:\n name: alarm.caf\n critical: 1\n volume: 0.2\n - service: telegram_bot.send_message\n data_template:\n target: secret tlg_user1_id\n title: '#alarm'\n message: '{{ states(''sensor.msg_power_protection'') }}'\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "a power",
|
||
"room": "electrical",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.a_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "b power",
|
||
"room": "electrical",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.b_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "c power",
|
||
"room": "electrical",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.c_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg power protection",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_power_protection",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "temperature_protection",
|
||
"automation": "- id: temperature_protection\n alias: temperature protection\n description: temperature protection\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.1st_floor_bedroom_temperature\n - sensor.bathhouse_climate_temperature\n - sensor.childrens_room_climate_temperature\n - sensor.open_kitchen_temperature\n - sensor.second_floor_climate_temperature\n - sensor.toilet_climate_temperature\n for:\n hours: 0\n minutes: 5\n seconds: 0\n below: 5\n action:\n - service: notify.mobile_app_artemevk\n data:\n title: Потребление электроэнергии\n message: '{{ states(''sensor.msg_temperature_protection'') }}'\n data:\n url: /lovelace/main\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n push:\n sound:\n name: alarm.caf\n critical: 1\n volume: 0.2\n - service: telegram_bot.send_message\n data_template:\n target: secret tlg_user1_id\n title: '#alarm'\n message: '{{ states(''sensor.msg_temperature_protection'') }}'\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "1st floor bedroom temperature",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.1st_floor_bedroom_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "bathhouse climate temperature",
|
||
"room": "bathhouse",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.bathhouse_climate_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room climate temperature",
|
||
"room": "childrens_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.childrens_room_climate_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen temperature",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.open_kitchen_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "second floor climate temperature",
|
||
"room": "second_floor",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.second_floor_climate_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "toilet climate temperature",
|
||
"room": "toilet",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.toilet_climate_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg temperature protection",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_temperature_protection",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Разрешить перевод в режим энергосбережения",
|
||
"automation": "- id: Разрешить перевод в режим энергосбережения\n alias: eco_mode_resolution_on\n initial_state: true\n trigger:\n - platform: time\n at: '15:32:00'\n condition:\n - condition: state\n entity_id: input_boolean.eco_mode_resolution\n state: 'off'\n action:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.eco_mode_resolution",
|
||
"config": [
|
||
{
|
||
"name": "eco mode resolution",
|
||
"room": "system",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.eco_mode_resolution",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Уведомление о разрешении перевода в режим энергосбережения",
|
||
"automation": "- id: Уведомление о разрешении перевода в режим энергосбережения\n alias: eco_mode_resolution_on_notify\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.eco_mode_resolution\n to: 'on'\n action:\n - service: notify.tlg_user1_id\n data:\n message: '{{\"\\U0001F343\"}} Разрешен перевод в режим энергосбережения.'\n - service: notify.mobile_app_artemevk\n data:\n message: '{{\"\\U0001F343\"}} Разрешен перевод в режим энергосбережения.'",
|
||
"config": [
|
||
{
|
||
"name": "eco mode resolution",
|
||
"room": "system",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.eco_mode_resolution",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Уведомление об активировации запрета включения режима энергосбережения",
|
||
"automation": "- id: Уведомление об активировации запрета включения режима энергосбережения\n alias: eco_mode_resolution_off_notify\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.eco_mode_resolution\n to: 'off'\n action:\n - service: notify.tlg_user1_id\n data:\n message: '{{\"\\U0001F342\"}} Активировирован запрет включения режима энергосбережения.'\n - service: notify.mobile_app_artemevk\n data:\n message: '{{\"\\U0001F342\"}} Активировирован запрет включения режима энергосбережения.'",
|
||
"config": [
|
||
{
|
||
"name": "eco mode resolution",
|
||
"room": "system",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.eco_mode_resolution",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Экономичный режим энергопотребления",
|
||
"automation": "- id: Экономичный режим энергопотребления\n alias: economical_power_consumption_mode\n initial_state: true\n trigger:\n - platform: time\n at: '23:45:00'\n condition:\n - condition: state\n entity_id: input_boolean.eco_mode_resolution\n state: 'on'\n - condition: state\n entity_id: binary_sensor.eco_mode_status\n state: 'off'\n - '{{ min([state_attr(''climate.1st_floor_bedroom_heater_thermostat'', ''temperature''),\n state_attr(''climate.1st_floor_bedroom_thermostat'', ''temperature''), state_attr(''climate.open_kitchen_heater_thermostat'',\n ''temperature''), state_attr(''climate.open_kitchen_thermostat'', ''temperature''),\n state_attr(''climate.childrens_room_heater_thermostat'', ''temperature'')]) >\n 7 }}'\n action:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.eco_mode_status\n - service: climate.set_temperature\n target:\n entity_id: climate.1st_floor_bedroom_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.1st_floor_bedroom_heater_thermostat'',\n ''temperature'') -2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.1st_floor_bedroom_thermostat\n data:\n temperature: '{{ state_attr(''climate.1st_floor_bedroom_thermostat'', ''temperature'')\n -2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.open_kitchen_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.open_kitchen_heater_thermostat'', ''temperature'')\n -2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.open_kitchen_thermostat\n data:\n temperature: '{{ state_attr(''climate.open_kitchen_thermostat'', ''temperature'')\n -2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.childrens_room_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.childrens_room_heater_thermostat'', ''temperature'')\n -2 }}'\n - service: switch.turn_off\n target:\n entity_id: switch.water_heater",
|
||
"config": [
|
||
{
|
||
"name": "1st floor bedroom heater thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1st floor bedroom thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "eco mode resolution",
|
||
"room": "system",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.eco_mode_resolution",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "eco mode status",
|
||
"room": "system",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.eco_mode_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen heater thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room heater thermostat",
|
||
"room": "childrens_room",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.childrens_room_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "water heater",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.water_heater",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ECO Mode Status",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.eco_mode_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Стандартный режим энергопотребления",
|
||
"automation": "- id: Стандартный режим энергопотребления\n alias: standard_power_consumption_mode\n initial_state: true\n trigger:\n - platform: time\n at: 05:30:00\n - platform: state\n entity_id: input_boolean.eco_mode_resolution\n to: 'off'\n condition:\n - condition: state\n entity_id: binary_sensor.eco_mode_status\n state: 'on'\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.eco_mode_status\n - service: climate.set_temperature\n target:\n entity_id: climate.1st_floor_bedroom_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.1st_floor_bedroom_heater_thermostat'',\n ''temperature'') +2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.1st_floor_bedroom_thermostat\n data:\n temperature: '{{ state_attr(''climate.1st_floor_bedroom_thermostat'', ''temperature'')\n +2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.open_kitchen_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.open_kitchen_heater_thermostat'', ''temperature'')\n +2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.open_kitchen_thermostat\n data:\n temperature: '{{ state_attr(''climate.open_kitchen_thermostat'', ''temperature'')\n +2 }}'\n - service: climate.set_temperature\n target:\n entity_id: climate.childrens_room_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.childrens_room_heater_thermostat'', ''temperature'')\n +2 }}'\n - service: switch.turn_on\n target:\n entity_id: switch.water_heater",
|
||
"config": [
|
||
{
|
||
"name": "1st floor bedroom heater thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "1st floor bedroom thermostat",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.1st_floor_bedroom_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "eco mode resolution",
|
||
"room": "system",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.eco_mode_resolution",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "eco mode status",
|
||
"room": "system",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.eco_mode_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen heater thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "childrens room heater thermostat",
|
||
"room": "childrens_room",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.childrens_room_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "water heater",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.water_heater",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ECO Mode Status",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.eco_mode_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Управление воротами",
|
||
"automation": "- id: Управление воротами\n alias: gate_step_mode_tlg\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /gate_step_mode\n - trigger: mqtt\n topic: zigbee2mqtt/remote/action\n payload: button_4_single\n - trigger: mqtt\n topic: zigbee2mqtt/remote/action\n payload: button_5_single\n - trigger: mqtt\n topic: zigbee2mqtt/gates_remote/action\n payload: 1_single\n actions:\n - action: script.turn_on\n target:\n entity_id:\n - script.gate_step_mode",
|
||
"config": [
|
||
{
|
||
"name": "Gate Step Mode Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.gate_step_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Управление калиткой",
|
||
"automation": "- id: Управление калиткой\n alias: gate_pedestrian_crossing_tlg\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /gate_pedestrian_crossing\n - trigger: device\n domain: mqtt\n device_id: 1483a1bf0791f39b789ccac73cc01fa8\n type: action\n subtype: button_1_single\n - trigger: device\n domain: mqtt\n device_id: 1483a1bf0791f39b789ccac73cc01fa8\n type: action\n subtype: button_8_single\n - trigger: mqtt\n topic: zigbee2mqtt/gates_remote/action\n payload: 2_single\n actions:\n - action: script.turn_on\n target:\n entity_id:\n - script.gate_pedestrian_crossing",
|
||
"config": [
|
||
{
|
||
"name": "gate controller remote",
|
||
"room": "outdoor",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "1483a1bf0791f39b789ccac73cc01fa8"
|
||
}
|
||
},
|
||
{
|
||
"name": "Gate Pedestrian Crossing Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.gate_pedestrian_crossing",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "open_kitchen_heater_thermostat Set Temperature",
|
||
"automation": "- alias: open_kitchen_heater_thermostat Set Temperature\n trigger:\n - platform: state\n entity_id: sensor.open_kitchen_setpoint\n action:\n - service: climate.set_temperature\n target:\n entity_id: climate.open_kitchen_heater_thermostat\n data:\n temperature: '{{ state_attr(''climate.open_kitchen_thermostat'', ''temperature'')\n }}'",
|
||
"config": [
|
||
{
|
||
"name": "open kitchen heater thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen setpoint",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.open_kitchen_setpoint",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "open_kitchen_thermostat Set Temperature",
|
||
"automation": "- alias: open_kitchen_thermostat Set Temperature\n trigger:\n - platform: state\n entity_id: sensor.open_kitchen_heater_setpoint\n action:\n - service: climate.set_temperature\n target:\n entity_id: climate.open_kitchen_thermostat\n data:\n temperature: '{{ state_attr(''climate.open_kitchen_heater_thermostat'', ''temperature'')\n }}'",
|
||
"config": [
|
||
{
|
||
"name": "open kitchen heater thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_heater_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen thermostat",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.open_kitchen_thermostat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen heater setpoint",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.open_kitchen_heater_setpoint",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "outdoor_light_auto_mode_reset",
|
||
"automation": "- alias: outdoor_light_auto_mode_reset\n id: outdoor_light_auto_mode_reset\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: -2.0\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.outdoor_light_auto_mode\n state: 'off'\n - condition: state\n entity_id: light.outdoor\n state: 'on'\n actions:\n - action: light.turn_off\n target:\n entity_id: light.outdoor\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.outdoor_light_auto_mode",
|
||
"config": [
|
||
{
|
||
"name": "sun",
|
||
"room": "outdoor",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light auto mode",
|
||
"room": "outdoor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.outdoor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light",
|
||
"room": "outdoor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.outdoor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "switch_on_light_porch",
|
||
"automation": "- alias: switch_on_light_porch\n id: switch_on_light_porch\n triggers:\n - trigger: state\n entity_id: binary_sensor.outdoor_motion\n to: 'on'\n - trigger: template\n value_template: '{{ states(''zone.home'') | int > 0 }}'\n condition:\n - condition: state\n entity_id: input_boolean.outdoor_light_auto_mode\n state: 'on'\n - condition: state\n entity_id: light.outdoor\n state: 'off'\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n actions:\n - action: light.turn_on\n target:\n entity_id: light.outdoor",
|
||
"config": [
|
||
{
|
||
"name": "sun",
|
||
"room": "outdoor",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light auto mode",
|
||
"room": "outdoor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.outdoor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light",
|
||
"room": "outdoor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.outdoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor motion",
|
||
"room": "outdoor",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.outdoor_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Home Zone",
|
||
"room": null,
|
||
"type": "zone",
|
||
"id": {
|
||
"entity_id": "zone.home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "start_restart_outdoor_light_timer",
|
||
"automation": "- alias: start_restart_outdoor_light_timer\n id: start_restart_outdoor_light_timer\n triggers:\n - trigger: state\n entity_id: binary_sensor.outdoor_motion\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: light.outdoor\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.outdoor_light_auto_mode\n state: 'on'\n - condition: state\n entity_id: light.outdoor\n state: 'on'\n actions:\n - action: timer.start\n data:\n duration: '{{ states(''input_number.outdoor_light_limit_minutes'') | int * 60\n }}'\n target:\n entity_id: timer.outdoor_light",
|
||
"config": [
|
||
{
|
||
"name": "outdoor light auto mode",
|
||
"room": "outdoor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.outdoor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light",
|
||
"room": "outdoor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.outdoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor motion",
|
||
"room": "outdoor",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.outdoor_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light limit minutes",
|
||
"room": "outdoor",
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.outdoor_light_limit_minutes",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light timer",
|
||
"room": "outdoor",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.outdoor_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "switch_off_light_porch",
|
||
"automation": "- alias: switch_off_light_porch\n id: switch_off_light_porch\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.outdoor_light\n conditions:\n - condition: state\n entity_id: input_boolean.outdoor_light_auto_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.outdoor_motion\n state: 'off'\n - condition: state\n entity_id: light.outdoor\n state: 'on'\n actions:\n - action: light.turn_off\n target:\n entity_id: light.outdoor",
|
||
"config": [
|
||
{
|
||
"name": "outdoor light auto mode",
|
||
"room": "outdoor",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.outdoor_light_auto_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light",
|
||
"room": "outdoor",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.outdoor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor motion",
|
||
"room": "outdoor",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.outdoor_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "outdoor light timer",
|
||
"room": "outdoor",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.outdoor_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "motion_notification",
|
||
"automation": "- alias: motion_notification\n id: motion_notification\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.cameras_motion\n - binary_sensor.porch_motion_protect_occupancy\n to: 'on'\n condition:\n alias: alarm not disarmed\n not:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: disarmed\n action:\n - delay: 3\n - service: script.create_photos\n - delay: 5\n - service: script.send_photos\n - service: notify.alarm\n data:\n title: Охрана\n message: Зафиксировано движение\n data:\n url: /lovelace/security\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n ledColor: red\n image: /media/local/porch_camera_last_snapshot.jpg\n content-type: image\n push:\n sound:\n name: default\n critical: 1\n volume: 0.2\n actions:\n - action: ALARM\n title: Sound Alarm\n destructive: true\n icon: sfsymbols:bell\n - action: SILENCE\n title: Silence Alarm\n icon: sfsymbols:bell.slash",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "cameras motion",
|
||
"room": "outdoor",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.cameras_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "porch motion protect occupancy",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_motion_protect_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Create Photos Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.create_photos",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Send Photos Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.send_photos",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Напоминание о необходимости снять дом с охраны",
|
||
"automation": "- id: Напоминание о необходимости снять дом с охраны\n alias: reminder_to_disarm_the_house\n initial_state: false\n trigger:\n platform: state\n entity_id: device_tracker.artemevk\n to: home\n condition:\n not:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: disarmed\n action:\n - service: notify.mobile_app_artemevk\n data:\n title: Охрана\n message: Не забудь снять дом с охраны\n data:\n url: /lovelace/security\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n push:\n sound:\n name: default\n critical: 1\n volume: 0.2\n actions:\n - action: disarmed\n title: Снять с охраны\n icon: sfsymbols:lock.open",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "artemevk device tracker",
|
||
"room": "home",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "device_tracker.artemevk",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Напоминание о необходимости снять дом с охраны АПН",
|
||
"automation": "- id: Напоминание о необходимости снять дом с охраны АПН\n alias: reminder_to_disarm_the_house_artemevp\n initial_state: false\n trigger:\n platform: state\n entity_id: device_tracker.artemevp\n to: home\n condition:\n not:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: disarmed\n action:\n - service: notify.mobile_app_artemevp\n data:\n title: Охрана\n message: Не забудь снять дом с охраны\n data:\n url: /lovelace/security\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n push:\n sound:\n name: default\n critical: 1\n volume: 0.2\n actions:\n - action: disarmed\n title: Снять с охраны\n icon: sfsymbols:lock.open",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "artemevp device tracker",
|
||
"room": "home",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "device_tracker.artemevp",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "disarmed",
|
||
"automation": "- alias: disarmed\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: disarmed\n action:\n - service: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Trigger alarm while armed away",
|
||
"automation": "- alias: Trigger alarm while armed away\n trigger:\n - platform: state\n entity_id: binary_sensor.entrance_door_contact\n to: 'on'\n - platform: state\n entity_id: binary_sensor.open_kitchen_motion_sensor\n to: 'on'\n condition:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_away\n action:\n service: alarm_control_panel.alarm_trigger\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "open kitchen motion sensor",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.open_kitchen_motion_sensor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "entrance door contact",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_door_contact",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Trigger alarm while armed home",
|
||
"automation": "- alias: Trigger alarm while armed home\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.porch_motion_protect_occupancy\n - binary_sensor.cameras_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_home\n - condition: state\n entity_id: binary_sensor.porch_motion_protect_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.cameras_motion\n state: 'on'\n actions:\n - action: alarm_control_panel.alarm_trigger\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "cameras motion",
|
||
"room": "outdoor",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.cameras_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "porch motion protect occupancy",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_motion_protect_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Send notification when alarm triggered",
|
||
"automation": "- alias: Send notification when alarm triggered\n trigger:\n - platform: state\n entity_id: alarm_control_panel.home_alarm\n to: triggered\n action:\n - service: notify.alarm\n data:\n title: Охрана\n message: Сработала сигнализация\n data:\n url: /lovelace/security\n push:\n sound:\n name: alarm.caf\n critical: 1\n volume: 1.0\n actions:\n - action: ALARM\n title: Sound Alarm\n destructive: true\n icon: sfsymbols:bell\n - action: SILENCE\n title: Silence Alarm\n icon: sfsymbols:bell.slash\n - action: disarmed\n title: Снять с охраны\n icon: sfsymbols:lock.open",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "automatic arming",
|
||
"automation": "- id: automatic arming\n alias: automatic arming\n trigger:\n - platform: template\n value_template: '{{ states(''zone.home'') | int == 0 }}'\n condition:\n not:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_away\n action:\n - service: alarm_control_panel.alarm_arm_away\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Home Zone",
|
||
"room": null,
|
||
"type": "zone",
|
||
"id": {
|
||
"entity_id": "zone.home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "automatic disarming",
|
||
"automation": "- id: automatic disarming\n alias: automatic disarming\n trigger:\n - platform: template\n value_template: '{{ states(''zone.home'') | int > 0 }}'\n condition:\n not:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: disarmed\n action:\n - service: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.home_alarm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Home Zone",
|
||
"room": null,
|
||
"type": "zone",
|
||
"id": {
|
||
"entity_id": "zone.home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Create photos when arming",
|
||
"automation": "- id: Create photos when arming\n alias: Create photos when arming\n triggers:\n - trigger: state\n entity_id:\n - alarm_control_panel.home_alarm\n to: arming\n actions:\n - action: script.create_photos",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Create Photos Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.create_photos",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "alarm notify armed",
|
||
"automation": "- id: alarm notify armed\n alias: alarm notify armed\n trigger:\n - platform: state\n entity_id: alarm_control_panel.home_alarm\n to:\n - armed_away\n action:\n - service: script.send_photos\n - service: notify.alarm\n data:\n title: Охрана\n message: Дом поставлен на охрану.\n data:\n url: /lovelace/security\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n ledColor: red\n image: /media/local/porch_camera_last_snapshot.jpg\n content-type: image",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Send Photos Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.send_photos",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "alarm notify disarmed",
|
||
"automation": "- id: alarm notify disarmed\n alias: alarm notify disarmed\n trigger:\n - platform: state\n entity_id: alarm_control_panel.home_alarm\n not_from:\n - arming\n - armed_home\n to:\n - disarmed\n action:\n - service: notify.alarm\n data:\n title: Охрана\n message: Дом снят с охраны.\n data:\n url: /lovelace/security\n importance: high\n persistent: true\n vibrationPattern: 100, 1000, 100, 1000, 100\n ledColor: red",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tlg_action_disarm",
|
||
"automation": "- id: tlg_action_disarm\n alias: tlg_action_disarm\n initial_state: true\n mode: single\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /alarm_disarm\n actions:\n - action: alarm_control_panel.alarm_disarm\n target:\n entity_id: alarm_control_panel.home_alarm\n - service: telegram_bot.edit_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n title: '#охрана'\n message: '{{''\\U0001F6A8''}} Меню охраны\n\n Текущий режим:\n\n {%- if states(''alarm_control_panel.home_alarm'') == ''disarmed'' %}{{\" Нет\n охраны\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_home'' %}{{\"\n Дома\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_away'' %}{{\"\n Не дома\"}}\n\n {% endif -%}\n\n Выберите режим:\n\n '\n inline_keyboard:\n - Не дома:/alarm_arm_away, Дома:/alarm_arm_home\n - Нет охраны:/alarm_disarm\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tlg_action_arm_home",
|
||
"automation": "- id: tlg_action_arm_home\n alias: tlg_action_arm_home\n initial_state: true\n mode: single\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /alarm_arm_home\n actions:\n - action: alarm_control_panel.alarm_arm_home\n target:\n entity_id: alarm_control_panel.home_alarm\n - service: telegram_bot.edit_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n title: '#охрана'\n message: '{{''\\U0001F6A8''}} Меню охраны\n\n Текущий режим:\n\n {%- if states(''alarm_control_panel.home_alarm'') == ''disarmed'' %}{{\" Нет\n охраны\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_home'' %}{{\"\n Дома\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_away'' %}{{\"\n Не дома\"}}\n\n {% endif -%}\n\n Выберите режим:\n\n '\n inline_keyboard:\n - Не дома:/alarm_arm_away, Дома:/alarm_arm_home\n - Нет охраны:/alarm_disarm\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tlg_action_arm_away",
|
||
"automation": "- id: tlg_action_arm_away\n alias: tlg_action_arm_away\n initial_state: true\n mode: single\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /alarm_arm_away\n actions:\n - action: alarm_control_panel.alarm_arm_away\n target:\n entity_id: alarm_control_panel.home_alarm\n - service: telegram_bot.edit_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n title: '#охрана'\n message: Команда принята. Время постановки на охрану 30 секунд. Ожидайте подтверждение.\n - delay: 31\n - service: telegram_bot.edit_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n title: '#охрана'\n message: '{{''\\U0001F6A8''}} Меню охраны\n\n Текущий режим:\n\n {%- if states(''alarm_control_panel.home_alarm'') == ''disarmed'' %}{{\" Нет\n охраны\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_home'' %}{{\"\n Дома\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_away'' %}{{\"\n Не дома\"}}\n\n {% endif -%}\n\n Выберите режим:\n\n '\n inline_keyboard:\n - Не дома:/alarm_arm_away, Дома:/alarm_arm_home\n - Нет охраны:/alarm_disarm\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Сжатие базы",
|
||
"automation": "- id: Сжатие базы\n alias: 00_purge_everyday\n initial_state: true\n trigger:\n - platform: time\n at: 01:00:00\n action:\n - service: recorder.purge\n data:\n keep_days: 5\n repack: true",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "l1k3",
|
||
"automation": "- id: l1k3\n alias: push_HA_configuration_to_GitHub_repo\n initial_state: true\n trigger:\n - platform: time\n at: '23:23:23'\n action:\n - service: shell_command.push_to_github",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "start_offline_timer",
|
||
"automation": "- id: start_offline_timer\n alias: start_offline_timer\n initial_state: true\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.iflat_connection\n to: 'off'\n action:\n - service: timer.start\n entity_id: timer.iflat_offline",
|
||
"config": [
|
||
{
|
||
"name": "iflat connection",
|
||
"room": "system",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.iflat_connection",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iflat offline timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.iflat_offline",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "iflat_disconnected",
|
||
"automation": "- id: iflat_disconnected\n alias: iflat_disconnected\n trigger:\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.iflat_offline\n action:\n - service: notify.tlg_user1_id\n data:\n title: '#system'\n message: Сервер iFlat не отвечает!\n - service: notify.mobile_app_artemevk\n data:\n message: Сервер iFlat не отвечает!",
|
||
"config": [
|
||
{
|
||
"name": "iflat offline timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.iflat_offline",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "cancel_offline_timer",
|
||
"automation": "- id: cancel_offline_timer\n alias: cancel_offline_timer\n initial_state: true\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.iflat_connection\n to: 'on'\n action:\n - service: timer.cancel\n entity_id: timer.iflat_offline",
|
||
"config": [
|
||
{
|
||
"name": "iflat connection",
|
||
"room": "system",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.iflat_connection",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iflat offline timer",
|
||
"room": "system",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.iflat_offline",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "porch_timelapce",
|
||
"automation": "- id: porch_timelapce\n alias: porch_timelapce\n initial_state: false\n trigger:\n - platform: time_pattern\n minutes: /15\n condition:\n alias: Time 9~18\n condition: time\n after: '9:00:00'\n before: '18:00:00'\n action:\n - service: camera.snapshot\n target:\n entity_id: camera.courtyard_camera_mainstream\n data:\n filename: /config/tmp/courtyard_camera_{{ now().strftime(\"%Y%m%d-%H%M%S\") }}.jpg",
|
||
"config": [
|
||
{
|
||
"name": "courtyard camera mainstream",
|
||
"room": "courtyard",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.courtyard_camera_mainstream",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Telegram bot main menu",
|
||
"automation": "- alias: Telegram bot main menu\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: /mm\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /mm\n actions:\n - action: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: 'Добро пожаловать в главное меню. Выберите действие:'\n inline_keyboard:\n - Ворота:/gate_step_mode, Калитка:/gate_pedestrian_crossing\n - Отчет о системе:/report, Батарейки:/battaries_states\n - Прогноз погоды:/forecast, Погода в доме:/home_climate_report\n - Подготовить дом:/prepare_the_house, Вкл. антизамерз.:/antifrost_mode\n - Фото:/photo\n - '{{''🚨''}} Меню охраны:/alarm_panel'",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "Telegram alarm menu",
|
||
"automation": "- alias: Telegram alarm menu\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /alarm_panel\n action:\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n title: '#охрана'\n message: '{{''\\U0001F6A8''}} Меню охраны\n\n Текущий режим:\n\n {%- if states(''alarm_control_panel.home_alarm'') == ''disarmed'' %}{{\" Нет\n охраны\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_home'' %}{{\"\n Дома\"}}\n\n {% elif states(''alarm_control_panel.home_alarm'') == ''armed_away'' %}{{\"\n Не дома\"}}\n\n {% endif -%}\n\n Выберите режим:\n\n '\n inline_keyboard:\n - Не дома:/alarm_arm_away, Дома:/alarm_arm_home\n - Нет охраны:/alarm_disarm\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "home alarm",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.home_alarm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отчет при запуске системы",
|
||
"automation": "- id: Отчет при запуске системы\n alias: start_message\n initial_state: true\n trigger:\n - platform: homeassistant\n event: start\n action:\n - service: notify.tlg_user1_id\n data:\n title: '#system'\n message: '{{\"\\U0001F5A5\"}} Зафиксирован запуск. Отчет о состоянии будет через\n 1 минуту.\n\n '\n - delay: 00:01:00\n - service: notify.tlg_user1_id\n data:\n title: '#system'\n message: '{{ states(''sensor.msg_report'') }}\n\n\n {{ states(''sensor.batteries_states_msg'') }}\n\n '\n - delay: 00:00:01\n - service: notify.tlg_user1_id\n data:\n message: 'Добро пожаловать в главное меню. Выберите действие:'\n data:\n inline_keyboard:\n - Ворота:/gate_step_mode, Калитка:/gate_pedestrian_crossing\n - Отчет о системе:/report, Батарейки:/battaries_states\n - Прогноз погоды:/forecast, Погода в доме:/home_climate_report\n - Подготовить дом:/prepare_the_house, Вкл. антизамерз.:/antifrost_mode\n - Фото:/photo",
|
||
"config": [
|
||
{
|
||
"name": "batteries states msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.batteries_states_msg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg report",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_report",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отчет о системе по запросу",
|
||
"automation": "- id: Отчет о системе по запросу\n alias: send_report\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /report\n - platform: event\n event_type: telegram_command\n event_data:\n command: /report\n action:\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n title: '#system'\n message: '{{ states(''sensor.msg_report'') }}\n\n\n {{ states(''sensor.batteries_states_msg'') }}\n\n '\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "batteries states msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.batteries_states_msg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg report",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_report",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отправить отчет о состоянии батареек",
|
||
"automation": "- id: Отправить отчет о состоянии батареек\n alias: send_battaries_states_msg\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /battaries_states\n - platform: numeric_state\n entity_id: sensor.min_batteries_state\n below: 40\n action:\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n title: '#system'\n message: '{{ states(''sensor.batteries_states_msg'') }}\n\n ---------------------\n\n entrance door - CR1632\n\n kitchen living room motion - CR2032\n\n childrens room climate - CR2032\n\n porch motion protect - 3xAAA\n\n toilet climate - CR2032\n\n toilet water leak - CR2032\n\n '\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "batteries states msg",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.batteries_states_msg",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "min batteries state",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.min_batteries_state",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отчет при потере объектов",
|
||
"automation": "- id: Отчет при потере объектов\n alias: send_report_when_objects_are_lost\n initial_state: true\n trigger:\n - platform: state\n entity_id: sensor.unavailable_objects\n for: 00:03:00\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state > trigger.from_state.state }}'\n action:\n - service: notify.tlg_user1_id\n data:\n message: '{{\"\\U0000203C\"}} Обнаружена новая неисправность\n\n {{ states(''sensor.msg_report'') }}\n\n '\n data:\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "unavailable objects",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.unavailable_objects",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg report",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_report",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Фото по запросу",
|
||
"automation": "- id: Фото по запросу\n alias: send_photos_tlg\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /photo\n action:\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: '{{\"\\U0001F4F8\"}} Команда принята. Фотографии будут отправлены через\n 5 секунд\n\n '\n - service: script.create_photos\n - delay: 00:00:05\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: last\n - service: telegram_bot.send_photo\n data:\n file: /media/parking_camera_last_snapshot.jpg\n target: '{{ trigger.event.data.chat_id }}'\n disable_notification: true\n - service: telegram_bot.send_photo\n data:\n file: /media/porch_camera_last_snapshot.jpg\n target: '{{ trigger.event.data.chat_id }}'\n disable_notification: true\n - service: telegram_bot.send_photo\n data:\n file: /media/courtyard_camera_last_snapshot.jpg\n target: '{{ trigger.event.data.chat_id }}'\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "Create Photos Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.create_photos",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Погода в доме",
|
||
"automation": "- id: Погода в доме\n alias: home_climate_report\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /home_climate_report\n action:\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: '{{\"\\U0000231A\"}} Отчет за {{ states(''sensor.time_date'') }}\n\n\n {{ states(''sensor.msg_open_kitchen_climate'') }}\n\n\n {{ states(''sensor.msg_1st_floor_bedroom_climate'')}}\n\n\n {{ states(''sensor.msg_childrens_room_climate'')}}\n\n\n {{ states(''sensor.msg_toilet_climate'')}}\n\n '\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "time date",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.time_date",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg open kitchen climate",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_open_kitchen_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg 1st floor bedroom climate",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_1st_floor_bedroom_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg childrens room climate",
|
||
"room": "childrens_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_childrens_room_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg toilet climate",
|
||
"room": "toilet",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_toilet_climate",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Подготовить дом тлг",
|
||
"automation": "- id: Подготовить дом тлг\n alias: tlg_prepare_the_house\n initial_state: true\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /prepare_the_house\n action:\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: '{{\"\\U00002668\"}} Команда принята. Подтвержение будет через 5 секунд\n\n '\n - service: script.turn_on\n target:\n entity_id:\n - script.prepare_the_house\n - delay: 00:00:05\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: last\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: '{{\"\\U0000231A\"}} {{ states(''sensor.time_date'') }}\n\n {{\"\\U00002668\"}} Дом подготавливается.\n\n\n {{ states(''sensor.msg_open_kitchen_climate'') }}\n\n\n {{ states(''sensor.msg_1st_floor_bedroom_climate'')}}\n\n\n {{ states(''sensor.msg_childrens_room_climate'')}}\n\n\n {{ states(''sensor.msg_toilet_climate'')}}\n\n '\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "time date",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.time_date",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg open kitchen climate",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_open_kitchen_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg 1st floor bedroom climate",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_1st_floor_bedroom_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg childrens room climate",
|
||
"room": "childrens_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_childrens_room_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg toilet climate",
|
||
"room": "toilet",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_toilet_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Prepare the House Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.prepare_the_house",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Подготовить дом",
|
||
"automation": "- id: Подготовить дом\n alias: prepare_the_house\n initial_state: true\n triggers:\n - trigger: time\n at: input_datetime.prepare_the_house_dt\n actions:\n - action: script.turn_on\n target:\n entity_id:\n - script.prepare_the_house\n - action: notify.mobile_app_artemevk\n data:\n title: Отопление\n message: Активирована подготовка дома\n data:\n url: /lovelace/main",
|
||
"config": [
|
||
{
|
||
"name": "prepare the house dt",
|
||
"room": "system",
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.prepare_the_house_dt",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Prepare the House Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.prepare_the_house",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Дом в режим антизамерзания",
|
||
"automation": "- id: Дом в режим антизамерзания\n alias: tlg_antifrost_mode\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /antifrost_mode\n action:\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: '{{ trigger.event.data.message.message_id }}'\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: '{{\"\\U00002744\"}} Команда принята. Подтвержение будет через 5 секунд\n\n '\n - service: script.turn_on\n target:\n entity_id:\n - script.antifrost_mode\n - delay: 00:00:05\n - service: telegram_bot.delete_message\n data:\n chat_id: '{{ trigger.event.data.chat_id }}'\n message_id: last\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n message: '{{\"\\U0000231A\"}} {{ states(''sensor.time_date'') }}\n\n {{\"\\U00002744\"}} Дом переведен в режим антизамерзания.\n\n\n {{ states(''sensor.msg_open_kitchen_climate'') }}\n\n\n {{ states(''sensor.msg_1st_floor_bedroom_climate'')}}\n\n\n {{ states(''sensor.msg_childrens_room_climate'')}}\n\n\n {{ states(''sensor.msg_toilet_climate'')}}\n\n '\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "time date",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.time_date",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg open kitchen climate",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_open_kitchen_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg 1st floor bedroom climate",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_1st_floor_bedroom_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg childrens room climate",
|
||
"room": "childrens_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_childrens_room_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "msg toilet climate",
|
||
"room": "toilet",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.msg_toilet_climate",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Antifrost Mode Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.antifrost_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On Script",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Утренний отчет о погоде",
|
||
"automation": "- alias: send_morning_climate_report\n id: Утренний отчет о погоде\n initial_state: true\n trigger:\n - platform: time\n at: 07:30:00\n action:\n - service: camera.snapshot\n target:\n entity_id: camera.courtyard_camera_mainstream\n data:\n filename: /media/courtyard_camera_last_snapshot.jpg\n - delay: 5\n - service: telegram_bot.send_photo\n data:\n file: /media/courtyard_camera_last_snapshot.jpg\n target:\n - secret tlg_user1_id\n - secret tlg_user2_id\n - secret tlg_user3_id\n - secret tlg_user4_id\n - secret tlg_user5_id\n caption: '{{\"\\U0001F300\"}} Климат отчет за {{ states(\"sensor.time_date\") }}\n {{ \"\\n\" -}} {{ \"\\n\" -}}{{\"\\U0001F3E2\"}} *МОСКВА:* {{ \"\\n\" -}}{{\"\\U0001F321\"}}\n Температура: {{state_attr(\"weather.yandex_weather_moscow\", \"temperature\")}}\n °C {{ \"\\n\" -}}{{\"\\U0001F32C\"}} Ветер: {{state_attr(\"weather.yandex_weather_moscow\",\n \"wind_speed\")}} м/с {{ \"\\n\" -}}_К {{ as_timestamp(state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].datetime) | timestamp_custom(''%H:%M'') }} ожидается:_ {{ \"\\n\"\n -}}{{\"\\U0001F321\"}} Прогноз: {{state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].native_temperature}} °C {{ \"\\n\" -}}{{\"\\U0001F326\"}} Условия:\n {% if state_attr(\"weather.yandex_weather_moscow\", \"forecast\")[1].condition\n == ''sunny'' %}{{\"солнечно\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''cloudy'' %}{{\"облачно\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''partlycloudy'' %}{{\"переменная облачность\"}}\n {% elif state_attr(\"weather.yandex_weather_moscow\", \"forecast\")[1].condition\n == ''pouring'' %}{{\"ливень\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''rainy'' %}{{\"дождь\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''snowy'' %}{{\"снег\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''clear-night'' %}{{\"ясно\"}} {% else %}{{ state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition }} {% endif %} {{ \"\\n\" -}} {{ \"\\n\" -}}{{\"\\U0001F3E1\"}}\n *МАТВЕЙКОВО:* {{ \"\\n\" -}}{{\"\\U0001F321\"}} Температура: {{state_attr(\"weather.yandex_weather\",\n \"temperature\")}} °C {{ \"\\n\" -}}{{\"\\U0001F32C\"}} Ветер: {{state_attr(\"weather.yandex_weather\",\n \"wind_speed\")}} м/с {{ \"\\n\" -}}_К {{ as_timestamp(state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].datetime) | timestamp_custom(''%H:%M'') }} ожидается:_ {{ \"\\n\"\n -}}{{\"\\U0001F321\"}} Прогноз: {{state_attr(\"weather.yandex_weather\", \"forecast\")[1].native_temperature}}\n °C {{ \"\\n\" -}}{{\"\\U0001F326\"}} Условия: {% if state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition == ''sunny'' %}{{\"солнечно\"}} {% elif state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition == ''cloudy'' %}{{\"облачно\"}} {% elif state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition == ''partlycloudy'' %}{{\"переменная облачность\"}}\n {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition == ''pouring''\n %}{{\"ливень\"}} {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition\n == ''rainy'' %}{{\"дождь\"}} {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition\n == ''snowy'' %}{{\"снег\"}} {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition\n == ''clear-night'' %}{{\"ясно\"}} {% else %}{{ state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition }} {% endif %}\n\n '\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "courtyard camera mainstream",
|
||
"room": "courtyard",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.courtyard_camera_mainstream",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "time date",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.time_date",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "yandex weather moscow",
|
||
"room": "outdoor",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.yandex_weather_moscow",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "yandex weather",
|
||
"room": "outdoor",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.yandex_weather",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User1 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user1_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User2 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user2_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User3 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user3_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User4 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user4_id",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Telegram User5 ID Secret",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "secret tlg_user5_id",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Отчет о погоде по запросу",
|
||
"automation": "- alias: send_climate_report\n id: Отчет о погоде по запросу\n initial_state: true\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /forecast\n - platform: event\n event_type: telegram_command\n event_data:\n command: /forecast\n action:\n - service: telegram_bot.send_message\n data_template:\n target: '{{ trigger.event.data.user_id }}'\n disable_notification: true\n title: '#weather'\n message: '{{\"\\U0001F300\"}} Ожидайте\n\n '\n - service: camera.snapshot\n target:\n entity_id: camera.courtyard_camera_mainstream\n data:\n filename: /media/courtyard_camera_last_snapshot.jpg\n - delay: 00:00:05\n - service: telegram_bot.delete_message\n data_template:\n message_id: last\n chat_id: '{{ trigger.event.data.chat_id }}'\n - service: telegram_bot.send_photo\n data:\n file: /media/courtyard_camera_last_snapshot.jpg\n target: '{{ trigger.event.data.user_id }}'\n caption: '{{\"\\U0001F300\"}} Климат отчет за {{ states(\"sensor.time_date\") }}\n {{ \"\\n\" -}} {{ \"\\n\" -}}{{\"\\U0001F3E2\"}} *МОСКВА:* {{ \"\\n\" -}}{{\"\\U0001F321\"}}\n Температура: {{state_attr(\"weather.yandex_weather_moscow\", \"temperature\")}}\n °C {{ \"\\n\" -}}{{\"\\U0001F32C\"}} Ветер: {{state_attr(\"weather.yandex_weather_moscow\",\n \"wind_speed\")}} м/с {{ \"\\n\" -}}_К {{ as_timestamp(state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].datetime) | timestamp_custom(''%H:%M'') }} ожидается:_ {{ \"\\n\"\n -}}{{\"\\U0001F321\"}} Прогноз: {{state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].native_temperature}} °C {{ \"\\n\" -}}{{\"\\U0001F326\"}} Условия:\n {% if state_attr(\"weather.yandex_weather_moscow\", \"forecast\")[1].condition\n == ''sunny'' %}{{\"солнечно\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''cloudy'' %}{{\"облачно\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''partlycloudy'' %}{{\"переменная облачность\"}}\n {% elif state_attr(\"weather.yandex_weather_moscow\", \"forecast\")[1].condition\n == ''pouring'' %}{{\"ливень\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''rainy'' %}{{\"дождь\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''snowy'' %}{{\"снег\"}} {% elif state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition == ''clear-night'' %}{{\"ясно\"}} {% else %}{{ state_attr(\"weather.yandex_weather_moscow\",\n \"forecast\")[1].condition }} {% endif %} {{ \"\\n\" -}} {{ \"\\n\" -}}{{\"\\U0001F3E1\"}}\n *МАТВЕЙКОВО:* {{ \"\\n\" -}}{{\"\\U0001F321\"}} Температура: {{state_attr(\"weather.yandex_weather\",\n \"temperature\")}} °C {{ \"\\n\" -}}{{\"\\U0001F32C\"}} Ветер: {{state_attr(\"weather.yandex_weather\",\n \"wind_speed\")}} м/с {{ \"\\n\" -}}_К {{ as_timestamp(state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].datetime) | timestamp_custom(''%H:%M'') }} ожидается:_ {{ \"\\n\"\n -}}{{\"\\U0001F321\"}} Прогноз: {{state_attr(\"weather.yandex_weather\", \"forecast\")[1].native_temperature}}\n °C {{ \"\\n\" -}}{{\"\\U0001F326\"}} Условия: {% if state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition == ''sunny'' %}{{\"солнечно\"}} {% elif state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition == ''cloudy'' %}{{\"облачно\"}} {% elif state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition == ''partlycloudy'' %}{{\"переменная облачность\"}}\n {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition == ''pouring''\n %}{{\"ливень\"}} {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition\n == ''rainy'' %}{{\"дождь\"}} {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition\n == ''snowy'' %}{{\"снег\"}} {% elif state_attr(\"weather.yandex_weather\", \"forecast\")[1].condition\n == ''clear-night'' %}{{\"ясно\"}} {% else %}{{ state_attr(\"weather.yandex_weather\",\n \"forecast\")[1].condition }} {% endif %}\n\n '\n inline_keyboard:\n - Главное меню:/mm",
|
||
"config": [
|
||
{
|
||
"name": "courtyard camera mainstream",
|
||
"room": "courtyard",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.courtyard_camera_mainstream",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "time date",
|
||
"room": "system",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.time_date",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "yandex weather moscow",
|
||
"room": "outdoor",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.yandex_weather_moscow",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "yandex weather",
|
||
"room": "outdoor",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.yandex_weather",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
}
|
||
] |