1670 lines
69 KiB
JSON
1670 lines
69 KiB
JSON
[
|
||
{
|
||
"id": "'1740563516926'",
|
||
"automation": "- id: '1740563516926'\n alias: Я дома\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.alex\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: Я дома\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Alex presence toggle",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.alex",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740563587967'",
|
||
"automation": "- id: '1740563587967'\n alias: Я не дома\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.alex\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: Я не дома\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Alex presence toggle",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.alex",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740591093040'",
|
||
"automation": "- id: '1740591093040'\n alias: At www5\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.iphone_aleksandr_ssid\n from: null\n to: WWW5\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: At www5\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr SSID sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.iphone_aleksandr_ssid",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740591197979'",
|
||
"automation": "- id: '1740591197979'\n alias: At lte\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.iphone_aleksandr_connection_type\n from: null\n to: Cellular\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: At LTE\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr connection type sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.iphone_aleksandr_connection_type",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740494025827'",
|
||
"automation": "- id: '1740494025827'\n alias: Левый верхний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_left\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.line_relay_kitchen\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen line relay",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.line_relay_kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740500687848'",
|
||
"automation": "- id: '1740500687848'\n alias: Левый нижний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_left_down\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.lamp_kitchen\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen lamp",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.lamp_kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740502482454'",
|
||
"automation": "- id: '1740502482454'\n alias: Правый верхний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_right\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.switch_kitchen_hall_right\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen hall right switch",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_kitchen_hall_right",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740502633327'",
|
||
"automation": "- id: '1740502633327'\n alias: Правый нижний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_right_down\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.switch_kitchen_hall_left\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen hall left switch",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_kitchen_hall_left",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740563516926'",
|
||
"automation": "- id: '1740563516926'\n alias: Я дома\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.alex\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: Я дома\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Alex presence toggle",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.alex",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740563587967'",
|
||
"automation": "- id: '1740563587967'\n alias: Я не дома\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.alex\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: Я не дома\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Alex presence toggle",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.alex",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740569109550'",
|
||
"automation": "- id: '1740569109550'\n alias: Door\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.binary_sensor_door_toilet_contact\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: Дверь закрыта\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet door contact sensor",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.binary_sensor_door_toilet_contact",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740591093040'",
|
||
"automation": "- id: '1740591093040'\n alias: At www5\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.iphone_aleksandr_ssid\n from: null\n to: WWW5\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: At www_5\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr SSID sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.iphone_aleksandr_ssid",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740591197979'",
|
||
"automation": "- id: '1740591197979'\n alias: At lte\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.iphone_aleksandr_connection_type\n from: null\n to: Cellular\n conditions: []\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: At LTE\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "iPhone Aleksandr connection type sensor",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.iphone_aleksandr_connection_type",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740677018186'",
|
||
"automation": "- id: '1740677018186'\n alias: Свет в ванной\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.motion_bath_occupancy\n from: null\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.door_bath_contact\n state: 'off'\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n metadata: {}\n data:\n message: В ванной включить свет\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath motion occupancy sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_bath_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath door contact sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_bath_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath motion sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_bath",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740919441609'",
|
||
"automation": "- id: '1740919441609'\n alias: Test template\n description: ''\n triggers:\n - trigger: template\n value_template: \"{{ is_state('binary_sensor.0x54ef441000118375_occupancy', 'off')\\\n \\ \\n and is_state('light.0x54ef44100035a3eb', 'on')\\n}}\"\n for:\n hours: 0\n minutes: 0\n seconds: 5\n conditions: []\n actions: []\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Occupancy sensor 1",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.0x54ef441000118375_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light 1",
|
||
"room": null,
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.0x54ef44100035a3eb",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "imitacia_pricutstvia_vkluchit_svet",
|
||
"automation": "- id: imitacia_pricutstvia_vkluchit_svet\n alias: Имитация присутствия включить свет\n triggers:\n - trigger: sun\n event: sunset\n - trigger: time\n at: '14:00:00'\n conditions:\n - condition: state\n entity_id: input_boolean.presence_simulation\n state: 'on'\n actions:\n - parallel:\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: switch.turn_on\n entity_id: switch.switch_kitchen_hall_left\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: light.turn_on\n entity_id: light.lamp_kitchen\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: light.turn_on\n entity_id: light.lamp_big_bedroom_marina_white\n data:\n brightness: 254\n color_temp: 4300\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: light.turn_on\n entity_id: light.lamp_bedroom_andrey_white\n data:\n brightness: 254\n color_temp: 4300",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen hall left switch",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_kitchen_hall_left",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Presence simulation toggle",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.presence_simulation",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_bedroom_andrey_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lamp Kitchen",
|
||
"room": "Kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "imitacia_pricutstvia_vykluchit_svet",
|
||
"automation": "- id: imitacia_pricutstvia_vykluchit_svet\n alias: Имитация присутствия выключить свет\n triggers:\n - trigger: time\n at: '21:00:00'\n conditions:\n - condition: state\n entity_id: input_boolean.presence_simulation\n state: 'on'\n actions:\n - parallel:\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: switch.turn_off\n entity_id: switch.switch_kitchen_hall_left\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: light.turn_off\n entity_id: light.lamp_kitchen\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: light.turn_off\n entity_id: light.lamp_big_bedroom_marina_white\n - sequence:\n - delay:\n minutes: \"{{ \\n range(states('input_number. min_minutes_presence_simulation_light_switch'),\\\n \\ \\n 'input_number. max_minutes_presence_simulation_light_switch') |\\\n \\ random \\n}}\"\n - action: light.turn_off\n entity_id: light.lamp_bedroom_andrey_white",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen hall left switch",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_kitchen_hall_left",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Presence simulation toggle",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.presence_simulation",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_bedroom_andrey_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lamp Kitchen",
|
||
"room": "Kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "svet_v_vannoy_vkluchit_po_datchiku_prisutctvia",
|
||
"automation": "- id: svet_v_vannoy_vkluchit_po_datchiku_prisutctvia\n alias: Свет в ванной включить по датчику присутствия\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_bath\n to: 'on'\n conditions:\n - condition: template\n value_template: \"{% if is_state(\\\"binary_sensor.is_night\\\", \\\"on\\\") %} {{ is_state\\\n \\ (\\\"switch.backlight_bath\\\", \\\"off\\\") }} {% else %} {{ is_state (\\\"switch.switch_bath_up\\\"\\\n , \\\"off\\\") }} {% endif %} \\n\"\n actions:\n - action: script.turn_on\n entity_id: script.light_turn_on_depending_on_daytime_bath",
|
||
"config": [
|
||
{
|
||
"name": "Bath motion sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Night mode sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.is_night",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath backlight switch",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.backlight_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath up switch",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_bath_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath light script",
|
||
"room": "bathroom",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.light_turn_on_depending_on_daytime_bath",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "svet_v_vannoy_vikluchit_po_datchiku_prisutctvia",
|
||
"automation": "- id: svet_v_vannoy_vikluchit_po_datchiku_prisutctvia\n alias: Свет в ванной выключить по датчику присутствия\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_bath\n to: 'off'\n actions:\n - action: switch.turn_off\n entity_id:\n - switch.backlight_bath\n - switch.switch_bath_up",
|
||
"config": [
|
||
{
|
||
"name": "Bath motion sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath backlight switch",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.backlight_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath up switch",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_bath_up",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "vkluchit_ventilaciyu_v_vannoy_vruchnuyu",
|
||
"automation": "- id: vkluchit_ventilaciyu_v_vannoy_vruchnuyu\n alias: Выключить вентиляцию в ванной вручную\n triggers:\n - trigger: state\n entity_id: sensor.switch_bath_action\n to: single_down\n conditions:\n - condition: state\n entity_id: switch.fan_bath\n state: 'on'\n actions:\n - action: switch.turn_off\n entity_id: switch.fan_bath",
|
||
"config": [
|
||
{
|
||
"name": "Bath switch action sensor",
|
||
"room": "bathroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.switch_bath_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath fan switch",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.fan_bath",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "perekluchit_ventilaciyu_v_vannoy_avtomaticheski",
|
||
"automation": "- id: perekluchit_ventilaciyu_v_vannoy_avtomaticheski\n alias: Переключить вентиляцию в ванной автоматически\n triggers:\n - trigger: state\n entity_id: binary_sensor.turn_on_fan_in_bath\n to:\n - 'on'\n - 'off'\n actions:\n action: 'switch.turn_{{ trigger.to_state.state }}\n\n '\n entity_id: switch.fan_bath",
|
||
"config": [
|
||
{
|
||
"name": "Bath fan switch",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.fan_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath fan control sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.turn_on_fan_in_bath",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "perekluchit_polotencesushitel_v_vannoy",
|
||
"automation": "- id: perekluchit_polotencesushitel_v_vannoy\n alias: Переключить полотенцесушитель в ванной\n triggers:\n - trigger: state\n entity_id: binary_sensor.turn_on_toweldryer_in_bath\n to:\n - 'on'\n - 'off'\n actions:\n action: 'switch.turn_{{ trigger.to_state.state }}\n\n '\n entity_id: switch.relay_toweldryer_bath",
|
||
"config": [
|
||
{
|
||
"name": "Bath towel dryer control sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.turn_on_toweldryer_in_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath towel dryer relay",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.relay_toweldryer_bath",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "perecryt_vodu_pri_utechke_v_vannoy",
|
||
"automation": "- id: perecryt_vodu_pri_utechke_v_vannoy\n alias: Перекрыть воду при утечке в ванной\n triggers:\n - trigger: state\n entity_id: binary_sensor.waterleak_in_bath\n to: 'on'\n actions:\n - action: switch.turn_off\n entity_id:\n - switch.hot_water_tap_bath\n - switch.cold_water_tap_bath",
|
||
"config": [
|
||
{
|
||
"name": "Bath water leak sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.waterleak_in_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath hot water tap",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.hot_water_tap_bath",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath cold water tap",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.cold_water_tap_bath",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_andreia_perekliuchenie_sveta",
|
||
"automation": "- id: dimmer_v_spalne_andreia_perekliuchenie_sveta\n alias: Диммер в спальне Андрея переключение света\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_andrey_action\n to: single\n conditions: []\n actions:\n - action: light.toggle\n entity_id: light.lamp_bedroom_andrey_white\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Andrey bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_bedroom_andrey_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_andrey_action",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_andreia_vkluchenie_maximalnoy_yarkosti",
|
||
"automation": "- id: dimmer_v_spalne_andreia_vkluchenie_maximalnoy_yarkosti\n alias: Диммер в спальне Андрея включение максимальной яркости\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_andrey_action\n to: double\n actions:\n - action: light.turn_on\n entity_id: light.lamp_bedroom_andrey_white\n data:\n brightness: 254\n color_temp_kelvin: 4300",
|
||
"config": [
|
||
{
|
||
"name": "Andrey bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_bedroom_andrey_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_andrey_action",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_andreya_perekluchenie_cvetovogo_kolca",
|
||
"automation": "- id: dimmer_v_spalne_andreya_perekluchenie_cvetovogo_kolca\n alias: Диммер в спальне Андрея переключение цветового кольца\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_marina_action\n to: hold\n actions:\n - action: light.toggle\n entity_id: light.lamp_big_bedroom_marina_rgb",
|
||
"config": [
|
||
{
|
||
"name": "Marina bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_marina_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom RGB lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_rgb",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_andreia_izmenit_iarkost",
|
||
"automation": "- id: dimmer_v_spalne_andreia_izmenit_iarkost\n alias: Диммер в спальне Андрея изменить яркость\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_andrey_action_rotation_percent\n from: unknown\n conditions:\n - condition: state\n entity_id: sensor.dimmer_bedroom_andrey_action\n state:\n - rotation\n - start_rotating\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.dimmer_bedroom_andrey_action_rotation_button_state\n state: released\n sequence:\n - action: light.turn_on\n entity_id: light.lamp_bedroom_andrey_white\n data_template:\n brightness: '{% set start_brightness = state_attr(''sensor.lamp_bedroom_andrey_attr'',\n ''brightness_white'') %} {% if is_state(''light.lamp_bedroom_andrey_white'',\n ''off'') %} {% set start_brightness = 0 %} {% endif %} {{ (start_brightness\n + (trigger.to_state.state | float) * 2.55) | int(1) }}'\n transition: 1\n - conditions:\n - condition: state\n entity_id: sensor.dimmer_bedroom_andrey_action_rotation_button_state\n state: pressed\n sequence:\n - variables:\n brightness: '{{ state_attr(''sensor.lamp_bedroom_andrey_attr'', ''brightness_white'')\n | int(1) }}'\n - action: light.turn_on\n entity_id: light.lamp_bedroom_andrey_white\n data_template:\n color_temp: '{{ ((state_attr(''sensor.lamp_bedroom_andrey_attr'', ''color_temp_white'')\n | int(1)) + (trigger.to_state.state | float) * 2.17) | int(1) }}'\n brightness: '{{ brightness }}'\n transition: 1",
|
||
"config": [
|
||
{
|
||
"name": "Andrey bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_bedroom_andrey_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_andrey_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom dimmer rotation sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_andrey_action_rotation_percent",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom dimmer button state sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_andrey_action_rotation_button_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom lamp attributes sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.lamp_bedroom_andrey_attr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "perekluchenie_sveta_v_spalne_andreya_po_vykluchatelu",
|
||
"automation": "- id: perekluchenie_sveta_v_spalne_andreya_po_vykluchatelu\n alias: Переключение света в спальне Андрея по выключателю\n triggers:\n - trigger: state\n id: single\n entity_id: sensor.switch_bedroom_andrey_action\n to: single_up\n - trigger: state\n id: double\n entity_id: sensor.switch_bedroom_andrey_action\n to: double_down\n actions:\n choose:\n - conditions:\n condition: trigger\n id: single\n sequence:\n action: light.toggle\n entity_id: light.lamp_bedroom_andrey_white\n data:\n brightness: 254\n color_temp_kelvin: 4300\n transition: 1\n - conditions:\n condition: trigger\n id: double\n sequence:\n action: light.toggle\n entity_id: light.lamp_bedroom_andrey_rgb\n data:\n transition: 1",
|
||
"config": [
|
||
{
|
||
"name": "Andrey bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_bedroom_andrey_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom RGB lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_bedroom_andrey_rgb",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom switch action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.switch_bedroom_andrey_action",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_mariny_perekliuchenie_sveta",
|
||
"automation": "- id: dimmer_v_spalne_mariny_perekliuchenie_sveta\n alias: Диммер в спальне Марины переключение света\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_marina_action\n to: single\n conditions: []\n actions:\n - action: light.toggle\n entity_id:\n - light.lamp_big_bedroom_marina_white\n - light.lamp_small_bedroom_marina",
|
||
"config": [
|
||
{
|
||
"name": "Marina bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_marina_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom small lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_small_bedroom_marina",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_mariny_vkluchenie_maksimalnoy_yarkosti",
|
||
"automation": "- id: dimmer_v_spalne_mariny_vkluchenie_maksimalnoy_yarkosti\n alias: Диммер в спальне Марины включение максимальной яркости\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_marina_action\n to: double\n actions:\n - action: light.turn_on\n entity_id:\n - light.lamp_big_bedroom_marina_white\n - light.lamp_small_bedroom_marina\n data:\n brightness: 254\n color_temp_kelvin: 4300",
|
||
"config": [
|
||
{
|
||
"name": "Marina bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_marina_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom small lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_small_bedroom_marina",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_mariny_perekluchenie_cvetovogo_kolca",
|
||
"automation": "- id: dimmer_v_spalne_mariny_perekluchenie_cvetovogo_kolca\n alias: Диммер в спальне Марины переключение цветового кольца\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_marina_action\n to: hold\n actions:\n - action: light.toggle\n entity_id: light.lamp_big_bedroom_marina_rgb",
|
||
"config": [
|
||
{
|
||
"name": "Marina bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_marina_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom RGB lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_rgb",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dimmer_v_spalne_mariny_izmenit_iarkost",
|
||
"automation": "- id: dimmer_v_spalne_mariny_izmenit_iarkost\n alias: Диммер в спальне Марины изменить яркость\n triggers:\n - trigger: state\n entity_id: sensor.dimmer_bedroom_marina_action_rotation_percent\n from: unknown\n conditions:\n - condition: state\n entity_id: sensor.dimmer_bedroom_marina_action\n state:\n - rotation\n - start_rotating\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.dimmer_bedroom_marina_action_rotation_button_state\n state: released\n sequence:\n - action: light.turn_on\n entity_id:\n - light.lamp_big_bedroom_marina_white\n - light.lamp_small_bedroom_marina\n data_template:\n brightness: '{% set start_brightness = state_attr(''sensor.lamp_big_bedroom_marina_attr'',\n ''brightness_white'') %} {% if is_state(''light.lamp_big_bedroom_marina_white'',\n ''off'') %} {% set start_brightness = 0 %} {% endif %} {{ (start_brightness\n + (trigger.to_state.state | float) * 2.55) | int(1) }}'\n transition: 1\n - conditions:\n - condition: state\n entity_id: sensor.dimmer_bedroom_marina_action_rotation_button_state\n state: pressed\n sequence:\n - variables:\n brightness: '{{ state_attr(''sensor.lamp_bedroom_andrey_attr'', ''brightness_white'')\n | int(1) }}'\n - action: light.turn_on\n entity_id:\n - light.lamp_big_bedroom_marina_white\n - light.lamp_small_bedroom_marina\n data_template:\n color_temp: '{{ ((state_attr(''sensor.lamp_big_bedroom_marina_attr'', ''color_temp_white'')\n | int(1)) + (trigger.to_state.state | float) * 2.17) | int(1) }}'\n brightness: '{{ brightness }}'\n transition: 1",
|
||
"config": [
|
||
{
|
||
"name": "Marina bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom dimmer action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_marina_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Andrey bedroom lamp attributes sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.lamp_bedroom_andrey_attr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom small lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_small_bedroom_marina",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom dimmer rotation sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_marina_action_rotation_percent",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom dimmer button state sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dimmer_bedroom_marina_action_rotation_button_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom lamp attributes sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.lamp_big_bedroom_marina_attr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "perekluchenie_sveta_i_cveta_v_spalne_mariny_po_vykluchatelu",
|
||
"automation": "- id: perekluchenie_sveta_i_cveta_v_spalne_mariny_po_vykluchatelu\n alias: Переключение света и цвета в спальне Марины по выключателю\n triggers:\n - trigger: state\n id: single\n entity_id: sensor.switch_bedroom_marina_action\n to: single_down\n - trigger: state\n id: double\n entity_id: sensor.switch_bedroom_marina_action\n to: double_down\n actions:\n choose:\n - conditions:\n condition: trigger\n id: single\n sequence:\n action: light.toggle\n entity_id:\n - light.lamp_big_bedroom_marina_white\n - light.lamp_small_bedroom_marina\n data:\n brightness: 254\n color_temp_kelvin: 4300\n transition: 1\n - conditions:\n condition: trigger\n id: double\n sequence:\n action: light.toggle\n entity_id: light.lamp_big_bedroom_marina_rgb\n data:\n transition: 1",
|
||
"config": [
|
||
{
|
||
"name": "Marina bedroom white lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_white",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom RGB lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_big_bedroom_marina_rgb",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom small lamp",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.lamp_small_bedroom_marina",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Marina bedroom switch action sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.switch_bedroom_marina_action",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "zakrytie_zamka_po_datchiku_zakrytiya_dveri",
|
||
"automation": "- id: zakrytie_zamka_po_datchiku_zakrytiya_dveri\n alias: Закрытие замка по датчику закрытия двери\n triggers:\n - trigger: state\n entity_id: binary_sensor.door_entrance_contact\n to: 'off'\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.lock_trigger_from_hass",
|
||
"config": [
|
||
{
|
||
"name": "Entrance door contact sensor",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_entrance_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock trigger boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.lock_trigger_from_hass",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "zapusk_taimara_zamka_vkhodnoi_dveri",
|
||
"automation": "- id: zapusk_taimara_zamka_vkhodnoi_dveri\n alias: Запуск таймара замка входной двери\n triggers:\n - trigger: state\n entity_id: input_boolean.lock_trigger_in_hass\n to: 'off'\n action:\n - action: timer.start\n entity_id: timer.lock_entrance_door_timer\n - action: input_boolean.turn_off\n entity_id: input_boolean.lock_trigger_from_hass",
|
||
"config": [
|
||
{
|
||
"name": "Lock trigger boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.lock_trigger_from_hass",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock trigger in boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.lock_trigger_in_hass",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Entrance door lock timer",
|
||
"room": "entrance",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.lock_entrance_door_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "avtozakrytie_zamka_vkhodnoi_dveri_po_istchenii_taimera",
|
||
"automation": "- id: avtozakrytie_zamka_vkhodnoi_dveri_po_istchenii_taimera\n alias: Автозакрытие замка входной двери по истечении таймера\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.lock_entrance_door_timer\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.door_entrance_contact\n state: 'off'\n sequence:\n - action: input_boolean.turn_on\n entity_id: input_boolean.lock_trigger_from_hass",
|
||
"config": [
|
||
{
|
||
"name": "Entrance door contact sensor",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_entrance_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock trigger boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.lock_trigger_from_hass",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Entrance door lock timer",
|
||
"room": "entrance",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.lock_entrance_door_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "reset_timer_if_door_lock_closed_or_door_opening",
|
||
"automation": "- id: reset_timer_if_door_lock_closed_or_door_opening\n alias: Сброс таймера если замок закрыт или дверь открывается\n triggers:\n - trigger: state\n entity_id: input_boolean.lock_trigger_in_hass\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.door_entrance_contact\n to: 'on'\n actions:\n - action: timer.cancel\n entity_id: timer.lock_entrance_door_timer",
|
||
"config": [
|
||
{
|
||
"name": "Entrance door contact sensor",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_entrance_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock trigger in boolean",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.lock_trigger_in_hass",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Entrance door lock timer",
|
||
"room": "entrance",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.lock_entrance_door_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Vkluchenie_dwoynyh_svetilnikov_v_prihozhey",
|
||
"automation": "- id: Vkluchenie_dwoynyh_svetilnikov_v_prihozhey\n alias: Включение двойных светильников в прихожей\n triggers:\n - trigger: state\n entity_id: binary_sensor.presence_sensor_presence_entrance\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.is_night\n state: 'off'\n actions:\n action: light.turn_on\n entity_id: light.switch_hallway_osveshchenie_1",
|
||
"config": [
|
||
{
|
||
"name": "Night mode sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.is_night",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Entrance presence sensor",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.presence_sensor_presence_entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Hallway lighting 1",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.switch_hallway_osveshchenie_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Vykluchenie_dwoynyh_svetilnikov_v_prihozhey",
|
||
"automation": "- id: Vykluchenie_dwoynyh_svetilnikov_v_prihozhey\n alias: Выключение двойных светильников в прихожей\n triggers:\n - trigger: state\n entity_id: binary_sensor.presence_hallway_presence_sensor\n to: 'off'\n conditions:\n - condition: state\n entity_id: light.switch_hallway_osveshchenie_1\n state: 'on'\n actions:\n action: light.turn_off\n entity_id: light.switch_hallway_osveshchenie_1",
|
||
"config": [
|
||
{
|
||
"name": "Hallway presence sensor",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.presence_hallway_presence_sensor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Hallway lighting 1",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.switch_hallway_osveshchenie_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "utechki_vody",
|
||
"automation": "- id: utechki_vody\n alias: Утечки воды\n triggers:\n - platform: state\n entity_id: binary_sensor.waterleak_bath_water_leak\n to: 'on'\n - platform: state\n entity_id: binary_sensor.waterleak_bath_under_bathtab_water_leak\n to: 'on'\n - platform: state\n entity_id: binary_sensor.waterleak_wardrobe_water_leak\n to: 'on'\n - platform: state\n entity_id: binary_sensor.waterleak_toilet_water_leak\n to: 'on'\n - platform: state\n entity_id: binary_sensor.waterleak_kitchen_water_leak\n to: 'on'\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n data:\n title: Внимание!!!\n message: Утечка в {% if trigger.idx == \"0\" %} ванной под раковиной {% elif trigger.idx\n == \"1\" %} ванной под ванной {% elif trigger.idx == \"2\" %} в гардеробе {% elif\n trigger.idx == \"3\" %} туалете {% elif trigger.idx == \"4\" %} кухне {% endif\n %}",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath water leak sensor 1",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.waterleak_bath_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bath under bathtub water leak sensor",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.waterleak_bath_under_bathtab_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Wardrobe water leak sensor",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.waterleak_wardrobe_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet water leak sensor",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.waterleak_toilet_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen water leak sensor",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.waterleak_kitchen_water_leak",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "uvedomlenie_o_perecrytii_gorachey_vody_v_vanoy",
|
||
"automation": "- id: uvedomlenie_o_perecrytii_gorachey_vody_v_vanoy\n alias: Уведомление о перекрытии горячей воды в ванной\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/hot_water_tap_bath/action\n payload: 'off'\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n data:\n title: Внимание!!!\n message: Горячая вода в ванной перекрыта",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "uvedomlenie_o_perecrytii_holodnoy_vody_v_vanoy",
|
||
"automation": "- id: uvedomlenie_o_perecrytii_holodnoy_vody_v_vanoy\n alias: Уведомление о перекрытии холодной воды в ванной\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/cold_water_tap_bath/action\n payload: 'off'\n actions:\n - action: notify.mobile_app_iphone_aleksandr\n data:\n title: Внимание!!!\n message: Холодная вода в ванной перекрыта",
|
||
"config": [
|
||
{
|
||
"name": "iPhone Aleksandr notifications",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_iphone_aleksandr",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740494025827'",
|
||
"automation": "- id: '1740494025827'\n alias: Левый верхний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_left\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.led_line_kitchen\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen LED line",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.led_line_kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740500687848'",
|
||
"automation": "- id: '1740500687848'\n alias: Левый нижний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_left_down\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.lamp_kitchen\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen lamp",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.lamp_kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740502482454'",
|
||
"automation": "- id: '1740502482454'\n alias: Правый верхний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_right\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.switch_kitchen_hall_right\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen hall right switch",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_kitchen_hall_right",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1740502633327'",
|
||
"automation": "- id: '1740502633327'\n alias: Правый нижний выключатель кухня зал\n description: ''\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt_1/switch_kitchen_hall/action\n payload: single_right_down\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.switch_kitchen_hall_left\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen hall left switch",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_kitchen_hall_left",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "vkluchit_svet_po_datchiku_prisutctvia_ili_po_datchiku_otkrytia_dveri",
|
||
"automation": "- id: vkluchit_svet_po_datchiku_prisutctvia_ili_po_datchiku_otkrytia_dveri\n alias: Включить свет по датчику присутствия или по датчику открытия двери\n triggers:\n - trigger: state\n id: occupancy\n entity_id: binary_sensor.motion_toilet\n to: 'on'\n - trigger: state\n id: door\n entity_id: binary_sensor.door_toilet_contact\n to: 'on'\n conditions:\n - condition: template\n value_template: \"{% if is_state(\\\"binary_sensor.is_night\\\", \\\"on\\\") %} {{ is_state\\\n \\ (\\\"switch.backlight_toilet\\\", \\\"off\\\") }} {% else %} {{ is_state (\\\"switch.switch_toilet_up\\\"\\\n , \\\"off\\\") }} {% endif %} \\n\"\n - or:\n - and:\n - condition: trigger\n id: occupancy\n - condition: state\n entity_id: binary_sensor.door_toilet_contact\n state: 'on'\n - and:\n - condition: trigger\n id: door\n - condition: state\n entity_id: binary_sensor.motion_toilet\n state: 'on'\n actions:\n - action: script.turn_on\n entity_id: script.light_turn_on_depending_on_daytime_toulet\n - action: timer.start\n entity_id: timer.toilet_long_time_light_timer\n - action: timer.cancel\n entity_id: timer.toilet_light_off_timer",
|
||
"config": [
|
||
{
|
||
"name": "Night mode sensor",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.is_night",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet motion sensor",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_toilet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet door contact sensor 2",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_toilet_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet backlight switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.backlight_toilet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet up switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_toilet_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet light script",
|
||
"room": "toilet",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.light_turn_on_depending_on_daytime_toulet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet long time light timer",
|
||
"room": "toilet",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.toilet_long_time_light_timer",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet light off timer",
|
||
"room": "toilet",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.toilet_light_off_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "toilet_light_off_by_presence_sensor",
|
||
"automation": "- id: toilet_light_off_by_presence_sensor\n alias: Выключить свет по датчику присутствия\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_toilet\n to: 'off'\n actions:\n - action: switch.turn_off\n entity_id:\n - switch.backlight_toilet\n - switch.switch_toilet_up\n - action: timer.cancel\n entity_id: timer.toilet_long_time_light_timer",
|
||
"config": [
|
||
{
|
||
"name": "Toilet motion sensor",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_toilet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet backlight switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.backlight_toilet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet up switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_toilet_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet long time light timer",
|
||
"room": "toilet",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.toilet_long_time_light_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "toilet_light_off_when_timers_finish",
|
||
"automation": "- id: toilet_light_off_when_timers_finish\n alias: Выключение света в туалете по завершении таймера\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.toilet_long_time_light_timer\n actions:\n - action: button.press\n entity_id: button.presence_toilet_reset_nopresence_status\n - action: timer.cancel\n entity_id: timer.toilet_long_time_light_timer",
|
||
"config": [
|
||
{
|
||
"name": "Toilet long time light timer",
|
||
"room": "toilet",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.toilet_long_time_light_timer",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet presence reset button",
|
||
"room": "toilet",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.presence_toilet_reset_nopresence_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "toilet_manual_light_on",
|
||
"automation": "- id: toilet_manual_light_on\n alias: Включение света в туалете вручную\n triggers:\n - trigger: state\n entity_id: switch.switch_toilet_up\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.motion_toilet\n state: 'off'\n - condition: state\n entity_id: binary_sensor.door_toilet_contact\n state: 'off'\n actions:\n - action: timer.start\n entity_id: timer.toilet_light_off_timer",
|
||
"config": [
|
||
{
|
||
"name": "Toilet motion sensor",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_toilet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet door contact sensor 2",
|
||
"room": "toilet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_toilet_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet up switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_toilet_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet light off timer",
|
||
"room": "toilet",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.toilet_light_off_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "toilet_manual_light_off",
|
||
"automation": "- id: toilet_manual_light_off\n alias: Выключение света в туалете вручную\n triggers:\n - trigger: state\n entity_id: switch.switch_toilet_up\n to: 'off'\n action:\n - action: timer.cancel\n entity_id: timer.toilet_light_off_timer",
|
||
"config": [
|
||
{
|
||
"name": "Toilet up switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_toilet_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet light off timer",
|
||
"room": "toilet",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.toilet_light_off_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "toilet_fan",
|
||
"automation": "- id: toilet_fan\n alias: Вентиляции в туалете\n triggers:\n - trigger: state\n id: manual_on_off\n entity_id: sensor.switch_toilet_action\n to: single_down\n - trigger: state\n id: fan_on_when_light_on_for_several_minutes\n entity_id: switch.switch_toilet_up\n to: 'on'\n for: 00:05:00\n - trigger: state\n id: fan_off_when_light_off_for_several_minutes\n entity_id: switch.switch_toilet_up\n to: 'off'\n for: 00:02:00\n actions:\n choose:\n - conditions:\n condition: trigger\n id: manual_on_off\n sequence:\n action: switch.toggle\n entity_id: switch.fan_toilet\n - conditions:\n - condition: trigger\n id: fan_on_when_light_on_for_several_minutes\n - condition: state\n entity_id: switch.fan_toilet\n state: 'off'\n sequence:\n action: switch.turn_on\n entity_id: switch.fan_toilet\n - conditions:\n - condition: trigger\n id: fan_off_when_light_off_for_several_minutes\n - condition: state\n entity_id: switch.fan_toilet\n state: 'on'\n sequence:\n action: switch.turn_off\n entity_id: switch.fan_toilet",
|
||
"config": [
|
||
{
|
||
"name": "Toilet up switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_toilet_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet switch action sensor",
|
||
"room": "toilet",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.switch_toilet_action",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Toilet fan switch",
|
||
"room": "toilet",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.fan_toilet",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_light_on_witout_motion",
|
||
"automation": "- id: wardrobe_light_on_witout_motion\n alias: Включение света в гардеробной\n triggers:\n - trigger: state\n id: door\n entity_id: binary_sensor.door_wardrobe_contact\n to: 'on'\n - trigger: state\n id: motion\n entity_id: binary_sensor.motion_wardrobe_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: switch.switch_wardrobe_up\n state:\n - 'off'\n - unknown\n actions:\n choose:\n - conditions:\n - condition: trigger\n id: motion\n - condition: state\n entity_id: binary_sensor.door_wardrobe_contact\n state: 'on'\n sequence:\n action: switch.turn_on\n entity_id: switch.switch_wardrobe_up\n - conditions:\n - condition: trigger\n id: door\n sequence:\n action: switch.turn_on\n entity_id: switch.switch_wardrobe_up",
|
||
"config": [
|
||
{
|
||
"name": "Wardrobe door contact sensor",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.door_wardrobe_contact",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Wardrobe motion occupancy sensor",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_wardrobe_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Wardrobe up switch",
|
||
"room": "wardrobe",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_wardrobe_up",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_light_off",
|
||
"automation": "- id: wardrobe_light_off\n alias: Выключение света в гардеробной\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.wardrobe_light_timer\n conditions:\n - condition: state\n entity_id: switch.switch_wardrobe_up\n state: 'on'\n actions:\n action: switch.turn_off\n entity_id: switch.switch_wardrobe_up",
|
||
"config": [
|
||
{
|
||
"name": "Wardrobe up switch",
|
||
"room": "wardrobe",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.switch_wardrobe_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Wardrobe light timer",
|
||
"room": "wardrobe",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.wardrobe_light_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_timer_start",
|
||
"automation": "- id: wardrobe_timer_start\n alias: Запуск таймера при включении света в гардеробе\n triggers:\n - trigger: state\n entity_id: binary_sensor.binary_sensor_wardrobe_light_on_witout_motion\n to: 'on'\n actions:\n - action: timer.start\n entity_id: timer.wardrobe_light_timer",
|
||
"config": [
|
||
{
|
||
"name": "Wardrobe light timer",
|
||
"room": "wardrobe",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.wardrobe_light_timer",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Wardrobe light sensor",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.binary_sensor_wardrobe_light_on_witout_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_timer_cancel",
|
||
"automation": "- id: wardrobe_timer_cancel\n alias: Отмена таймера света в гардеробе\n triggers:\n - trigger: state\n entity_id: binary_sensor.binary_sensor_wardrobe_light_on_witout_motion\n to: 'off'\n actions:\n - action: timer.cancel\n entity_id: timer.wardrobe_light_timer",
|
||
"config": [
|
||
{
|
||
"name": "Wardrobe light timer",
|
||
"room": "wardrobe",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.wardrobe_light_timer",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Wardrobe light sensor",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.binary_sensor_wardrobe_light_on_witout_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
}
|
||
] |