12903 lines
507 KiB
JSON
12903 lines
507 KiB
JSON
[
|
||
{
|
||
"id": "alice_ping",
|
||
"automation": "- id: alice_ping\n alias: 'Alice: Ping'\n trigger:\n platform: event\n event_type: yandex_intent\n event_data:\n text: Дом на связи\n action:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Тук-тук! Дом на связи",
|
||
"config": [
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "alice_tell_fairy_tale",
|
||
"automation": "- id: alice_tell_fairy_tale\n alias: 'Alice: Tell fairy tale'\n trigger:\n platform: event\n event_type: yandex_intent\n event_data:\n text: Расскажи сказку про белого бычка\n action:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Присаживайся поудобнее мой дорогой дружок\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Сейчас я расскажу тебе сказку про белого бычка\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Нет!\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Я тут подумала, а читай-ка ты её сам, ленивый ты крендель!",
|
||
"config": [
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_mirror_button_single_press",
|
||
"automation": "- id: bathroom_mirror_button_single_press\n alias: 'Bathroom Mirror Button: Single press'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 88c16946d5bfcee7dfce360e772ab881\n type: action\n subtype: single\n action:\n if:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id: input_boolean.scene_waking_up\n state: 'off'\n then:\n - service: input_boolean.turn_on\n entity_id: input_boolean.scene_waking_up\n else:\n - service: light.toggle\n entity_id: light.bathroom_mirror",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Mirror Button",
|
||
"room": "bathroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "88c16946d5bfcee7dfce360e772ab881"
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Mirror Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_mirror",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_mirror_button_double",
|
||
"automation": "- id: bathroom_mirror_button_double\n alias: 'Bathroom Mirror Button: Double'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 88c16946d5bfcee7dfce360e772ab881\n type: action\n subtype: double\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: light.bathroom_main\n state: 'on'\n - condition: numeric_state\n entity_id: light.bathroom_main\n attribute: brightness\n below: 250\n sequence:\n - service: light.turn_on\n entity_id: light.bathroom_main\n data:\n brightness_pct: 100\n - conditions:\n - condition: state\n entity_id: light.bathroom_main\n state: 'on'\n - condition: numeric_state\n entity_id: light.bathroom_main\n attribute: brightness\n above: 250\n sequence:\n - service: light.turn_on\n entity_id: light.bathroom_main\n data:\n brightness_pct: 25",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Mirror Button",
|
||
"room": "bathroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "88c16946d5bfcee7dfce360e772ab881"
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Main Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_main",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_mirror_button_hold",
|
||
"automation": "- id: bathroom_mirror_button_hold\n alias: 'Bathroom Mirror Button: Hold'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 88c16946d5bfcee7dfce360e772ab881\n type: action\n subtype: hold\n action:\n - service: light.turn_off\n entity_id: group.bathroom_path_lights",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Mirror Button",
|
||
"room": "bathroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "88c16946d5bfcee7dfce360e772ab881"
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Path Lights Group",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_path_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_bathtub_button_single_press",
|
||
"automation": "- id: bathroom_bathtub_button_single_press\n alias: 'Bathroom Bathtub Button: Single press'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: f0a662efaa0eddc62b7028e4e5214d8d\n type: action\n subtype: single\n action:\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n then:\n - service: light.toggle\n entity_id: light.bathroom_bathtub\n else:\n - service: light.turn_off\n entity_id: light.bathroom_main\n - service: light.turn_on\n entity_id:\n - light.bathroom_sink_path\n - light.bathroom_toilet_path\n data:\n rgbw_color:\n - 255\n - 0\n - 0\n - 0\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Main Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Bathtub Button",
|
||
"room": "bathroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "f0a662efaa0eddc62b7028e4e5214d8d"
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Bathtub Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_bathtub",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Sink Path Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_sink_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Toilet Path Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_toilet_path",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_bathtub_button_call",
|
||
"automation": "- id: bathroom_bathtub_button_call\n alias: 'Bathroom Bathtube Button: Call'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: f0a662efaa0eddc62b7028e4e5214d8d\n type: action\n subtype: double\n - trigger: device\n domain: mqtt\n device_id: f0a662efaa0eddc62b7028e4e5214d8d\n type: action\n subtype: triple\n - trigger: device\n domain: mqtt\n device_id: f0a662efaa0eddc62b7028e4e5214d8d\n type: action\n subtype: many\n action:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n pause_atv: true\n text: \"{{ [\\n 'вызывают из ванной, сходи проверь',\\n 'нужна помощь в ванной',\\n\\\n \\ 'тебя очень хотять видеть в ванной',\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Bathtub Button",
|
||
"room": "bathroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "f0a662efaa0eddc62b7028e4e5214d8d"
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_ac_display_turn_off",
|
||
"automation": "- id: bedroom_ac_display_turn_off\n alias: 'Bedroom AC Display: Turn off'\n trigger:\n - platform: state\n entity_id: input_select.home_mode\n to: Night\n - platform: state\n entity_id: climate.bedroom_ac\n from: 'off'\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id: climate.bedroom_ac\n state:\n - heat_cool\n - cool\n - heat\n - dry\n action:\n - delay:\n seconds: 2\n - condition: state\n entity_id: switch.bedroom_ac_display\n state: 'on'\n - service: switch.turn_off\n entity_id: switch.bedroom_ac_display",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bedroom AC Display",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_ac_display",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_ac_turn_off",
|
||
"automation": "- id: bedroom_ac_turn_off\n alias: 'Bedroom AC: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.anyone_home\n from: 'on'\n to: 'off'\n for:\n minutes: 20\n - platform: state\n entity_id: climate.bedroom_ac\n to:\n - heat_cool\n - cool\n - heat\n - dry\n for:\n hours: 24\n - platform: state\n entity_id: input_select.home_mode\n from: Night\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: climate.bedroom_ac\n state:\n - heat_cool\n - cool\n - heat\n - dry\n action:\n - service: climate.turn_off\n entity_id: climate.bedroom_ac",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_ac_display_update",
|
||
"automation": "- id: bedroom_ac_display_update\n alias: 'Bedroom AC Display: Update'\n trigger:\n - id: 'on'\n platform: state\n entity_id: climate.bedroom_ac\n from: 'off'\n to:\n - heat_cool\n - cool\n - heat\n - dry\n - id: 'off'\n platform: state\n entity_id: climate.bedroom_ac\n from:\n - heat_cool\n - cool\n - heat\n - dry\n to: 'off'\n action:\n - if:\n - condition: trigger\n id: 'on'\n then:\n - service: input_boolean.turn_on\n entity_id: input_boolean.bedroom_ac_display\n else:\n - service: input_boolean.turn_off\n entity_id: input_boolean.bedroom_ac_display",
|
||
"config": [
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom AC Display",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_ac_display",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_ac_turn_off_protect",
|
||
"automation": "- id: bedroom_ac_turn_off_protect\n alias: 'Bedroom AC: Turn off (protect)'\n trigger:\n - platform: time_pattern\n seconds: /30\n - platform: state\n entity_id:\n - climate.bedroom_ac\n - input_select.washing_machine_status\n condition:\n - condition: or\n conditions:\n - and:\n - condition: state\n entity_id: input_select.washing_machine_status\n state: Running\n - condition: state\n entity_id: climate.workshop_ac\n state:\n - heat_cool\n - cool\n - heat\n - dry\n - condition: numeric_state\n entity_id: sensor.outside_temperature\n below: -15\n - condition: state\n entity_id: climate.bedroom_ac\n state:\n - heat_cool\n - cool\n - heat\n - dry\n action:\n - service: climate.turn_off\n entity_id: climate.bedroom_ac",
|
||
"config": [
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Workshop AC",
|
||
"room": "workshop",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.workshop_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Outside Temperature",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.outside_temperature",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "home_airing_turn_off",
|
||
"automation": "- id: home_airing_turn_off\n alias: 'Home Airing: Turn off'\n trigger:\n - platform: state\n entity_id: switch.home_airing\n from: 'off'\n to: 'on'\n for:\n minutes: 20\n action:\n - service: switch.turn_off\n entity_id: switch.home_airing",
|
||
"config": [
|
||
{
|
||
"name": "Switch Home Airing",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.home_airing",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "climate_anomaly_alert",
|
||
"automation": "- id: climate_anomaly_alert\n alias: 'Climate: Anomaly alert'\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.bathroom_temperature\n - sensor.bedroom_temperature\n - sensor.kitchen_temperature\n - sensor.living_room_temperature\n - sensor.wardrobe_temperature\n - sensor.workshop_temperature\n below: 15\n - platform: numeric_state\n entity_id:\n - sensor.bathroom_temperature\n - sensor.bedroom_temperature\n - sensor.kitchen_temperature\n - sensor.living_room_temperature\n - sensor.wardrobe_temperature\n - sensor.workshop_temperature\n above: 29\n action:\n - service: notify.dextor\n data:\n message: 🤨 Подозрительная температура в доме",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Temperature Sensor",
|
||
"room": "bathroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.bathroom_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom Temperature Sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.bedroom_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Temperature Sensor",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.kitchen_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Temperature Sensor",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Wardrobe Temperature Sensor",
|
||
"room": "wardrobe",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.wardrobe_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Workshop Temperature Sensor",
|
||
"room": "workshop",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.workshop_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_hot",
|
||
"automation": "- id: living_room_hot\n alias: 'Living Room: Hot'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Очень жарко\n room: Гостиная\n action:\n - service: climate.set_temperature\n entity_id:\n - climate.bedroom_ac\n - climate.workshop_ac\n data:\n temperature: 22\n hvac_mode: cool\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Сейчас попробую тебя охладить",
|
||
"config": [
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Workshop AC",
|
||
"room": "workshop",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.workshop_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_cold",
|
||
"automation": "- id: living_room_cold\n alias: 'Living Room: cold'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Я замёрз\n room: Гостиная\n action:\n - service: climate.turn_off\n entity_id:\n - climate.bedroom_ac\n - climate.workshop_ac\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Ну и ладно",
|
||
"config": [
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Workshop AC",
|
||
"room": "workshop",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.workshop_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "closet_light_turn_on",
|
||
"automation": "- id: closet_light_turn_on\n alias: 'Closet Light: Turn on'\n mode: queued\n trigger:\n - platform: state\n entity_id: binary_sensor.closet_door\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.closet_motion\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.closet_light_control\n state: 'on'\n - condition: state\n entity_id: light.closet\n state: 'off'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n action:\n - service: light.turn_on\n entity_id: light.closet",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Closet Light",
|
||
"room": "closet",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.closet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Closet Door",
|
||
"room": "closet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.closet_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Closet Motion",
|
||
"room": "closet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.closet_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Closet Light Control",
|
||
"room": "closet",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.closet_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "closet_light_turn_off",
|
||
"automation": "- id: closet_light_turn_off\n alias: 'Closet Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.closet_door\n from: 'on'\n to: 'off'\n - platform: state\n entity_id: binary_sensor.closet_motion\n from: 'on'\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: light.closet\n to: 'on'\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.closet_light_control\n - light.closet\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.closet",
|
||
"config": [
|
||
{
|
||
"name": "Closet Light",
|
||
"room": "closet",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.closet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Closet Door",
|
||
"room": "closet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.closet_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Closet Motion",
|
||
"room": "closet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.closet_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Closet Light Control",
|
||
"room": "closet",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.closet_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "closet_light_control_turn_on",
|
||
"automation": "- id: closet_light_control_turn_on\n alias: 'Closet Light Control: Turn on'\n trigger:\n - platform: state\n entity_id: light.closet\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.closet_light_control\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.closet_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Closet Light",
|
||
"room": "closet",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.closet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Closet Light Control",
|
||
"room": "closet",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.closet_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "closet_light_control_turn_off",
|
||
"automation": "- id: closet_light_control_turn_off\n alias: 'Closet Light Control: Turn off'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Не выключай свет в кладовке\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.closet_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Closet Light Control",
|
||
"room": "closet",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.closet_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "automations_turn_off",
|
||
"automation": "- id: automations_turn_off\n alias: 'Automations: Turn off'\n trigger:\n platform: event\n event_type: yandex_intent\n event_data:\n text: Выключи всю автоматику\n action:\n - service: automation.turn_off\n entity_id: all\n data:\n stop_actions: false\n - service: automation.turn_on\n entity_id: automation.automations_turn_on\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: 'Готово! Теперь дом снова глупый. Что бы включить все назад, скажи: Алиса,\n включи всю автоматику'",
|
||
"config": [
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Automations Turn On",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "automation.automations_turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "automations_turn_on",
|
||
"automation": "- id: automations_turn_on\n alias: 'Automations: Turn on'\n trigger:\n platform: event\n event_type: yandex_intent\n event_data:\n text: Включи всю автоматику\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: automation.automations_turn_on\n state: 'on'\n sequence:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Нет необходимости, всё уже работает\n default:\n - service: automation.turn_on\n entity_id: all\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Включила, не делай больше так, мне страшно и обидно",
|
||
"config": [
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Automations Turn On",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "automation.automations_turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "home_mode_night_auto_turn_on",
|
||
"automation": "- id: home_mode_night_auto_turn_on\n alias: 'Home Mode Night: Auto turn on'\n trigger:\n - platform: time\n at: 01:55\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: binary_sensor.motion_anywhere\n state: 'off'\n for:\n hours: 1\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n action:\n - service: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Night",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Motion Anywhere",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_anywhere",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "home_mode_manual_day",
|
||
"automation": "- id: home_mode_manual_day\n alias: 'Home Mode: Manual day'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Сейчас день\n action:\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n then:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Действительно, сейчас день\n else:\n - service: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Day\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Переключила дом в дневной режим",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_delivery_turn_on",
|
||
"automation": "- id: scene_delivery_turn_on\n alias: 'Scene Delivery: Turn on'\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Заказана еда\n - id: event\n trigger: event\n event_type: living_room_heater_button_hold_down\n actions:\n - if:\n - condition: state\n entity_id: input_boolean.scene_delivery\n state: 'on'\n then:\n - service: script.yandex_station_tts\n data:\n target: '{{ ''media_player.living_room_station'' if trigger.id == ''event''\n else trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{% set elapsed_seconds = as_timestamp(now()) - state_attr('input_datetime.scene_delivery_started',\\\n \\ 'timestamp') %} {{ 'Еда заказана' if trigger.id == 'event' else ['Ага,',\\\n \\ 'Я знаю,', 'Наверняка,']|random }} уже как {{ (elapsed_seconds / 60)|int\\\n \\ }}мин назад {% if elapsed_seconds > 40 * 60 * 60 %}\\n и я немного волнуюсь\\n\\\n {% endif %}\\n\"\n - condition: state\n entity_id: input_boolean.scene_delivery\n state: 'off'\n - service: input_boolean.turn_on\n entity_id: input_boolean.scene_delivery\n - service: input_datetime.set_datetime\n entity_id: input_datetime.scene_delivery_started\n data:\n datetime: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}\n\n '\n - if:\n - condition: trigger\n id: event\n then:\n - action: script.turn_on\n entity_id: script.living_room_tv_status_light_ack_flash\n - service: script.yandex_station_tts\n data:\n target: '{{ ''media_player.living_room_station'' if trigger.id == ''event''\n else trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{{ [\\n 'Еда заказана. Очень хочется кушать',\\n 'Еда заказана.\\\n \\ Скорей бы привезли кушать',\\n 'Еда заказана. Ждём с нетерпением',\\n\\\n \\ 'Ждем курьера, но почему бы не приготовить самому?',\\n 'Ждем курьера,\\\n \\ но почему бы не приготовить самому?',\\n 'Еда заказана. Не забудь всё\\\n \\ подготовить.',\\n ]|random\\n}}\\n\"\n else:\n - service: script.yandex_station_tts\n data:\n target: '{{ ''media_player.living_room_station'' if trigger.id == ''event''\n else trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{{ [\\n 'Хорошо, ждём. Очень хочется кушать',\\n 'Хорошо, скорей\\\n \\ бы привезли кушать',\\n 'Отлично, ждём с нетерпением',\\n 'Ждем курьера,\\\n \\ но почему бы не приготовить самому?',\\n 'Ждем курьера, но почему бы\\\n \\ не приготовить самому?',\\n 'Хорошая новость. Не забудь всё подготовить.',\\n\\\n \\ ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Scene Delivery",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Scene Delivery Started",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.scene_delivery_started",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room TV Status Light ACK Flash",
|
||
"room": "Living Room",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.living_room_tv_status_light_ack_flash",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_delivery_30min_passed",
|
||
"automation": "- id: scene_delivery_30min_passed\n alias: 'Scene Delivery: 30min passed'\n trigger:\n - platform: state\n entity_id: input_boolean.scene_delivery\n to: 'on'\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n action:\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: \"{{ [\\n 'Уже прошло полчаса, курьер может уже выехал?',\\n 'Тридцать\\\n \\ минут прошло, голод только стал сильнее',\\n 'Полчаса минуло, надеюсь\\\n \\ курьер в пути'\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Delivery",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_delivery_60min_passed",
|
||
"automation": "- id: scene_delivery_60min_passed\n alias: 'Scene Delivery: 60min passed'\n trigger:\n - platform: state\n entity_id: input_boolean.scene_delivery\n to: 'on'\n for:\n minutes: 60\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n action:\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: Тем временем еды уже нет целый час. Это вообще никуда не годится! Я буду\n жаловаться!",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Delivery",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_delivery_turn_off",
|
||
"automation": "- id: scene_delivery_turn_off\n alias: 'Scene Delivery: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.scene_delivery\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_delivery\n - delay:\n seconds: 8\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: '{% set elapsed_seconds = as_timestamp(now()) - state_attr(''input_datetime.scene_delivery_started'',\n ''timestamp'') %} А вот и еда! {{ [''Еду привезли за'', ''Еда доставлена\n за'', ''Мы смогли продержаться эти'']|random }} {{ (elapsed_seconds / 60)|int\n }}мин\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Delivery",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Scene Delivery Started",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.scene_delivery_started",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_delivery_turn_off_fallback",
|
||
"automation": "- id: scene_delivery_turn_off_fallback\n alias: 'Scene Delivery: Turn off (fallback)'\n trigger:\n - platform: state\n entity_id: input_boolean.scene_delivery\n to: 'on'\n for:\n hours: 6\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_delivery",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Scene Delivery",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_departure_sequence",
|
||
"automation": "- id: scene_departure_sequence\n alias: 'Scene Departure: Sequence'\n mode: restart\n trigger:\n - platform: state\n entity_id: lock.front_door\n from: unlocked\n to: locked\n action:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.porch_door\n from: 'on'\n to: 'off'\n for:\n seconds: 2\n timeout:\n minutes: 1\n continue_on_timeout: false\n - if:\n - condition: state\n entity_id: binary_sensor.porch_door\n state: 'off'\n - condition: state\n entity_id: lock.porch_door\n state: unlocked\n then:\n - service: lock.lock\n entity_id: lock.porch_door\n - service: light.turn_off\n entity_id:\n - light.porch_path_light\n - light.porch_lock_light",
|
||
"config": [
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Door",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Porch Door",
|
||
"room": "porch",
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch Path Light",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch_path_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch Lock Light",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch_lock_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "device_unavailable_alert",
|
||
"automation": "- id: device_unavailable_alert\n alias: Device unavailable alert\n mode: single\n max_exceeded: silent\n trigger:\n - platform: event\n event_type: state_changed\n - platform: homeassistant\n event: shutdown\n id: shutdown\n condition:\n - or:\n - condition: trigger\n id: shutdown\n - and:\n - condition: template\n value_template: '{{ trigger.event.data.new_state and trigger.event.data.new_state.state\n == ''unavailable'' }}\n\n '\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.device_unavailable_alert',\\n\\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 1800 }}\\n\"\n action:\n - if:\n - condition: trigger\n id: shutdown\n then:\n - stop: Home Assistant is stopping\n - delay:\n minutes: 10\n - condition: template\n value_template: \"{% set ns = namespace(break = false) %} {%- for entity in states\\\n \\ if entity.state == 'unavailable' and entity.entity_id and ns.break == false\\\n \\ -%}\\n {%- if (now() - entity.last_changed).total_seconds() > 180 and\\n \\\n \\ not is_state_attr(entity.entity_id, 'volatile', true) and\\n \\\n \\ not is_state_attr(entity.entity_id, 'restored', true) and\\n not\\\n \\ 'xmas_' in entity.entity_id -%}\\n {%- set ns.break = true -%}\\n true\\n\\\n \\ {%- endif -%}\\n{%- endfor %}\\n\"\n - service: notify.dextor\n data:\n message: \"⚠️ <b>Некоторые устройства недоступны:</b>{{ '\\\\n' }} {%- for entity\\\n \\ in states if entity.state == 'unavailable' and\\n \\\n \\ not is_state_attr(entity.entity_id, 'volatile', true) and\\n \\\n \\ not is_state_attr(entity.entity_id, 'restored', true)\\\n \\ -%}\\n* {{ entity.name }}: {{ entity.last_changed|relative_time }}{{ '\\\\\\\n n' }} {%- endfor -%}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "device_low_battery_alert",
|
||
"automation": "- id: device_low_battery_alert\n alias: Device low battery alert\n trigger:\n - platform: time\n at: '18:00'\n condition:\n - condition: template\n value_template: \"{%- set ns = namespace(break = false) -%} {%- for entity in states\\\n \\ if entity.entity_id.endswith('_battery') and ns.break == false -%} {%- if\\\n \\ entity.state not in ['None', 'unavailable', 'unknown'] and entity.state|int\\\n \\ <= 25 -%}\\n {%- set ns.break = true -%}\\n true\\n{%- endif -%} {%- endfor\\\n \\ -%}\\n\"\n action:\n - service: notify.dextor\n data:\n message: '⚠️ <b>Батарея подходит к концу:</b>{{ ''\\n'' }} {%- for entity in\n states if entity.entity_id.endswith(''_battery'') %} {%- if entity.state not\n in [''None'', ''unavailable'', ''unknown''] and entity.state|int <= 25 -%}\n * {{ entity.name }}: {{ entity.state }} %{{ ''\\n'' }} {%- endif -%} {%- endfor\n -%}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "device_unavailable_log",
|
||
"automation": "- id: device_unavailable_log\n alias: Device unavailable log\n mode: parallel\n max_exceeded: silent\n trigger:\n - platform: event\n event_type: state_changed\n condition:\n - condition: template\n value_template: '{{ trigger.event.data.new_state and trigger.event.data.new_state.state\n == ''unavailable'' }}\n\n '\n action:\n - service: notify.send_message\n data:\n entity_id: notify.debug\n message: 'Device unavailable: {{ trigger.event.data.new_state.entity_id }}'",
|
||
"config": [
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Debug Notify",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.debug",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "frozen_sensor_alert",
|
||
"automation": "- id: frozen_sensor_alert\n alias: Frozen sensor alert\n triggers:\n - trigger: time\n at: '12:00'\n - trigger: time\n at: '21:00'\n conditions:\n - condition: template\n value_template: \"{%- set ns = namespace(break = false) -%} {%- for entity in states\\\n \\ if entity.attributes.get('device_class') in ('temperature', 'humidity', 'carbon_dioxide')\\\n \\ and ns.break == false -%} {%- if (now() - entity.last_updated).total_seconds()\\\n \\ > 6 * 60 * 60 and\\n not set(entity.entity_id.split('_')).intersection(['target'])\\\n \\ and\\n not is_state_attr(entity.entity_id, 'sporadic', true) -%}\\n \\\n \\ {%- set ns.break = true -%}\\n true\\n{%- endif -%} {%- endfor -%}\\n\"\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Night\n actions:\n - action: notify.dextor\n data:\n message: \"\\U0001F4C9 <b>Давно не обновлялись датчики:</b>{{ '\\\\n' }} {%- for\\\n \\ entity in states if entity.attributes.get('device_class') in ('temperature',\\\n \\ 'humidity', 'carbon_dioxide') -%} {%- if (now() - entity.last_updated).total_seconds()\\\n \\ > 6 * 60 * 60 and\\n not set(entity.entity_id.split('_')).intersection(['target'])\\\n \\ and\\n not is_state_attr(entity.entity_id, 'sporadic', true) -%}\\n\\\n * {{ entity.name }}: {{ entity.last_updated.strftime('%d.%m.%Y %H:%M') }}\\\n \\ {{ '\\\\n' }} {%- endif -%} {%- endfor -%}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dishwasher_cycle",
|
||
"automation": "- id: dishwasher_cycle\n alias: 'Dishwasher: Cycle'\n mode: restart\n trigger:\n platform: state\n entity_id: sensor.dishwasher_progress\n from: Idle\n to:\n - Pre-wash\n - Wash\n action:\n - service: input_select.select_option\n entity_id: input_select.dishwasher_status\n data:\n option: Running\n - wait_for_trigger:\n - platform: state\n entity_id: sensor.dishwasher_progress\n to:\n - Complete\n - Idle\n timeout:\n hours: 4\n continue_on_timeout: true\n - if:\n - condition: state\n entity_id: binary_sensor.dishwasher_door\n state: 'off'\n then:\n - service: input_select.select_option\n entity_id: input_select.dishwasher_status\n data:\n option: Done\n else:\n - service: input_select.select_option\n entity_id: input_select.dishwasher_status\n data:\n option: Idle",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dishwasher Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dishwasher Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dishwasher_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Dishwasher Progress",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dishwasher_progress",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dishwasher_free",
|
||
"automation": "- id: dishwasher_free\n alias: 'Dishwasher: Free'\n trigger:\n platform: state\n entity_id: binary_sensor.dishwasher_door\n to: 'on'\n for:\n seconds: 10\n condition:\n - condition: state\n entity_id: input_select.dishwasher_status\n state: Done\n action:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.dishwasher_door\n to: 'off'\n timeout:\n minutes: 10\n continue_on_timeout: true\n - service: input_select.select_option\n entity_id: input_select.dishwasher_status\n data:\n option: Idle",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dishwasher Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dishwasher Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dishwasher_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dishwasher_dirty",
|
||
"automation": "- id: dishwasher_dirty\n alias: 'Dishwasher: Dirty'\n trigger:\n platform: state\n entity_id: binary_sensor.dishwasher_door\n to: 'on'\n for:\n seconds: 30\n condition:\n - condition: state\n entity_id: input_select.dishwasher_status\n state: Idle\n action:\n - service: input_select.select_option\n entity_id: input_select.dishwasher_status\n data:\n option: Dirty",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dishwasher Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dishwasher Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dishwasher_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dishwasher_status",
|
||
"automation": "- id: dishwasher_status\n alias: 'Dishwasher: Status'\n trigger:\n platform: event\n event_type: yandex_intent\n event_data:\n text: Что с посудомойкой\n action:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"Посудомойка {% if is_state('input_select.dishwasher_status', 'Dirty')\\\n \\ %}\\n с грязной посудой, в ожидании запуска.\\n{% elif is_state('input_select.dishwasher_status',\\\n \\ 'Running') %}\\n {% if is_state('sensor.dishwasher_progress', 'Pre-wash')\\\n \\ %}\\n в процессе предварительной мойки\\n {% elif is_state('sensor.dishwasher_progress',\\\n \\ 'Wash') %}\\n в процессе основной мойки\\n {% elif is_state('sensor.dishwasher_progress',\\\n \\ 'Rinse') %}\\n вспаласкивает тарелочки\\n {% elif is_state('sensor.dishwasher_progress',\\\n \\ 'Dry') %}\\n сушит кружечки\\n {% else %}\\n делает бурлык-бурлык, посуда\\\n \\ скоро будет чистой\\n {% endif %}\\n{% elif is_state('input_select.dishwasher_status',\\\n \\ 'Done') %}\\n закончила, можно доставать посуду\\n{% elif is_state('input_select.dishwasher_status',\\\n \\ 'Idle') %}\\n простаивает без дела\\n{% else %}\\n в каком-то непонятном\\\n \\ состоянии, что я даже хз\\n{% endif %}\\n{% if states('sensor.dishwasher_time_remaining')\\\n \\ | float(0) > 0 %}\\n . Осталось {{ states('sensor.dishwasher_time_remaining')\\\n \\ }} мин.\\n{% endif %}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dishwasher Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Dishwasher Progress",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dishwasher_progress",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Dishwasher Time Remaining",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dishwasher_time_remaining",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dishwasher_status_light_update",
|
||
"automation": "- id: dishwasher_status_light_update\n alias: 'Dishwasher: Status light update'\n mode: queued\n trigger:\n - platform: state\n entity_id:\n - input_select.dishwasher_status\n - input_select.home_mode\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_select.dishwasher_status\n state: Running\n sequence:\n - service: light.turn_on\n entity_id: light.dishwasher_status\n data:\n brightness_pct: 100\n rgbw_color:\n - 255\n - 0\n - 0\n - 0\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_select.dishwasher_status\n state: Done\n sequence:\n - service: light.turn_on\n entity_id: light.dishwasher_status\n data:\n brightness_pct: 30\n rgbw_color:\n - 0\n - 255\n - 0\n - 0\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_select.dishwasher_status\n state: Dirty\n sequence:\n - service: light.turn_on\n entity_id: light.dishwasher_status\n data:\n brightness_pct: 40\n rgbw_color:\n - 255\n - 0\n - 215\n - 0\n default:\n - service: light.turn_off\n entity_id: light.dishwasher_status",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Dishwasher Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Dishwasher Status",
|
||
"room": null,
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dryer_cycle",
|
||
"automation": "- id: dryer_cycle\n alias: 'Dryer: Cycle'\n max_exceeded: silent\n trigger:\n - platform: numeric_state\n entity_id: sensor.dryer_power\n above: 0\n for:\n seconds: 10\n - platform: numeric_state\n entity_id: sensor.dryer_power\n above: 200\n for:\n seconds: 10\n condition:\n - condition: state\n entity_id: input_select.dryer_status\n state: Idle\n action:\n - service: input_select.select_option\n entity_id: input_select.dryer_status\n data:\n option: Running\n - wait_for_trigger:\n - platform: numeric_state\n entity_id: sensor.dryer_power\n below: 1\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.dryer_door\n from: 'off'\n to: 'on'\n timeout:\n hours: 6\n continue_on_timeout: true\n - condition: state\n entity_id: input_select.dryer_status\n state: Running\n - if:\n - condition: state\n entity_id: binary_sensor.dryer_door\n state: 'on'\n then:\n - service: input_select.select_option\n entity_id: input_select.dryer_status\n data:\n option: Idle\n else:\n - service: input_select.select_option\n entity_id: input_select.dryer_status\n data:\n option: Done",
|
||
"config": [
|
||
{
|
||
"name": "Sensor Dryer Power",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.dryer_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dryer Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dryer_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dryer_door_open",
|
||
"automation": "- id: dryer_door_open\n alias: 'Dryer: Door open'\n trigger:\n platform: state\n entity_id: binary_sensor.dryer_door\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.dryer_status\n state: Done\n action:\n - service: input_select.select_option\n entity_id: input_select.dryer_status\n data:\n option: Idle",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dryer Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dryer_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dryer_idle",
|
||
"automation": "- id: dryer_idle\n alias: 'Dryer: Idle'\n trigger:\n platform: state\n entity_id: input_select.dryer_status\n to: Idle\n action:\n - service: input_number.set_value\n entity_id: input_number.dryer_done_alert_count\n data:\n value: 0",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Dryer Done Alert Count",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.dryer_done_alert_count",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dryer_done_alert",
|
||
"automation": "- id: dryer_done_alert\n alias: 'Dryer: Done alert'\n trigger:\n - platform: time_pattern\n minutes: /45\n - platform: state\n entity_id: input_select.dryer_status\n from: Running\n to: Done\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_select.dryer_status\n state: Done\n - condition: numeric_state\n entity_id: input_number.dryer_done_alert_count\n below: 4\n - condition: template\n value_template: '{{ (now() - states.input_number.dryer_done_alert_count.last_changed).total_seconds()\n > 1200 }}\n\n '\n action:\n - wait_template: '{{ not is_state(''media_player.atv'', [''playing'', ''pause''])\n }}\n\n '\n timeout:\n minutes: 33\n continue_on_timeout: true\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'Сушилка ждёт тебя,\\\n \\ пора раскладывать бельё по полочкам.',\\n 'Сушилка ждет тебя, в ней тебя\\\n \\ ждёт что-то особенное.',\\n 'Сушилка закончила, пора достать из неё мягонькое\\\n \\ бельё.',\\n ]|random\\n}} {% if states('input_number.dryer_done_alert_count')|int\\\n \\ == 2 %}\\n Если я ошиблась - закрой дверцу машины и открой снова.\\n{% endif\\\n \\ %} {% if states('input_number.dryer_done_alert_count')|int == 3 %}\\n Это\\\n \\ последнее предупреждение! Мятое белье останется там навсегда!\\n{% endif\\\n \\ %}\\n\"\n - service: input_number.increment\n entity_id: input_number.dryer_done_alert_count",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Dryer Done Alert Count",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.dryer_done_alert_count",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "dryer_status",
|
||
"automation": "- id: dryer_status\n alias: 'Dryer: Status'\n trigger:\n platform: event\n event_type: yandex_intent\n event_data:\n text: Что с сушильной машиной\n action:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"Сушилка {% if is_state('input_select.dryer_status', 'Running') %}\\n \\\n \\ делает пух-пух. Скоро вещи будут сухими и мягонькими\\n{% elif is_state('input_select.dryer_status',\\\n \\ 'Done') %}\\n закончила, доставай быстрее белье и развешивай в гардеробную\\n\\\n {% elif is_state('input_select.dryer_status', 'Idle') %}\\n простаивает без\\\n \\ дела и скучает по мокрому бельёю\\n{% endif %}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_evening",
|
||
"automation": "- id: living_room_evening\n alias: 'Living Room: Evening'\n trigger:\n - id: lock_unlocked\n platform: state\n entity_id: lock.front_door\n from: locked\n to: unlocked\n - platform: state\n entity_id: binary_sensor.evening_time\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.living_room_balcony_door\n from: 'on'\n to: 'off'\n for:\n seconds: 20\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id: binary_sensor.evening_time\n state: 'on'\n - condition: or\n conditions:\n - condition: trigger\n id: lock_unlocked\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: binary_sensor.living_room_balcony_door\n state: 'off'\n - condition: state\n entity_id: cover.living_room\n state: open\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.living_room_evening',\\n \\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 8 * 60 * 60 }}\\n\"\n action:\n - if:\n - condition: state\n entity_id: binary_sensor.living_room_occupancy\n state: 'on'\n - condition: state\n entity_id: light.living_room_main\n state: 'off'\n then:\n - if:\n - condition: state\n entity_id: light.living_room_tv\n state: 'off'\n then:\n - service: light.turn_on\n entity_id: light.living_room_tv\n data:\n brightness_pct: 45\n transition: 2\n - if:\n - condition: state\n entity_id: light.living_room_backlight\n state: 'off'\n then:\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 23\n color_temp_kelvin: 3400\n transition: 2\n - delay:\n seconds: 2\n - service: cover.close_cover\n entity_id: cover.living_room",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Evening Time",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.evening_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Balcony Door",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_balcony_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Occupancy",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_evening",
|
||
"automation": "- id: bedroom_evening\n alias: 'Bedroom: Evening'\n trigger:\n - id: lock_unlocked\n platform: state\n entity_id: lock.front_door\n from: locked\n to: unlocked\n - platform: state\n entity_id: binary_sensor.evening_time\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id: binary_sensor.evening_time\n state: 'on'\n - condition: or\n conditions:\n - condition: trigger\n id: lock_unlocked\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedroom_window\n state: 'off'\n - condition: state\n entity_id: cover.bedroom\n attribute: current_position\n state: 100\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.bedroom_evening',\\n \\\n \\ 'last_triggered')|default(now() - timedelta(days=1), true)).total_seconds()\\\n \\ > 8 * 60 * 60 }}\\n\"\n action:\n - service: cover.close_cover\n entity_id: cover.bedroom\n - if:\n - condition: state\n entity_id: binary_sensor.bedroom_occupancy\n state: 'on'\n then:\n - service: light.turn_on\n entity_id: light.bedroom_cat\n data:\n color_temp_kelvin: 2700\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Evening Time",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.evening_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Window",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_window",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Cat",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_cat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Occupancy",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "fridge_door_alert",
|
||
"automation": "- id: fridge_door_alert\n alias: 'Fridge: Door alert'\n trigger:\n - platform: state\n entity_id: binary_sensor.fridge_door\n id: 2m\n to: 'on'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.fridge_door\n to: 'on'\n for:\n minutes: 4\n - platform: state\n entity_id: binary_sensor.fridge_door\n to: 'on'\n for:\n minutes: 10\n - platform: state\n entity_id: binary_sensor.fridge_door\n to: 'on'\n for:\n minutes: 15\n action:\n - if:\n - condition: trigger\n id: 2m\n then:\n - service: notify.dextor\n data:\n message: 🧊 Закрой холодильник!\n else:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: Проверь холодильник, кажется он открыт",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Fridge Door",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.fridge_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "fridge_temperature_alert",
|
||
"automation": "- id: fridge_temperature_alert\n alias: 'Fridge: Temperature alert'\n trigger:\n - platform: numeric_state\n entity_id: sensor.fridge_temperature\n above: 16\n for:\n minutes: 4\n - platform: numeric_state\n entity_id: sensor.fridge_temperature\n above: 16\n for:\n minutes: 25\n action:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: В холодильнике очень жарко, проверь что там как",
|
||
"config": [
|
||
{
|
||
"name": "Sensor Fridge Temperature",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.fridge_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "freezer_door_alert",
|
||
"automation": "- id: freezer_door_alert\n alias: 'Freezer: Door alert'\n trigger:\n - platform: state\n entity_id: binary_sensor.freezer_door\n id: 2m\n to: 'on'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.freezer_door\n to: 'on'\n for:\n minutes: 4\n - platform: state\n entity_id: binary_sensor.freezer_door\n to: 'on'\n for:\n minutes: 10\n - platform: state\n entity_id: binary_sensor.freezer_door\n to: 'on'\n for:\n minutes: 15\n action:\n - if:\n - condition: trigger\n id: 2m\n then:\n - service: notify.dextor\n data:\n message: 🧊 Закрой морозильник!\n else:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: Проверь морозильник, кажется он открыт",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Freezer Door",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.freezer_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "freezer_temperature_alert",
|
||
"automation": "- id: freezer_temperature_alert\n alias: 'Freezer: Temperature alert'\n trigger:\n - platform: numeric_state\n entity_id: sensor.freezer_temperature\n above: 16\n for:\n minutes: 4\n - platform: numeric_state\n entity_id: sensor.freezer_temperature\n above: 16\n for:\n minutes: 25\n action:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: В морозильнике очень жарко, проверь что там как",
|
||
"config": [
|
||
{
|
||
"name": "Sensor Freezer Temperature",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.freezer_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "everybody_left_home",
|
||
"automation": "- id: everybody_left_home\n alias: Everybody Left Home\n trigger:\n - platform: state\n entity_id: binary_sensor.anyone_home\n from: 'on'\n to: 'off'\n action:\n - service: input_datetime.set_datetime\n entity_id: input_datetime.anyone_home_last_seen\n data:\n datetime: '{{ now().strftime(\"%Y-%m-%d %H:%M:%S\") }}'",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Anyone Home Last Seen",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.anyone_home_last_seen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "anyone_home_last_seen_update",
|
||
"automation": "- id: anyone_home_last_seen_update\n alias: 'Anyone Home Last Seen: Update'\n trigger:\n - platform: time_pattern\n minutes: /4\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: template\n value_template: '{{ (now() - states.binary_sensor.anyone_home.last_changed).total_seconds()\n > 5 * 60 }}\n\n '\n action:\n - service: input_datetime.set_datetime\n entity_id: input_datetime.anyone_home_last_seen\n data:\n datetime: '{{ now().strftime(\"%Y-%m-%d %H:%M:%S\") }}'",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Anyone Home Last Seen",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.anyone_home_last_seen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "anyone_near_home_detected",
|
||
"automation": "- id: anyone_near_home_detected\n alias: Anyone Near Home Detected\n triggers:\n - trigger: state\n entity_id: binary_sensor.anyone_near_home\n from: 'off'\n to: 'on'\n actions:\n - action: timer.start\n entity_id: timer.anyone_near_home_recently",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Near Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_near_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Anyone Near Home Recently",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.anyone_near_home_recently",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_balcony_tracker_led_update",
|
||
"automation": "- id: kitchen_balcony_tracker_led_update\n alias: 'Kitchen Balcony Tracker: LED Update'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.anyone_near_home\n to:\n - 'on'\n - 'off'\n actions:\n - action: switch.turn_{{ trigger.to_state.state }}\n entity_id: switch.kitchen_balcony_tracker_led",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Near Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_near_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Kitchen Balcony Tracker LED",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.kitchen_balcony_tracker_led",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "good_morning",
|
||
"automation": "- id: good_morning\n alias: Good Morning\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Доброе утро\n action:\n - service: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Day\n - service: cover.open_cover\n entity_id:\n - cover.living_room\n - cover.kitchen\n - cover.bedroom\n - cover.workshop\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(\"entity_id\", \"last\") }}'\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'доброе утро! Сегодня\\\n \\ будет отличный день.',\\n 'доброго утра! Продуктивно провести этот день.',\\n\\\n \\ 'с добрым утром! Прекрасный день ждёт впереди.',\\n 'хорошего утра\\\n \\ и удачного дня.',\\n 'доброго утречка! Посмотри как прекрасно за окном!',\\n\\\n \\ 'утра доброго, хорошо спалось?',\\n ]|random\\n}}\\n\"\n - if:\n - condition: state\n entity_id: climate.kettle\n state: 'off'\n - condition: numeric_state\n entity_id: climate.kettle\n attribute: current_temperature\n below: 75\n then:\n - if:\n - condition: numeric_state\n entity_id: sensor.kettle_water_level_ml\n above: 299\n then:\n - service: climate.set_hvac_mode\n entity_id: climate.kettle\n data:\n hvac_mode: auto\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{{ [\\n 'Чай скоро будет готов',\\n 'Я включила чайник для\\\n \\ %s' % states('sensor.person_pronoun_gen'),\\n '%s пить чай, кипяток\\\n \\ на подходе' % ('Умывайся и готовься' if states('sensor.person_pronoun_nom')\\\n \\ == 'ты' else 'Умывайтесь и готовьтесь'),\\n 'Какое утро без чая?\\\n \\ Я позабочусь о нём',\\n ]|random\\n}}\\n\"\n else:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{{ [\\n 'Чая сегодня не будет, кто-то не долил воды с вечера,\\\n \\ плак-плак',\\n 'Не могу включить чайник, похоже там мало воды. Грусть\\\n \\ печаль',\\n 'Хватит валяться и иди включай чайник, без воды он сам\\\n \\ себя не включит'\\n ]|random\\n}}\\n\"\n - if:\n - condition: state\n entity_id: climate.kettle\n state: unavailable\n then:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{{ [\\n 'Чая сегодня не будет, он недоступен, плак-плак',\\n \\\n \\ 'Не могу включить чайник, он отпал. Грусть печаль',\\n 'Хватит валяться\\\n \\ и иди включай чайник, а то у меня лапки'\\n ]|random\\n}}\\n\"\n - if:\n - condition: template\n value_template: \"{% if state_attr('input_datetime.scene_delivery_scheduled_from',\\\n \\ 'has_date') %}\\n {% if states('input_datetime.scene_delivery_scheduled_from').split('\\\n \\ ')|first == now().date()|string %}\\n true\\n {% endif %}\\n{% endif %}\\n\"\n then:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: 'На сегодня запланирована доставка с {{ state_attr(''input_datetime.scene_delivery_scheduled_from'',\n ''hour'') }}:{{ ''%02d'' % state_attr(''input_datetime.scene_delivery_scheduled_from'',\n ''minute'') }} до {{ state_attr(''input_datetime.scene_delivery_scheduled_to'',\n ''hour'') }}:{{ ''%02d'' % state_attr(''input_datetime.scene_delivery_scheduled_to'',\n ''minute'') }}\n\n '\n - if:\n - condition: template\n value_template: '{{ 0 <= (states(''input_datetime.next_trip'') | as_datetime\n | as_local - now()).days < 30 }}\n\n '\n then:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: До поездки осталось {{ (states('input_datetime.next_trip') | as_datetime\n | as_local - now()).days }} дн.\n - service: script.yandex_station_command\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n command: Какой сегодня день и время\n - service: script.yandex_station_command\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n command: Погода на сегодня\n - if:\n - condition: template\n value_template: '{{ now().month == 12 and now().day >= 15 }}\n\n '\n then:\n - service: script.yandex_station_command\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n command: Сколько осталось до нового года",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Kitchen",
|
||
"room": "kitchen",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.kitchen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Workshop",
|
||
"room": "workshop",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.workshop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Climate Kettle",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.kettle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Kettle Water Level ML",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.kettle_water_level_ml",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Person Pronoun Gen",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.person_pronoun_gen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Person Pronoun Nom",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.person_pronoun_nom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Scene Delivery Scheduled From",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.scene_delivery_scheduled_from",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Scene Delivery Scheduled To",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.scene_delivery_scheduled_to",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Next Trip",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.next_trip",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station Command",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_command",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "good_morning_fallback",
|
||
"automation": "- id: good_morning_fallback\n alias: Good Morning (fallback)\n trigger:\n - platform: state\n entity_id: light.bedroom_main\n to: 'on'\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: time\n after: 07:00\n before: '21:00'\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n action:\n - service: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Day\n - service: cover.open_cover\n entity_id:\n - cover.living_room\n - cover.kitchen\n - cover.bedroom",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Kitchen",
|
||
"room": "kitchen",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.kitchen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Main",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "good_night",
|
||
"automation": "- id: good_night\n alias: Good Night\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Спокойной ночи\n action:\n - service: script.turn_on\n entity_id: script.yandex_station_tts\n data:\n variables:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: '{{ [''Спокойной ночи!'', ''Сладких снов!'', ''Приятных снов!'', ''Доброй\n ночи!'']|random }}\n\n '\n - service: cover.close_cover\n entity_id:\n - cover.living_room\n - cover.kitchen\n - cover.bedroom\n - service: light.turn_off\n entity_id:\n - group.bathroom_lights\n - group.kitchen_lights\n - group.living_room_lights\n - group.path_lights\n - light.entrance\n - light.hallway\n - light.wardrobe\n - light.closet\n - light.workshop_main\n - light.bedroom_main\n - service: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Night\n - service: light.turn_off\n entity_id: light.bedroom_bed\n data:\n transition: 7\n - service: light.turn_off\n entity_id:\n - light.bedroom_cat\n - light.bedroom_moon\n - light.bedroom_string\n - service: media_player.turn_off\n entity_id: media_player.tv\n - service: switch.turn_off\n entity_id: switch.bedroom_airing",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Closet Light",
|
||
"room": "closet",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.closet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Cat",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_cat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Kitchen",
|
||
"room": "kitchen",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.kitchen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Main",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Bathroom Lights",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Kitchen Lights",
|
||
"room": "kitchen",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.kitchen_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Living Room Lights",
|
||
"room": "living_room",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.living_room_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Path Lights",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.path_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Wardrobe",
|
||
"room": "wardrobe",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.wardrobe",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Moon",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_moon",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom String",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_string",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bedroom Airing",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_airing",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "hallway_light_turn_off_welcome_home",
|
||
"automation": "- id: hallway_light_turn_off_welcome_home\n alias: 'Hallway Light: Turn off (welcome home)'\n trigger:\n - platform: state\n entity_id: binary_sensor.entrance_motion\n to: 'off'\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id:\n - light.hallway\n - light.entrance\n match: any\n state: 'on'\n - condition: state\n entity_id: timer.scene_welcome_home\n state: active\n action:\n - service: light.turn_off\n entity_id:\n - light.hallway\n - light.entrance",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Scene Welcome Home",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.scene_welcome_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "entrance_light_turn_off",
|
||
"automation": "- id: entrance_light_turn_off\n alias: 'Entrance Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.entrance_motion\n to: 'off'\n for:\n minutes: 15\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: light.entrance\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.entrance",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_bed_button_single_press",
|
||
"automation": "- id: bedroom_bed_button_single_press\n alias: 'Bedroom Bed Button: Single press'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 620c20157f0cbf8a0249f3f083a531ff\n type: action\n subtype: single\n condition:\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - light.bedroom_bed\n - light.hallway_path\n match: any\n state: 'on'\n sequence:\n - service: light.turn_off\n entity_id:\n - group.living_room_lights\n - group.workshop_lights\n - light.bedroom_bed\n - light.bedroom_moon\n - light.hallway_path\n - light.wardrobe\n - conditions:\n - condition: state\n entity_id: input_boolean.bedroom_airing_cold\n state: 'on'\n sequence:\n - service: input_boolean.turn_off\n entity_id: input_boolean.bedroom_airing_cold\n - service: script.yandex_station_tts\n data:\n target: media_player.bedroom_station\n text: '<speaker audio=\"dialogs-upload/31d7ae1e-6af0-40a0-8721-759585b9c331/4e413dc0-8b7c-4604-b7c4-01019abc3814.opus\">\n\n '\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n sequence:\n - service: light.turn_off\n entity_id:\n - group.living_room_lights\n - group.workshop_lights\n - light.bedroom_bed\n - light.hallway_path\n - light.wardrobe",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Living Room Lights",
|
||
"room": "living_room",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.living_room_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Wardrobe",
|
||
"room": "wardrobe",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.wardrobe",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Moon",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_moon",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom Bed Button",
|
||
"room": "bedroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "620c20157f0cbf8a0249f3f083a531ff"
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Workshop Lights",
|
||
"room": "workshop",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.workshop_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Cold",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Bedroom Station",
|
||
"room": "bedroom",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.bedroom_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_bed_button_double_press",
|
||
"automation": "- id: bedroom_bed_button_double_press\n alias: 'Bedroom Bed Button: Double press'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 620c20157f0cbf8a0249f3f083a531ff\n type: action\n subtype: double\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.bedroom_airing_cold\n - service: script.yandex_station_tts\n data:\n target: media_player.bedroom_station\n text: '<speaker audio=\"dialogs-upload/31d7ae1e-6af0-40a0-8721-759585b9c331/4e413dc0-8b7c-4604-b7c4-01019abc3814.opus\">\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Bedroom Bed Button",
|
||
"room": "bedroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "620c20157f0cbf8a0249f3f083a531ff"
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Cold",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Bedroom Station",
|
||
"room": "bedroom",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.bedroom_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_bed_button_hold",
|
||
"automation": "- id: bedroom_bed_button_hold\n alias: 'Bedroom Bed Button: Hold'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 620c20157f0cbf8a0249f3f083a531ff\n type: action\n subtype: hold\n action:\n - service: script.yandex_station_tts\n data:\n target: media_player.kitchen_station\n text: '<speaker audio=\"dialogs-upload/31d7ae1e-6af0-40a0-8721-759585b9c331/4e413dc0-8b7c-4604-b7c4-01019abc3814.opus\">\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Bedroom Bed Button",
|
||
"room": "bedroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "620c20157f0cbf8a0249f3f083a531ff"
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Kitchen Station",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_light_switch_single_right",
|
||
"automation": "- id: bedroom_light_switch_single_right\n alias: 'Bedroom Light Switch: Single right'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: c109a5cffc3ce01835ed7f55ce3b8cbc\n type: action\n subtype: single_right\n action:\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n then:\n - service: light.turn_on\n entity_id: light.bedroom_bed\n data:\n color_name: red\n brightness_pct: 100\n - service: light.turn_on\n entity_id: light.bedroom_moon\n data:\n rgb_color:\n - 255\n - 10\n - 10\n brightness_pct: 100\n else:\n - if:\n - condition: state\n entity_id: light.bedroom_bed\n state: 'on'\n then:\n - service: light.turn_off\n entity_id: light.bedroom_bed\n else:\n - service: light.turn_on\n entity_id: light.bedroom_bed\n data:\n rgb_color:\n - 10\n - 214\n - 255\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Moon",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_moon",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom Light Switch",
|
||
"room": "bedroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "c109a5cffc3ce01835ed7f55ce3b8cbc"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_light_switch_double_right",
|
||
"automation": "- id: bedroom_light_switch_double_right\n alias: 'Bedroom Light Switch: Double right'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: c109a5cffc3ce01835ed7f55ce3b8cbc\n type: action\n subtype: double_right\n action:\n - if:\n - condition: state\n entity_id: light.bedroom_moon\n state: 'on'\n then:\n - service: light.turn_off\n entity_id: light.bedroom_moon\n else:\n - service: light.turn_on\n entity_id: light.bedroom_moon\n data:\n rgb_color:\n - 10\n - 214\n - 255\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Light Bedroom Moon",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_moon",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom Light Switch",
|
||
"room": "bedroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "c109a5cffc3ce01835ed7f55ce3b8cbc"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_desk_button_turn_on",
|
||
"automation": "- id: workshop_desk_button_turn_on\n alias: 'Workshop Desk Button: Turn on'\n mode: restart\n trigger:\n - trigger: device\n domain: mqtt\n device_id: b9daf61de1fcfea52aa888e18dcd46ee\n type: action\n subtype: 'on'\n action:\n - service: input_boolean.toggle\n entity_id: input_boolean.workshop_airing_warm\n - service: script.turn_on\n entity_id: script.yandex_station_tts\n data:\n variables:\n target: media_player.workshop_station\n text: '<speaker audio=\"dialogs-upload/31d7ae1e-6af0-40a0-8721-759585b9c331/4e413dc0-8b7c-4604-b7c4-01019abc3814.opus\">\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Workshop Desk Button",
|
||
"room": "workshop",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "b9daf61de1fcfea52aa888e18dcd46ee"
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Airing Warm",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_desk_button_turn_off",
|
||
"automation": "- id: workshop_desk_button_turn_off\n alias: 'Workshop Desk Button: Turn off'\n mode: restart\n trigger:\n - trigger: device\n domain: mqtt\n device_id: b9daf61de1fcfea52aa888e18dcd46ee\n type: action\n subtype: 'off'\n action:\n - service: input_boolean.toggle\n entity_id: input_boolean.workshop_airing_cold\n - service: script.turn_on\n entity_id: script.yandex_station_tts\n data:\n variables:\n target: media_player.workshop_station\n text: '<speaker audio=\"dialogs-upload/31d7ae1e-6af0-40a0-8721-759585b9c331/4e413dc0-8b7c-4604-b7c4-01019abc3814.opus\">\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Workshop Desk Button",
|
||
"room": "workshop",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "b9daf61de1fcfea52aa888e18dcd46ee"
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Airing Cold",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_shades_close",
|
||
"automation": "- id: workshop_shades_close\n alias: 'Workshop Shades: Close'\n trigger:\n - id: lock_unlocked\n platform: state\n entity_id: lock.front_door\n from: locked\n to: unlocked\n - platform: state\n entity_id: binary_sensor.evening_time\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: binary_sensor.evening_time\n state: 'on'\n - condition: or\n conditions:\n - condition: trigger\n id: lock_unlocked\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: binary_sensor.workshop_window\n state: 'off'\n - condition: state\n entity_id: cover.workshop\n attribute: current_position\n state: 100\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.workshop_shades_close',\\n\\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 8 * 60 * 60 }}\\n\"\n action:\n - service: cover.set_cover_position\n entity_id: cover.workshop\n data:\n position: 20",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Evening Time",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.evening_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Workshop",
|
||
"room": "workshop",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.workshop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Window",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_window",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "doorbell_ringing",
|
||
"automation": "- id: doorbell_ringing\n alias: 'Doorbell: Ringing'\n trigger:\n - platform: state\n entity_id: binary_sensor.doorbell_ringing\n to: 'on'\n action:\n - service: notify.dextor\n data:\n message: 🔔 Динг-донг, кто-то звонит в дверь",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Doorbell Ringing",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.doorbell_ringing",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "doorbell_mode_update",
|
||
"automation": "- id: doorbell_mode_update\n alias: 'Doorbell: Mode update'\n trigger:\n - platform: time_pattern\n minutes: /10\n - platform: state\n entity_id: input_select.home_mode\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n sequence:\n - service: select.select_option\n entity_id: select.doorbell_mode\n data:\n option: Night\n default:\n - service: select.select_option\n entity_id: select.doorbell_mode\n data:\n option: Day",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Select Doorbell Mode",
|
||
"room": null,
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.doorbell_mode",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "doorbell_stop_playing",
|
||
"automation": "- id: doorbell_stop_playing\n alias: 'Doorbell: Stop playing'\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n to: 'on'\n condition:\n - condition: state\n entity_id: binary_sensor.doorbell_ringing\n state: 'on'\n action:\n - service: esphome.doorbell_stop",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Doorbell Ringing",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.doorbell_ringing",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_humidifier_update",
|
||
"automation": "- id: bedroom_humidifier_update\n alias: 'Bedroom Humidifier: Update'\n mode: queued\n max: 4\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /7\n - platform: state\n entity_id:\n - input_number.home_target_humidity\n - input_select.home_mode\n - input_boolean.scene_waking_up\n - platform: state\n entity_id: sensor.ups_status\n from: On Battery\n to: Online\n for:\n seconds: 30\n condition:\n - condition: template\n value_template: '{{ states(''humidifier.bedroom_humidifier'') not in [''unavailable'',\n ''unknown''] }}\n\n '\n - condition: state\n entity_id:\n - input_boolean.climate_control\n - input_boolean.bedroom_humidifier_control\n state: 'on'\n action:\n - if:\n - condition: state\n entity_id: sensor.bedroom_humidifier_target_mode\n state: 'off'\n then:\n - if:\n - condition: state\n entity_id: humidifier.bedroom_humidifier\n state: 'on'\n then:\n - service: humidifier.turn_off\n entity_id: humidifier.bedroom_humidifier\n else:\n - if:\n - condition: state\n entity_id: humidifier.bedroom_humidifier\n state: 'off'\n then:\n - service: humidifier.turn_on\n entity_id: humidifier.bedroom_humidifier\n - wait_template: '{{ is_state(''humidifier.bedroom_humidifier'', ''on'') }}\n\n '\n timeout:\n seconds: 15\n continue_on_timeout: false\n - if:\n - condition: template\n value_template: '{{ state_attr(''humidifier.bedroom_humidifier'', ''mode'')\n != states(\"sensor.bedroom_humidifier_target_mode\") }}\n\n '\n then:\n - service: humidifier.set_mode\n entity_id: humidifier.bedroom_humidifier\n data:\n mode: '{{ states(\"sensor.bedroom_humidifier_target_mode\") }}'\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id: switch.bedroom_humidifier_screen\n state: 'on'\n then:\n - delay:\n seconds: 3\n - service: switch.turn_off\n entity_id: switch.bedroom_humidifier_screen\n - if:\n - or:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_boolean.scene_waking_up\n state: 'on'\n - condition: state\n entity_id: switch.bedroom_humidifier_screen\n state: 'off'\n then:\n - delay:\n seconds: 3\n - service: switch.turn_on\n entity_id: switch.bedroom_humidifier_screen\n - if:\n - condition: state\n entity_id: switch.bedroom_humidifier_filter_drying\n state: 'on'\n then:\n - delay:\n seconds: 3\n - service: switch.turn_off\n entity_id: switch.bedroom_humidifier_filter_drying\n - if:\n - condition: state\n entity_id: switch.bedroom_humidifier_sound\n state: 'on'\n then:\n - delay:\n seconds: 3\n - service: switch.turn_off\n entity_id: switch.bedroom_humidifier_sound\n - if:\n - condition: template\n value_template: '{{ not is_state(\"switch.bedroom_humidifier_heater\", states(\"binary_sensor.bedroom_humidifier_target_heater\"))\n }}'\n then:\n - delay:\n seconds: 3\n - service: switch.turn_{{ states(\"binary_sensor.bedroom_humidifier_target_heater\")\n }}\n entity_id: switch.bedroom_humidifier_heater\n - if:\n - condition: state\n entity_id: number.bedroom_humidifier_screen_brightness\n state: '1'\n then:\n - delay:\n seconds: 3\n - service: number.set_value\n entity_id: number.bedroom_humidifier_screen_brightness\n data:\n value: '0'",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Humidifier Bedroom Humidifier",
|
||
"room": "bedroom",
|
||
"type": "humidifier",
|
||
"id": {
|
||
"entity_id": "humidifier.bedroom_humidifier",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor UPS Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ups_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Climate Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.climate_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Humidifier Control",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Bedroom Humidifier Target Mode",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.bedroom_humidifier_target_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bedroom Humidifier Screen",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_humidifier_screen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bedroom Humidifier Filter Drying",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_humidifier_filter_drying",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bedroom Humidifier Sound",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_humidifier_sound",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bedroom Humidifier Heater",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_humidifier_heater",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Humidifier Target Heater",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_humidifier_target_heater",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Number Bedroom Humidifier Screen Brightness",
|
||
"room": "bedroom",
|
||
"type": "number",
|
||
"id": {
|
||
"entity_id": "number.bedroom_humidifier_screen_brightness",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Home Target Humidity",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.home_target_humidity",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_humidifier_update",
|
||
"automation": "- id: living_room_humidifier_update\n alias: 'Living Room Humidifier: Update'\n mode: queued\n max: 4\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /7\n - platform: state\n entity_id:\n - binary_sensor.anyone_home\n - binary_sensor.living_room_occupancy\n - input_boolean.scene_movie\n - input_boolean.scene_sleepy_mood\n - input_boolean.scene_waking_up\n - input_number.home_target_humidity\n - input_select.home_mode\n - platform: state\n entity_id: media_player.tv\n to:\n - 'on'\n - 'off'\n condition:\n - condition: template\n value_template: '{{ states(''humidifier.living_room_humidifier'') not in [''unavailable'',\n ''unknown''] }}\n\n '\n - condition: state\n entity_id:\n - input_boolean.climate_control\n - input_boolean.living_room_humidifier_control\n state: 'on'\n action:\n - delay:\n seconds: 1\n - if:\n - condition: state\n entity_id: sensor.living_room_humidifier_target_mode\n state: 'off'\n then:\n - if:\n - condition: state\n entity_id: humidifier.living_room_humidifier\n state: 'on'\n then:\n - service: humidifier.turn_off\n entity_id: humidifier.living_room_humidifier\n else:\n - if:\n - condition: state\n entity_id: humidifier.living_room_humidifier\n state: 'off'\n then:\n - service: humidifier.turn_on\n entity_id: humidifier.living_room_humidifier\n - wait_template: '{{ is_state(''humidifier.living_room_humidifier'', ''on'')\n }}\n\n '\n timeout:\n seconds: 15\n continue_on_timeout: false\n - if:\n - condition: template\n value_template: '{{ state_attr(''humidifier.living_room_humidifier'', ''mode'')\n != states(\"sensor.living_room_humidifier_target_mode\") }}\n\n '\n then:\n - service: humidifier.set_mode\n entity_id: humidifier.living_room_humidifier\n data:\n mode: '{{ states(\"sensor.living_room_humidifier_target_mode\") }}'\n - delay:\n seconds: 1\n - if:\n - condition: state\n entity_id: humidifier.living_room_humidifier\n attribute: mode\n state: manual\n - condition: template\n value_template: '{{ states(''number.living_room_humidifier_fan_speed'')|string\n != states(\"sensor.living_room_humidifier_target_fan_speed\")|string }}\n\n '\n then:\n - service: number.set_value\n entity_id: number.living_room_humidifier_fan_speed\n data:\n value: '{{ states(\"sensor.living_room_humidifier_target_fan_speed\") }}'\n - if:\n - condition: state\n entity_id: humidifier.living_room_humidifier\n attribute: mode\n state: auto\n - condition: template\n value_template: '{{ state_attr(''humidifier.living_room_humidifier'', ''humidity'')|string\n != states(\"sensor.living_room_humidifier_target_humidity\") }}\n\n '\n then:\n - service: humidifier.set_humidity\n entity_id: humidifier.living_room_humidifier\n data:\n humidity: '{{ states(\"sensor.living_room_humidifier_target_humidity\") }}'",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Climate Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.climate_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Humidifier Living Room Humidifier",
|
||
"room": "living_room",
|
||
"type": "humidifier",
|
||
"id": {
|
||
"entity_id": "humidifier.living_room_humidifier",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Occupancy",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Home Target Humidity",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.home_target_humidity",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Humidifier Control",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Living Room Humidifier Target Mode",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_humidifier_target_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Number Living Room Humidifier Fan Speed",
|
||
"room": "living_room",
|
||
"type": "number",
|
||
"id": {
|
||
"entity_id": "number.living_room_humidifier_fan_speed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Living Room Humidifier Target Fan Speed",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_humidifier_target_fan_speed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Living Room Humidifier Target Humidity",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_humidifier_target_humidity",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_humidifier_water_leak",
|
||
"automation": "- id: living_room_humidifier_water_leak\n alias: 'Living Room Humidifier: Water Leak'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.living_room_humidifier_water_leak\n - binary_sensor.living_room_humidifier_water_tank_leak\n from: 'off'\n to: 'on'\n - platform: state\n entity_id:\n - binary_sensor.living_room_humidifier_water_leak\n - binary_sensor.living_room_humidifier_water_tank_leak\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n action:\n - if:\n - condition: template\n value_template: '{{ trigger.entity_id == ''binary_sensor.living_room_humidifier_water_leak''\n }}\n\n '\n then:\n - action: switch.turn_off\n entity_id: switch.living_room_humidifier_socket\n - service: notify.mobile_app_misaka\n data:\n message: '🚨 Обнаружена протечка {{ state_attr(trigger.from_state.entity_id,\n ''alert_text'')|default('''', True) }}\n\n '\n data:\n push:\n sound:\n name: sms-received2.caf\n critical: 1\n volume: 1\n continue_on_error: true\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: 'Обнаружена протечка {{ state_attr(trigger.from_state.entity_id, ''alert_text'')|default('''',\n True) }}. Повторяю. Обнаружена протечка!\n\n '\n - service: notify.dextor\n data:\n message: '🚨 Обнаружена протечка {{ state_attr(trigger.from_state.entity_id,\n ''alert_text'')|default('''', True) }}\n\n '\n continue_on_error: true",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Humidifier Water Leak",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_humidifier_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Humidifier Water Tank Leak",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_humidifier_water_tank_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Humidifier Socket",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_humidifier_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Mobile App Misaka",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_misaka",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_humidifier_water_tank_auto_refill_update",
|
||
"automation": "- id: living_room_humidifier_water_tank_auto_refill_update\n alias: 'Living Room Humidifier Water Tank: Auto Refill Update'\n mode: queued\n trigger:\n - platform: time_pattern\n minutes: /7\n - platform: state\n entity_id:\n - input_select.home_mode\n - binary_sensor.anyone_home\n - input_boolean.scene_waking_up\n - input_boolean.living_room_humidifier_control\n conditions:\n - condition: state\n entity_id: switch.living_room_humidifier_water_tank_auto_refill\n state:\n - 'on'\n - 'off'\n actions:\n - if:\n - or:\n - condition: state\n entity_id: input_boolean.scene_waking_up\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Night\n - condition: state\n entity_id:\n - binary_sensor.anyone_home\n - input_boolean.living_room_humidifier_control\n state: 'on'\n then:\n - if:\n - condition: state\n entity_id: switch.living_room_humidifier_water_tank_auto_refill\n state: 'off'\n then:\n - action: switch.turn_on\n entity_id: switch.living_room_humidifier_water_tank_auto_refill\n - if:\n - condition: state\n entity_id: switch.living_room_humidifier_water_tank_maintenance\n state: 'off'\n then:\n - action: button.press\n entity_id: button.living_room_humidifier_water_tank_refill\n else:\n - action: switch.turn_off\n entity_id: switch.living_room_humidifier_water_tank_auto_refill",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Humidifier Control",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Humidifier Water Tank Auto Refill",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_humidifier_water_tank_auto_refill",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Humidifier Water Tank Maintenance",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_humidifier_water_tank_maintenance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Button Living Room Humidifier Water Tank Refill",
|
||
"room": "living_room",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.living_room_humidifier_water_tank_refill",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_humidifier_water_tank_problem_alert",
|
||
"automation": "- id: living_room_humidifier_water_tank_problem_alert\n alias: 'Living Room Humidifier Water Tank: Problem alert'\n trigger:\n - platform: state\n entity_id: binary_sensor.living_room_humidifier_water_tank_problem\n to: 'on'\n actions:\n - delay:\n seconds: 1\n - service: notify.dextor\n data:\n message: '🌊 Что-то не так с доливом в увлажнитель: {{ states(''sensor.living_room_humidifier_water_tank_state'')\n }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Humidifier Water Tank Problem",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_humidifier_water_tank_problem",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Living Room Humidifier Water Tank State",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_humidifier_water_tank_state",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_humidifier_update",
|
||
"automation": "- id: workshop_humidifier_update\n alias: 'Workshop Humidifier: Update'\n mode: queued\n max: 4\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /7\n - platform: state\n entity_id:\n - input_number.home_target_humidity\n - input_select.home_mode\n condition:\n - condition: template\n value_template: '{{ states(''humidifier.workshop_humidifier'') not in [''unavailable'',\n ''unknown''] }}\n\n '\n - condition: state\n entity_id:\n - input_boolean.climate_control\n - input_boolean.workshop_humidifier_control\n state: 'on'\n action:\n - if:\n - condition: state\n entity_id: sensor.workshop_humidifier_target_mode\n state: 'off'\n then:\n - if:\n - condition: state\n entity_id: humidifier.workshop_humidifier\n state: 'on'\n then:\n - service: humidifier.turn_off\n entity_id: humidifier.workshop_humidifier\n else:\n - if:\n - condition: state\n entity_id: humidifier.workshop_humidifier\n state: 'off'\n then:\n - service: humidifier.turn_on\n entity_id: humidifier.workshop_humidifier\n - wait_template: '{{ is_state(''humidifier.workshop_humidifier'', ''on'') }}\n\n '\n timeout:\n seconds: 15\n continue_on_timeout: false\n - if:\n - condition: template\n value_template: '{{ state_attr(''humidifier.workshop_humidifier'', ''mode'')\n != states(\"sensor.workshop_humidifier_target_mode\") }}\n\n '\n then:\n - service: humidifier.set_mode\n entity_id: humidifier.workshop_humidifier\n data:\n mode: '{{ states(\"sensor.workshop_humidifier_target_mode\") }}'",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Climate Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.climate_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Home Target Humidity",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.home_target_humidity",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Humidifier Workshop Humidifier",
|
||
"room": "workshop",
|
||
"type": "humidifier",
|
||
"id": {
|
||
"entity_id": "humidifier.workshop_humidifier",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Humidifier Control",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Workshop Humidifier Target Mode",
|
||
"room": "workshop",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.workshop_humidifier_target_mode",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_humidifier_x_update",
|
||
"automation": "- id: workshop_humidifier_x_update\n alias: 'Workshop Humidifier X: Update'\n mode: queued\n max: 4\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /7\n - platform: state\n entity_id:\n - input_number.home_target_humidity\n - input_select.home_mode\n condition:\n - condition: template\n value_template: '{{ states(''humidifier.workshop_humidifier_x'') not in [''unavailable'',\n ''unknown''] }}\n\n '\n - condition: state\n entity_id:\n - input_boolean.climate_control\n - input_boolean.workshop_humidifier_control\n state: 'on'\n action:\n - if:\n - condition: state\n entity_id: sensor.workshop_humidifier_target_mode\n state: 'off'\n then:\n - if:\n - condition: state\n entity_id: humidifier.workshop_humidifier_x\n state: 'on'\n then:\n - service: humidifier.turn_off\n entity_id: humidifier.workshop_humidifier_x\n else:\n - if:\n - condition: state\n entity_id: humidifier.workshop_humidifier_x\n state: 'off'\n then:\n - service: humidifier.turn_on\n entity_id: humidifier.workshop_humidifier_x\n - wait_template: '{{ is_state(''humidifier.workshop_humidifier_x'', ''on'')\n }}\n\n '\n timeout:\n seconds: 15\n continue_on_timeout: false\n - if:\n - condition: template\n value_template: '{{ state_attr(''humidifier.workshop_humidifier_x'', ''mode'')\n != states(\"sensor.workshop_humidifier_target_mode\") }}\n\n '\n then:\n - service: humidifier.set_mode\n entity_id: humidifier.workshop_humidifier_x\n data:\n mode: '{{ states(\"sensor.workshop_humidifier_target_mode\") }}'",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Climate Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.climate_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Home Target Humidity",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.home_target_humidity",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Humidifier Workshop Humidifier",
|
||
"room": "workshop",
|
||
"type": "humidifier",
|
||
"id": {
|
||
"entity_id": "humidifier.workshop_humidifier",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Humidifier Control",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Workshop Humidifier Target Mode",
|
||
"room": "workshop",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.workshop_humidifier_target_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Humidifier Workshop Humidifier X",
|
||
"room": "workshop",
|
||
"type": "humidifier",
|
||
"id": {
|
||
"entity_id": "humidifier.workshop_humidifier_x",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_intake_fan_update",
|
||
"automation": "- id: bedroom_intake_fan_update\n alias: 'Bedroom Intake Fan: Update'\n mode: single\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /5\n - platform: state\n entity_id:\n - binary_sensor.bedroom_occupancy\n - input_select.home_mode\n - input_select.washing_machine_status\n - input_boolean.bedroom_intake_fan_control\n - id: room_airing\n platform: state\n entity_id:\n - input_boolean.bedroom_airing_warm\n - input_boolean.bedroom_airing_cold\n to:\n - 'on'\n - 'off'\n - id: recirculation\n platform: state\n entity_id: switch.bedroom_intake_fan_recirculation\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: sensor.ups_status\n from: On Battery\n to: Online\n for:\n seconds: 30\n condition:\n - condition: state\n entity_id: climate.bedroom_intake_fan\n state:\n - heat\n - fan_only\n - 'off'\n - condition: state\n entity_id:\n - input_boolean.climate_control\n - input_boolean.bedroom_intake_fan_control\n state: 'on'\n action:\n - if:\n - condition: trigger\n id: recirculation\n then:\n - delay:\n seconds: 20\n else:\n - delay:\n seconds: 1\n - action: script.intake_fan_update\n data:\n area: bedroom",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Cold",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor UPS Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ups_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Climate Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.climate_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Climate Bedroom Intake Fan",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_intake_fan",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Intake Fan Control",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_intake_fan_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Occupancy",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Warm",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bedroom Intake Fan Recirculation",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_intake_fan_recirculation",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_airing_swap_modes",
|
||
"automation": "- id: bedroom_airing_swap_modes\n alias: 'Bedroom Airing: Swap modes'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.bedroom_airing_warm\n - input_boolean.bedroom_airing_cold\n to: 'on'\n action:\n - service: input_boolean.turn_off\n data_template:\n entity_id: \"{%- if trigger.from_state.entity_id == 'input_boolean.bedroom_airing_warm'\\\n \\ -%}\\n input_boolean.bedroom_airing_cold\\n{%- else -%}\\n input_boolean.bedroom_airing_warm\\n\\\n {%- endif -%}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Cold",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Warm",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_warm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_airing_auto_turn_off",
|
||
"automation": "- id: bedroom_airing_auto_turn_off\n alias: 'Bedroom Airing: Auto turn off'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.bedroom_airing_warm\n - input_boolean.bedroom_airing_cold\n to: 'on'\n for:\n minutes: 40\n action:\n - service: input_boolean.turn_off\n data_template:\n entity_id: '{{ trigger.from_state.entity_id }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Cold",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Warm",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_warm",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_intake_fan_restore_circulation",
|
||
"automation": "- id: living_room_intake_fan_restore_circulation\n alias: 'Living Room Intake Fan: Restore circulation'\n trigger:\n - platform: state\n entity_id: switch.living_room_intake_fan_recirculation\n to: 'on'\n for:\n minutes: 30\n action:\n - service: switch.turn_off\n entity_id: switch.living_room_intake_fan_recirculation",
|
||
"config": [
|
||
{
|
||
"name": "Switch Living Room Intake Fan Recirculation",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_intake_fan_recirculation",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_intake_fan_bad_air",
|
||
"automation": "- id: living_room_intake_fan_bad_air\n alias: 'Living Room Intake Fan: Bad air'\n mode: restart\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Воняет\n - platform: state\n entity_id: input_boolean.living_room_airing_bad_air\n to: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.living_room_airing_bad_air\n - service: switch.turn_on\n entity_id: switch.living_room_intake_fan_recirculation\n - service: script.turn_on\n entity_id: script.yandex_station_tts\n data:\n variables:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') if ''event'' in\n trigger else ''media_player.living_room_station'' }}\n\n '\n text: '{{ [''Бееее, закрываю приток'', ''Опять курево, отвратительно'', ''Закрываю\n приток'', ''Выключаю приток'']|random }}\n\n '\n - delay:\n minutes: 5\n - service: switch.turn_off\n entity_id: switch.living_room_intake_fan_recirculation",
|
||
"config": [
|
||
{
|
||
"name": "Switch Living Room Intake Fan Recirculation",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_intake_fan_recirculation",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Airing Bad Air",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_bad_air",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_intake_fan_update",
|
||
"automation": "- id: living_room_intake_fan_update\n alias: 'Living Room Intake Fan: Update'\n mode: single\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /5\n - platform: state\n entity_id:\n - input_select.home_mode\n - input_boolean.scene_sleepy_mood\n - input_boolean.living_room_intake_fan_control\n - switch.ironing_board_socket\n - id: room_airing\n platform: state\n entity_id:\n - input_boolean.living_room_airing_warm\n - input_boolean.living_room_airing_cold\n to:\n - 'on'\n - 'off'\n - id: recirculation\n platform: state\n entity_id: switch.living_room_intake_fan_recirculation\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: sensor.ups_status\n from: On Battery\n to: Online\n for:\n seconds: 45\n condition:\n - condition: state\n entity_id: climate.living_room_intake_fan\n state:\n - heat\n - fan_only\n - 'off'\n - condition: state\n entity_id:\n - input_boolean.climate_control\n - input_boolean.living_room_intake_fan_control\n state: 'on'\n action:\n - if:\n - condition: trigger\n id: recirculation\n then:\n - delay:\n seconds: 20\n else:\n - delay:\n seconds: 1\n - action: script.intake_fan_update\n data:\n area: living_room",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor UPS Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ups_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Climate Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.climate_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Intake Fan Recirculation",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_intake_fan_recirculation",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Climate Living Room Intake Fan",
|
||
"room": "living_room",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.living_room_intake_fan",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Intake Fan Control",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_intake_fan_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Airing Warm",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Airing Cold",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_airing_swap_modes",
|
||
"automation": "- id: living_room_airing_swap_modes\n alias: 'Living Room Airing: Swap modes'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.living_room_airing_warm\n - input_boolean.living_room_airing_cold\n to: 'on'\n action:\n - service: input_boolean.turn_off\n data_template:\n entity_id: \"{%- if trigger.from_state.entity_id == 'input_boolean.living_room_airing_warm'\\\n \\ -%}\\n input_boolean.living_room_airing_cold\\n{%- else -%}\\n input_boolean.living_room_airing_warm\\n\\\n {%- endif -%}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Living Room Airing Warm",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Airing Cold",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_cold",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_airing_auto_turn_off",
|
||
"automation": "- id: living_room_airing_auto_turn_off\n alias: 'Living Room Airing: Auto turn off'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.living_room_airing_warm\n - input_boolean.living_room_airing_cold\n to: 'on'\n for:\n minutes: 25\n action:\n - service: input_boolean.turn_off\n data_template:\n entity_id: '{{ trigger.from_state.entity_id }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Living Room Airing Warm",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Airing Cold",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_cold",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_intake_fan_update",
|
||
"automation": "- id: workshop_intake_fan_update\n alias: 'Workshop Intake Fan: Update'\n mode: single\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /5\n - platform: state\n entity_id:\n - input_select.home_mode\n - input_select.washing_machine_status\n - input_boolean.scene_sleepy_mood\n - input_boolean.workshop_intake_fan_control\n - binary_sensor.workshop_occupancy\n - id: room_airing\n platform: state\n entity_id:\n - input_boolean.workshop_airing_warm\n - input_boolean.workshop_airing_cold\n to:\n - 'on'\n - 'off'\n - id: recirculation\n platform: state\n entity_id: switch.workshop_intake_fan_recirculation\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: sensor.ups_status\n from: On Battery\n to: Online\n for:\n seconds: 60\n condition:\n - condition: state\n entity_id: climate.workshop_intake_fan\n state:\n - heat\n - fan_only\n - 'off'\n - condition: state\n entity_id:\n - input_boolean.climate_control\n - input_boolean.workshop_intake_fan_control\n state: 'on'\n action:\n - if:\n - condition: trigger\n id: recirculation\n then:\n - delay:\n seconds: 20\n else:\n - delay:\n seconds: 1\n - action: script.intake_fan_update\n data:\n area: workshop",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Airing Warm",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Airing Cold",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor UPS Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ups_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Climate Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.climate_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Climate Workshop Intake Fan",
|
||
"room": "workshop",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.workshop_intake_fan",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Intake Fan Control",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_intake_fan_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Occupancy",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Workshop Intake Fan Recirculation",
|
||
"room": "workshop",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.workshop_intake_fan_recirculation",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_airing_swap_modes",
|
||
"automation": "- id: workshop_airing_swap_modes\n alias: 'Workshop Airing: Swap modes'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.workshop_airing_warm\n - input_boolean.workshop_airing_cold\n to: 'on'\n action:\n - service: input_boolean.turn_off\n data_template:\n entity_id: \"{%- if trigger.from_state.entity_id == 'input_boolean.workshop_airing_warm'\\\n \\ -%}\\n input_boolean.workshop_airing_cold\\n{%- else -%}\\n input_boolean.workshop_airing_warm\\n\\\n {%- endif -%}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Workshop Airing Warm",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Airing Cold",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_cold",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_airing_auto_turn_off",
|
||
"automation": "- id: workshop_airing_auto_turn_off\n alias: 'Workshop Airing: Auto turn off'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.workshop_airing_warm\n - input_boolean.workshop_airing_cold\n to: 'on'\n for:\n minutes: 35\n action:\n - service: input_boolean.turn_off\n data_template:\n entity_id: '{{ trigger.from_state.entity_id }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Workshop Airing Warm",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Airing Cold",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_airing_cold",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kettle_auto_turn_off",
|
||
"automation": "- id: kettle_auto_turn_off\n alias: 'Kettle: Auto turn off'\n trigger:\n - platform: state\n entity_id: climate.kettle\n to: heat\n for:\n minutes: 7\n action:\n - service: climate.turn_off\n entity_id: climate.kettle",
|
||
"config": [
|
||
{
|
||
"name": "Climate Kettle",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.kettle",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kettle_boil_done_alert",
|
||
"automation": "- id: kettle_boil_done_alert\n alias: 'Kettle: Boil done alert'\n trigger:\n - platform: state\n entity_id: climate.kettle\n from: auto\n to: 'off'\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: numeric_state\n entity_id: climate.kettle\n attribute: current_temperature\n above: 93\n action:\n - service: script.yandex_station_tts\n data:\n target:\n - media_player.living_room_station\n - media_player.workshop_station\n type: attention\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'Чайник вскипел, приятного\\\n \\ чаяпития',\\n 'Время пить чай!',\\n 'Пойдём пить чай',\\n 'Давай заварим\\\n \\ чай!',\\n 'Горячая вода готова, заваривай лапшу',\\n ]|random }}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Climate Kettle",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.kettle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kettle_heat_done_alert",
|
||
"automation": "- id: kettle_heat_done_alert\n alias: 'Kettle: Heat done alert'\n trigger:\n - platform: state\n entity_id: climate.kettle\n from: 'off'\n to: heat\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n action:\n - wait_template: '{{ state_attr(''climate.kettle'', ''current_temperature'')|int(0)\n > (state_attr(''climate.kettle'', ''temperature'')|int(0) - 4) }}\n\n '\n timeout:\n minutes: 7\n continue_on_timeout: false\n - condition: state\n entity_id: climate.kettle\n state: heat\n - service: script.yandex_station_tts\n data:\n target:\n - media_player.living_room_station\n - media_player.workshop_station\n type: attention\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'Водичка нагрелась,\\\n \\ приятного чаяпития',\\n 'Время пить чай!',\\n 'Пойдём пить чай',\\n \\\n \\ 'Давай заварим чай!'\\n ]|random }}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Climate Kettle",
|
||
"room": "kitchen",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.kettle",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kettle_stuck",
|
||
"automation": "- id: kettle_stuck\n alias: Kettle Stuck\n trigger:\n - trigger: time_pattern\n minutes: 3\n condition:\n - condition: state\n entity_id: switch.kettle_power\n state: 'off'\n - condition: template\n value_template: '{{ (now() - states.sensor.kettle_uptime.last_changed).total_seconds()\n > 3 * 60 }}\n\n '\n action:\n - action: button.press\n entity_id: button.kettle_restart",
|
||
"config": [
|
||
{
|
||
"name": "Switch Kettle Power",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.kettle_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Kettle Uptime",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.kettle_uptime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Button Kettle Restart",
|
||
"room": "kitchen",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.kettle_restart",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_light_turn_on",
|
||
"automation": "- id: bathroom_light_turn_on\n alias: 'Bathroom Light: Turn on'\n trigger:\n - platform: state\n entity_id: binary_sensor.bathroom_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: group.bathroom_lights\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.dim_light\n state: 'on'\n sequence:\n - service: light.turn_on\n entity_id: light.bathroom_main\n data:\n brightness_pct: 17\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n sequence:\n - service: light.turn_on\n entity_id: light.bathroom_main\n data:\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Main Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Bathroom Lights",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Motion",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_light_turn_on_night_fallback",
|
||
"automation": "- id: bathroom_light_turn_on_night_fallback\n alias: 'Bathroom Light: Turn on (night fallback)'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.bathroom_motion\n - binary_sensor.hallway_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id: input_boolean.scene_waking_up\n state: 'off'\n - condition: state\n entity_id: group.bathroom_path_lights\n state: unavailable\n action:\n - service: light.turn_on\n entity_id: light.bathroom_main\n data:\n brightness_pct: 7",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Main Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Path Lights Group",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_path_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Motion",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_light_turn_off",
|
||
"automation": "- id: bathroom_light_turn_off\n alias: 'Bathroom Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.bathroom_any_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.bathroom_any_occupancy\n from: 'on'\n to: 'off'\n for:\n hours: 1\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.bathroom_light_control\n - group.bathroom_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: group.bathroom_lights\n data:\n transition: 6",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Bathroom Lights",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bathroom Light Control",
|
||
"room": "bathroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bathroom_light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Any Occupancy",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_any_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_light_control_turn_on",
|
||
"automation": "- id: bathroom_light_control_turn_on\n alias: 'Bathroom Light Control: Turn on'\n trigger:\n - platform: state\n entity_id: group.bathroom_lights\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.bathroom_light_control\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.bathroom_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Group Bathroom Lights",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bathroom Light Control",
|
||
"room": "bathroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bathroom_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_light_control_turn_off",
|
||
"automation": "- id: bathroom_light_control_turn_off\n alias: 'Bathroom Light Control: Turn off'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Не выключай свет в ванной\n condition:\n - condition: state\n entity_id: input_boolean.bathroom_light_control\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.bathroom_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Bathroom Light Control",
|
||
"room": "bathroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bathroom_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_bathtub_light_turn_on",
|
||
"automation": "- id: bathroom_bathtub_light_turn_on\n alias: 'Bathroom Bathtub Light: Turn on'\n trigger:\n - platform: state\n entity_id: binary_sensor.bathroom_bathtub_occupancy\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id:\n - binary_sensor.dim_light\n - light.bathroom_bathtub\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.bathroom_bathtub",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Bathtub Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_bathtub",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Bathtub Occupancy",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_bathtub_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_light_turn_on",
|
||
"automation": "- id: bedroom_light_turn_on\n alias: 'Bedroom Light: Turn on'\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: or\n conditions:\n - and:\n - condition: time\n after: '13:00:00'\n before: 04:00:00\n - condition: numeric_state\n entity_id: sensor.illuminance_north_side\n below: 20\n - condition: state\n entity_id: cover.bedroom\n state: closed\n - condition: state\n entity_id:\n - input_boolean.scene_sleepy_mood\n - binary_sensor.bedroom_bed_occupancy\n - group.bedroom_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id:\n - light.bedroom_bed\n - light.bedroom_moon\n data:\n rgb_color:\n - 10\n - 214\n - 255\n brightness_pct: 100\n - service: light.turn_on\n entity_id:\n - light.bedroom_cat\n - light.bedroom_string\n data:\n color_temp_kelvin: 2700\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Cat",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_cat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Moon",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_moon",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom String",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_string",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Motion",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Illuminance North Side",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.illuminance_north_side",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Bed Occupancy",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_bed_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Bedroom Lights",
|
||
"room": "bedroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bedroom_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_bed_light_turn_on_night",
|
||
"automation": "- id: bedroom_bed_light_turn_on_night\n alias: 'Bedroom Bed Light: Turn on (night)'\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id: light.bedroom_bed\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.bedroom_bed\n data:\n color_name: red\n brightness_pct: 30",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Motion",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_main_light_turn_off",
|
||
"automation": "- id: bedroom_main_light_turn_off\n alias: 'Bedroom Main Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_any_occupancy\n to: 'off'\n for:\n minutes: 3\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - light.bedroom_main\n state: 'on'\n - not:\n - and:\n - condition: state\n entity_id: input_select.ironing_board_room\n state: Bedroom\n - condition: state\n entity_id: switch.ironing_board_socket\n state: 'on'\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.bedroom_main",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Main",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Any Occupancy",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_any_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Ironing Board Room",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_board_room",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_bed_light_turn_off",
|
||
"automation": "- id: bedroom_bed_light_turn_off\n alias: 'Bedroom Bed Light: Turn off'\n trigger:\n - platform: state\n entity_id: light.bedroom_bed\n to: 'on'\n for:\n hours: 1\n - platform: state\n entity_id: input_select.home_mode\n from: Night\n - id: motion\n platform: state\n entity_id: binary_sensor.bedroom_motion\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n - platform: state\n entity_id: binary_sensor.bedroom_bed_full_occupancy\n from: 'off'\n to: 'on'\n for:\n seconds: 30\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - light.bedroom_bed\n state: 'on'\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n action:\n - if:\n - condition: trigger\n id: motion\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n then:\n stop: null\n - service: light.turn_off\n entity_id: light.bedroom_bed",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Motion",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Bed Full Occupancy",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_bed_full_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_aux_light_turn_off",
|
||
"automation": "- id: bedroom_aux_light_turn_off\n alias: 'Bedroom Aux Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_any_occupancy\n to: 'off'\n for:\n seconds: 15\n - platform: state\n entity_id: light.bedroom_main\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id:\n - light.bedroom_moon\n - light.bedroom_bed\n - light.bedroom_cat\n - light.bedroom_string\n state: 'on'\n match: any\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n action:\n - service: light.turn_off\n entity_id:\n - light.bedroom_moon\n - light.bedroom_bed\n - light.bedroom_cat\n - light.bedroom_string",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Cat",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_cat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Main",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Moon",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_moon",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom String",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_string",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Any Occupancy",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_any_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_moon_light_charger_turn_on",
|
||
"automation": "- id: bedroom_moon_light_charger_turn_on\n alias: 'Bedroom Moon Light Charger: Turn on'\n trigger:\n - platform: time\n at: '18:00'\n action:\n - service: switch.turn_on\n entity_id: switch.bedroom_moon_light_charger",
|
||
"config": [
|
||
{
|
||
"name": "Switch Bedroom Moon Light Charger",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_moon_light_charger",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedroom_moon_light_charger_turn_off",
|
||
"automation": "- id: bedroom_moon_light_charger_turn_off\n alias: 'Bedroom Moon Light Charger: Turn off'\n trigger:\n - platform: state\n entity_id: switch.bedroom_moon_light_charger\n to: 'on'\n for:\n hours: 1\n minutes: 30\n action:\n - service: switch.turn_off\n entity_id: switch.bedroom_moon_light_charger",
|
||
"config": [
|
||
{
|
||
"name": "Switch Bedroom Moon Light Charger",
|
||
"room": "bedroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bedroom_moon_light_charger",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_light_turn_on_full",
|
||
"automation": "- id: kitchen_light_turn_on_full\n alias: 'Kitchen Light: Turn on (full)'\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id:\n - light.kitchen_main\n - binary_sensor.dim_light\n - input_boolean.scene_sleepy_mood\n state: 'off'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - or:\n - condition: state\n entity_id: light.kitchen_mood\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(''light.kitchen_worktop'', ''brightness'')|int(0)\n in (0, 50) }}\n\n '\n action:\n - service: light.turn_on\n entity_id: light.kitchen_worktop\n data:\n brightness: 255\n - service: light.turn_on\n entity_id: light.kitchen_mood",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Motion",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Worktop",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_worktop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Mood",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Main",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_main",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_light_turn_on_dimmed",
|
||
"automation": "- id: kitchen_light_turn_on_dimmed\n alias: 'Kitchen Light: Turn on (dimmed)'\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_motion\n to: 'on'\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - binary_sensor.dim_light\n state: 'on'\n - condition: state\n entity_id: light.kitchen_main\n state: 'off'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n - or:\n - condition: state\n entity_id: light.kitchen_mood\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(''light.kitchen_worktop'', ''brightness'')|int(0)\n in (0, 100) }}\n\n '\n action:\n - service: light.turn_on\n entity_id: light.kitchen_worktop\n data:\n brightness: 100\n - service: light.turn_on\n entity_id: light.kitchen_mood",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Motion",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Worktop",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_worktop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Mood",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Main",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_main",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_light_dim_worktop",
|
||
"automation": "- id: kitchen_light_dim_worktop\n alias: 'Kitchen Light: Dim worktop'\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 4\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - or:\n - condition: state\n entity_id: light.kitchen_main\n state: 'on'\n - condition: template\n value_template: '{{ state_attr(''light.kitchen_worktop'', ''brightness'')|int(0)\n > 250 }}\n\n '\n action:\n - service: light.turn_on\n entity_id: light.kitchen_worktop\n data:\n brightness: 50\n - service: light.turn_off\n entity_id: light.kitchen_main",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Worktop",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_worktop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Occupancy",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Main",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_main",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_light_turn_off",
|
||
"automation": "- id: kitchen_light_turn_off\n alias: 'Kitchen Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 10\n - platform: state\n entity_id: binary_sensor.kitchen_motion\n from: 'on'\n to: 'off'\n for:\n hours: 2\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - group.kitchen_lights\n state: 'on'\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: group.kitchen_lights",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Kitchen Lights",
|
||
"room": "kitchen",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.kitchen_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Motion",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Occupancy",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_light_turn_on",
|
||
"automation": "- id: living_room_light_turn_on\n alias: 'Living Room Light: Turn on'\n trigger:\n - platform: state\n entity_id: binary_sensor.living_room_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.illuminance_south_side\n below: 500\n - condition: state\n entity_id: cover.living_room\n state: closed\n - condition: state\n entity_id: binary_sensor.winter_bright_light\n state: 'on'\n - condition: state\n entity_id:\n - group.living_room_lights\n - binary_sensor.dim_light\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.living_room_tv\n data:\n brightness_pct: 45\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 23\n color_temp_kelvin: 3400\n - if:\n - condition: state\n entity_id: binary_sensor.winter_bright_light\n state: 'on'\n then:\n - action: light.turn_on\n entity_id: light.living_room_main",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Living Room Lights",
|
||
"room": "living_room",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.living_room_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Illuminance South Side",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.illuminance_south_side",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Winter Bright Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.winter_bright_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Motion",
|
||
"room": "Living Room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_light_turn_off",
|
||
"automation": "- id: living_room_light_turn_off\n alias: 'Living Room Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.living_room_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 20\n - platform: state\n entity_id: binary_sensor.living_room_motion\n from: 'on'\n to: 'off'\n for:\n hours: 2\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - group.living_room_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: group.living_room_lights",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Living Room Lights",
|
||
"room": "living_room",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.living_room_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Occupancy",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Motion",
|
||
"room": "Living Room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_main_light_turn_on",
|
||
"automation": "- id: living_room_main_light_turn_on\n alias: 'Living Room Main Light: Turn on'\n trigger:\n - platform: state\n entity_id: input_boolean.scene_meal\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - binary_sensor.winter_bright_light\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id:\n - light.living_room_main\n - binary_sensor.dim_light\n state: 'off'\n action:\n - action: light.turn_on\n entity_id: light.living_room_main",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Winter Bright Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.winter_bright_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Meal",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_meal",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_main_light_state_update",
|
||
"automation": "- id: workshop_main_light_state_update\n alias: 'Workshop Main Light: State update'\n description: Включает правую ленту при включении левой, жене лень нажимать две кнопки\n mode: queued\n trigger:\n - platform: state\n entity_id: light.workshop_main_1_1\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n action:\n - delay:\n milliseconds: 500\n - condition: template\n value_template: '{{ not is_state(''light.workshop_main_2_1'', trigger.to_state.state)\n }}\n\n '\n - if:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''on'' }}\n\n '\n then:\n - service: light.turn_on\n entity_id:\n - light.workshop_main_2_1\n - light.workshop_main_2_2\n data:\n transition: 2\n brightness_pct: 100\n else:\n - service: light.turn_off\n entity_id:\n - light.workshop_main_2_1\n - light.workshop_main_2_2",
|
||
"config": [
|
||
{
|
||
"name": "Light Workshop Main",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main 1 1",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main_1_1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main 2 1",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main_2_1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main 2 2",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main_2_2",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_main_light_turn_on",
|
||
"automation": "- id: workshop_main_light_turn_on\n alias: 'Workshop Main Light: Turn on'\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: binary_sensor.workshop_door\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.workshop_motion\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: light.workshop_main\n state: 'off'\n action:\n - if:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.dim_light\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n then:\n - service: light.turn_on\n entity_id:\n - light.workshop_main_2_1\n - light.workshop_main_2_2\n data:\n brightness_pct: 1\n transition: 0\n else:\n - service: light.turn_on\n entity_id: light.workshop_main\n data:\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main 2 1",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main_2_1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main 2 2",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main_2_2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Door",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Motion",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_main_light_turn_off",
|
||
"automation": "- id: workshop_main_light_turn_off\n alias: 'Workshop Main Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.workshop_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 10\n - platform: state\n entity_id: binary_sensor.workshop_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 15\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: binary_sensor.workshop_motion\n state: 'off'\n - condition: state\n entity_id: light.workshop_main\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.workshop_main\n data:\n transition: 10",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Occupancy",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Motion",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_main_light_turn_off_door",
|
||
"automation": "- id: workshop_main_light_turn_off_door\n alias: 'Workshop Main Light: Turn off (door)'\n trigger:\n - id: door\n platform: state\n entity_id: binary_sensor.workshop_door\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: light.workshop_main\n state: 'on'\n action:\n - if:\n - condition: numeric_state\n entity_id: light.workshop_main\n attribute: brightness\n below: 40\n then:\n - service: light.turn_off\n entity_id: light.workshop_main\n data:\n transition: 0\n else:\n - service: light.turn_off\n entity_id: light.workshop_main\n data:\n transition: 4",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Door",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_light_control_turn_on",
|
||
"automation": "- id: workshop_light_control_turn_on\n alias: 'Workshop Light Control: Turn on'\n trigger:\n - platform: state\n entity_id: light.workshop_main\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.workshop_light_control\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.workshop_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Light Workshop Main",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Light Control",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_light_control_turn_off",
|
||
"automation": "- id: workshop_light_control_turn_off\n alias: 'Workshop Light Control: Turn off'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Не выключай свет в мастерской\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.workshop_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Workshop Light Control",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "avr_turn_on",
|
||
"automation": "- id: avr_turn_on\n alias: 'AVR: Turn on'\n mode: restart\n trigger:\n - trigger: state\n entity_id: media_layer.tv\n from: 'off'\n to: 'on'\n for:\n seconds: 20\n - trigger: state\n entity_id: media_layer.tv\n from: 'off'\n to: 'on'\n for:\n seconds: 45\n condition:\n - condition: state\n entity_id: switch.avr_power\n state: 'off'\n action:\n - action: switch.turn_on\n entity_id: switch.avr_power",
|
||
"config": [
|
||
{
|
||
"name": "Switch AVR Power",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.avr_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "TV Media Layer",
|
||
"room": "Living Room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_layer.tv",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "avr_turn_off_no_tv",
|
||
"automation": "- id: avr_turn_off_no_tv\n alias: 'AVR: Turn off (no TV)'\n mode: restart\n trigger:\n - platform: state\n entity_id: switch.avr_power\n to: 'on'\n action:\n - delay:\n minutes: 1\n - condition: state\n entity_id: media_player.tv\n state: 'off'\n - condition: state\n entity_id: switch.avr_power\n state: 'on'\n - action: switch.turn_off\n entity_id: switch.avr_power",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch AVR Power",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.avr_power",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "avr_fix_sound",
|
||
"automation": "- id: avr_fix_sound\n alias: 'AVR: Fix sound'\n trigger:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Почини звук\n action:\n - if:\n - condition: state\n entity_id: switch.avr_power\n state: 'off'\n then:\n - action: switch.turn_on\n entity_id: switch.avr_power\n else:\n - action: switch.toggle\n entity_id: switch.avr_power\n - delay:\n seconds: 5\n - action: switch.toggle\n entity_id: switch.avr_power",
|
||
"config": [
|
||
{
|
||
"name": "Switch AVR Power",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.avr_power",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_bathtub_region_enter",
|
||
"automation": "- id: bathroom_bathtub_region_enter\n alias: 'Bathroom Bath: Region enter'\n trigger:\n - platform: device\n domain: mqtt\n device_id: dfc039d7f269372836ab2b62aaf4401b\n type: action\n subtype: region_1_enter\n discovery_id: 0x54ef441000585ebc action_region_1_enter\n action:\n - service: timer.cancel\n entity_id: timer.bathroom_bathtub_region_free\n - service: input_boolean.turn_on\n entity_id: input_boolean.bathroom_bathtub_occupancy",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Bathtub Region Sensor",
|
||
"room": "bathroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "dfc039d7f269372836ab2b62aaf4401b"
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Bathroom Bathtub Region Free",
|
||
"room": "bathroom",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.bathroom_bathtub_region_free",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bathroom Bathtub Occupancy",
|
||
"room": "bathroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bathroom_bathtub_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_bathtub_region_leave",
|
||
"automation": "- id: bathroom_bathtub_region_leave\n alias: 'Bathroom Bath: Region leave'\n trigger:\n - platform: device\n domain: mqtt\n device_id: dfc039d7f269372836ab2b62aaf4401b\n type: action\n subtype: region_1_leave\n discovery_id: 0x54ef441000585ebc action_region_1_leave\n action:\n - service: timer.start\n entity_id: timer.bathroom_bathtub_region_free",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Bathtub Region Sensor",
|
||
"room": "bathroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "dfc039d7f269372836ab2b62aaf4401b"
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Bathroom Bathtub Region Free",
|
||
"room": "bathroom",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.bathroom_bathtub_region_free",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_bathtub_region_free",
|
||
"automation": "- id: bathroom_bathtub_region_free\n alias: 'Bathroom Bath: Region free'\n trigger:\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.bathroom_bathtub_region_free\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.bathroom_bathtub_occupancy",
|
||
"config": [
|
||
{
|
||
"name": "Timer Bathroom Bathtub Region Free",
|
||
"room": "bathroom",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.bathroom_bathtub_region_free",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bathroom Bathtub Occupancy",
|
||
"room": "bathroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bathroom_bathtub_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_applicances_status_update",
|
||
"automation": "- id: kitchen_applicances_status_update\n alias: Kichen Applicances Status Update\n trigger:\n - platform: state\n entity_id: sensor.kitchen_power_supply_power\n condition:\n - condition: template\n value_template: '{{ trigger.to_state.state|int(0) >= 700 }}\n\n '\n action:\n - service: timer.start\n entity_id: timer.kitchen_appliances_running",
|
||
"config": [
|
||
{
|
||
"name": "Sensor Kitchen Power Supply Power",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.kitchen_power_supply_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Kitchen Appliances Running",
|
||
"room": "kitchen",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.kitchen_appliances_running",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "appliance_left_on_alert",
|
||
"automation": "- id: appliance_left_on_alert\n alias: Appliance Left On Alert\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 20\n - platform: state\n entity_id: binary_sensor.anyone_home\n to: 'off'\n - platform: state\n entity_id: input_boolean.scene_meal\n to: 'on'\n for:\n minutes: 3\n condition:\n - condition: state\n entity_id:\n - binary_sensor.stove\n - binary_sensor.kitchen_appliances\n match: any\n state: 'on'\n for:\n minutes: 5\n action:\n - service: notify.dextor\n data:\n message: '⚡️ Похоже кто-то забыл выключить плиту или печку\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Occupancy",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Stove",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.stove",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Appliances",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_appliances",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Meal",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_meal",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "certificate_renew",
|
||
"automation": "- id: certificate_renew\n alias: Certificate renew\n trigger:\n - platform: time\n at: '10:00:00'\n action:\n - service: hassio.addon_start\n data:\n addon: core_letsencrypt",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "humidifiers_maintenance_alert",
|
||
"automation": "- id: humidifiers_maintenance_alert\n alias: 'Humidifiers: Maintenance Alert'\n trigger:\n - platform: time_pattern\n minutes: /10\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: or\n conditions:\n - and:\n - condition: numeric_state\n entity_id: sensor.bedroom_humidifier_water_level\n below: 25\n - condition: state\n entity_id: input_boolean.bedroom_humidifier_control\n state: 'on'\n - and:\n - condition: state\n entity_id: switch.living_room_humidifier_water_tank_maintenance\n state:\n - 'off'\n - unavailable\n - condition: numeric_state\n entity_id: sensor.living_room_humidifier_water_level\n below: 25\n - condition: state\n entity_id: input_boolean.living_room_humidifier_control\n state: 'on'\n - and:\n - condition: numeric_state\n entity_id: sensor.workshop_humidifier_water_level\n below: 25\n - condition: state\n entity_id: binary_sensor.workshop_humidifier_water_tank\n state: 'on'\n - condition: state\n entity_id: input_boolean.workshop_humidifier_control\n state: 'on'\n - condition: state\n entity_id:\n - input_boolean.scene_movie\n - input_boolean.scene_meal\n state: 'off'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: template\n value_template: '{{ (now() - states.input_select.home_mode.last_changed).total_seconds()\n > 3600 }}\n\n '\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.humidifiers_maintenance_alert',\\n\\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 60 * 60 }}\\n\"\n action:\n - wait_template: '{{ not is_state(''media_player.atv'', [''playing'', ''pause''])\n }}\n\n '\n timeout:\n minutes: 28\n continue_on_timeout: true\n - if:\n - condition: state\n entity_id: binary_sensor.humidifier_cleanup_notice\n state: 'on'\n then:\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'Я чувствую новую\\\n \\ жизнь! Давай помоем увлажнители',\\n 'Пахнет болотом, понимаешь к чем\\\n \\ я клоню?',\\n 'Не хотела тебе говорить, но увлажнители надо помыть',\\n\\\n \\ 'Сегодня доливом воды не отделаешься, время мыть увлажнители',\\n \\\n \\ 'Даже кот не идёт вейпить увлажнитель, там очень пахнет'\\n ]|random\\n\\\n }}\\n\"\n else:\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'Добавь водички\\\n \\ в увлажнители',\\n 'Увлажнители хотят пить',\\n 'У увлажнителей пересохло\\\n \\ в горле, напои их пожалуйста',\\n 'Как-то суховато, может воды?',\\n\\\n \\ 'Пора размяться и налить в увлажнители воды',\\n 'Не любишь сухие\\\n \\ губы? Налей воды в увлажнители!',\\n 'Увлажните меня!',\\n ]|random\\n\\\n }} {% if not is_state('sensor.humidifier_need_refill', 'unavailable') %}\\n\\\n \\ {{ states('sensor.humidifier_need_refill') }}\\n{% endif %}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Humidifier Control",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Humidifier Control",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Humidifier Water Tank Maintenance",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_humidifier_water_tank_maintenance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Workshop Humidifier Control",
|
||
"room": "workshop",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.workshop_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Meal",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_meal",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Bedroom Humidifier Water Level",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.bedroom_humidifier_water_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Living Room Humidifier Water Level",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_humidifier_water_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Workshop Humidifier Water Tank",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_humidifier_water_tank",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Workshop Humidifier Water Level",
|
||
"room": "workshop",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.workshop_humidifier_water_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Humidifier Cleanup Notice",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.humidifier_cleanup_notice",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Humidifier Need Refill",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.humidifier_need_refill",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "humidifiers_cleanup",
|
||
"automation": "- id: humidifiers_cleanup\n alias: 'Humidifiers: Cleanup'\n trigger:\n - platform: state\n entity_id: binary_sensor.workshop_humidifier_water_tank\n from: 'on'\n to: 'off'\n for:\n seconds: 30\n action:\n - service: input_datetime.set_datetime\n entity_id: input_datetime.humidifiers_last_cleanup\n data:\n date: '{{ now().strftime(\"%Y-%m-%d\") }}'",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Workshop Humidifier Water Tank",
|
||
"room": "workshop",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workshop_humidifier_water_tank",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Humidifiers Last Cleanup",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.humidifiers_last_cleanup",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Intake Fan Error",
|
||
"automation": "- id: Intake Fan Error\n alias: Intake Fan Error\n mode: single\n max_exceeded: silent\n trigger:\n - platform: event\n event_type: state_changed\n condition:\n - condition: template\n value_template: \"{{ trigger.event.data.new_state and\\n trigger.event.data.new_state.entity_id.endswith('intake_fan_errors')\\\n \\ and\\n trigger.event.data.new_state.state and\\n trigger.event.data.new_state.state\\\n \\ not in ['unavailable', 'unknown'] }}\\n\"\n action:\n - service: notify.dextor\n data:\n message: '😨 Ошибки в бризере {{ trigger.event.data.new_state.entity_id }}: <b>{{\n trigger.event.data.new_state.state }}</b>\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "intercom_night_ring",
|
||
"automation": "- id: intercom_night_ring\n alias: 'Intercom: Night ring'\n trigger:\n - platform: state\n entity_id: sensor.intercom_status\n to: Incoming call\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n action:\n - service: notify.dextor\n data:\n message: 🐷 Кто-то ломится в дверь когда все спят. Может курьер?",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Intercom Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.intercom_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "intercom_unexpected_ring",
|
||
"automation": "- id: intercom_unexpected_ring\n alias: 'Intercom: Unexpected ring'\n trigger:\n - platform: state\n entity_id: sensor.intercom_status\n to: Incoming call\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id:\n - binary_sensor.anyone_home\n - binary_sensor.anyone_near_home\n state: 'off'\n action:\n - service: notify.dextor\n data:\n message: 🐷 Кто-то ломится в дверь когда никого нет дома",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Near Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_near_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Intercom Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.intercom_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "intercom_mode_update",
|
||
"automation": "- id: intercom_mode_update\n alias: 'Intercom: Mode update'\n mode: single\n max_exceeded: silent\n trigger:\n - platform: time_pattern\n minutes: /5\n - platform: state\n entity_id:\n - input_select.home_mode\n - input_boolean.scene_delivery\n - input_boolean.scene_wait_guests\n - binary_sensor.anyone_near_home\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.scene_delivery\n state: 'on'\n sequence:\n - service: select.select_option\n entity_id: select.intercom_mode\n data:\n option: Delivery\n - conditions:\n - condition: state\n entity_id: input_boolean.scene_wait_guests\n state: 'on'\n sequence:\n - service: select.select_option\n entity_id: select.intercom_mode\n data:\n option: Guests\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: binary_sensor.anyone_near_home\n state: 'on'\n sequence:\n - service: select.select_option\n entity_id: select.intercom_mode\n data:\n option: Always accept\n - conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.ios_intercom_mode_accept',\\n\\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 300 }}\\n\"\n sequence:\n - service: select.select_option\n entity_id: select.intercom_mode\n data:\n option: Always reject",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Near Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_near_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Delivery",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Wait Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_wait_guests",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Select Intercom Mode",
|
||
"room": null,
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.intercom_mode",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "intercom_door_opened",
|
||
"automation": "- id: intercom_door_opened\n alias: 'Intercom: Door opened'\n trigger:\n - platform: state\n entity_id: sensor.intercom_status\n to: Door opened\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.intercom_door_opened',\\n \\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 60 }}\\n\"\n action:\n - service: media_player.media_pause\n entity_id: group.yandex_stations\n - if:\n - condition: state\n entity_id: media_player.atv\n state: playing\n then:\n - service: media_player.media_pause\n entity_id: media_player.atv\n - service: scene.create\n data:\n scene_id: intercom_door_opened\n snapshot_entities:\n - light.bathroom_main\n - light.kitchen_worktop\n - light.living_room_backlight_1\n - light.living_room_backlight_6\n - light.living_room_tv\n - light.workshop_main\n - repeat:\n for_each:\n - light.bathroom_main\n - light.kitchen_worktop\n - light.living_room_backlight_1\n - light.living_room_backlight_6\n - light.living_room_tv\n - light.workshop_main\n sequence:\n - service: script.turn_on\n entity_id: script.flash_light\n data:\n variables:\n entity_id: '{{ repeat.item }}'\n rgb_color: \"{% if repeat.item == 'light.living_room_backlight' %}\\n [0,\\\n \\ 86, 255]\\n{% else %}\\n []\\n{% endif %}\\n\"\n - delay:\n seconds: 2\n milliseconds: 200\n - service: scene.turn_on\n entity_id: scene.intercom_door_opened\n data:\n transition: 0.6\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.scene_wait_guests\n state: 'on'\n sequence:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: \"{{ [\\n 'Гости уже почти на пороге',\\n 'Впустила гостей в подъезд',\\n\\\n \\ 'Гости вот-вот зайдут, беги встречать',\\n ]|random\\n}}\\n\"\n - conditions:\n - condition: state\n entity_id: input_boolean.scene_delivery\n state: 'on'\n sequence:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: \"{{ [\\n 'Курьер проник в подьезд, срочно надевай труселя и накрывай\\\n \\ стол',\\n 'Курьер в лифте, наливай напитки!',\\n 'Курьер уже здесь,\\\n \\ карауль дверь',\\n 'Как же вкусно пахнет! Курьер почти у двери!'\\n\\\n \\ ]|random\\n}}\\n\"\n - conditions:\n - condition: template\n value_template: '{{ state_attr(''input_datetime.scene_delivery_scheduled_from'',\n ''timestamp'') <= as_timestamp(now()) <= state_attr(''input_datetime.scene_delivery_scheduled_to'',\n ''timestamp'') }}\n\n '\n sequence:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: \"Открыла дверь курьеру для плановой доставки, готовься встречать {%\\\n \\ if is_state('person.dextor', 'Near Home') %}\\n , а может это и Тёмушка\\n\\\n {% endif %}\\n\"\n - conditions:\n - condition: state\n entity_id: person.dextor\n state: Near Home\n sequence:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: \"{{ [\\n 'Кажется Тёмушка поднимается, скорее беги встречать',\\n\\\n \\ 'Тёмушка поднимается, он будет рад встретить тебя у двери',\\n \\\n \\ 'Вот-вот зайдёт Тёмушка, и это очень здорово!',\\n ]|random\\n}}\\n\"\n - conditions:\n - condition: state\n entity_id: person.layma\n state: Near Home\n sequence:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: Жёнушка на пороге, готовься встречать\n default:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: \"{{ [\\n 'Незванные гости на пороге, готовься!',\\n 'Скоро позвонят\\\n \\ в дверь, самое время надеть труселя',\\n 'Я кого-то впустила в подъезд,\\\n \\ скоро узнаем кого'\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Main Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Scene Delivery Scheduled From",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.scene_delivery_scheduled_from",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Scene Delivery Scheduled To",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.scene_delivery_scheduled_to",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Workshop Main",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.workshop_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Worktop",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_worktop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Intercom Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.intercom_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Delivery",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_delivery",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Wait Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_wait_guests",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight 1",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight_1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight 6",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight_6",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Person Dextor",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Person Layma",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.layma",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Yandex Stations",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.yandex_stations",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Intercom Door Opened Scene",
|
||
"room": "Living Room",
|
||
"type": "scene",
|
||
"id": {
|
||
"entity_id": "scene.intercom_door_opened",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Flash Light",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.flash_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'iOS: Notification / DND announce'",
|
||
"automation": "- alias: 'iOS: Notification / DND announce'\n trigger:\n - platform: event\n event_type: ios.action_fired\n event_data:\n actionName: 'Анонс: Не могу подойти'\n action:\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: Слышу тебя, но подойти не могу. Мур-мур.",
|
||
"config": [
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ios_intercom_mode_accept",
|
||
"automation": "- id: ios_intercom_mode_accept\n alias: 'iOS: Intercom mode - Accept'\n trigger:\n - platform: event\n event_type: ios.action_fired\n event_data:\n actionName: Открыть домофон\n action:\n - service: select.select_option\n entity_id: select.intercom_mode\n data:\n option: Always accept",
|
||
"config": [
|
||
{
|
||
"name": "Select Intercom Mode",
|
||
"room": null,
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.intercom_mode",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ironing_board_turn_off_occupance_living_room",
|
||
"automation": "- id: ironing_board_turn_off_occupance_living_room\n alias: 'Ironing Board: Turn off (Occupancy / Living Room)'\n trigger:\n - platform: state\n entity_id: binary_sensor.living_room_occupancy\n to: 'off'\n for:\n minutes: 18\n condition:\n - condition: state\n entity_id: switch.ironing_board_socket\n state: 'on'\n - condition: state\n entity_id: input_select.ironing_board_room\n state: Living Room\n action:\n - action: switch.turn_off\n entity_id: switch.ironing_board_socket",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Living Room Occupancy",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Ironing Board Room",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_board_room",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ironing_board_turn_off_idle_living_room",
|
||
"automation": "- id: ironing_board_turn_off_idle_living_room\n alias: 'Ironing Board: Turn off (Idle / Living Room)'\n trigger:\n - platform: state\n entity_id: switch.ironing_board_socket\n to: 'on'\n condition:\n - condition: state\n entity_id: binary_sensor.living_room_motion\n state:\n - 'off'\n - unavailable\n - condition: state\n entity_id: input_select.ironing_board_room\n state: Living Room\n action:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.living_room_motion\n to: 'on'\n timeout:\n minutes: 10\n continue_on_timeout: true\n - if:\n - condition: state\n entity_id: binary_sensor.living_room_motion\n state:\n - 'off'\n - unavailable\n then:\n - action: switch.turn_off\n entity_id: switch.ironing_board_socket",
|
||
"config": [
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Ironing Board Room",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_board_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Motion",
|
||
"room": "Living Room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ironing_board_turn_off_occupancy_bedroom",
|
||
"automation": "- id: ironing_board_turn_off_occupancy_bedroom\n alias: 'Ironing Board: Turn off (Occupancy / Bedroom)'\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_any_occupancy\n to: 'off'\n for:\n minutes: 18\n condition:\n - condition: state\n entity_id: switch.ironing_board_socket\n state: 'on'\n - condition: state\n entity_id: input_select.ironing_board_room\n state: Bedroom\n action:\n - action: switch.turn_off\n entity_id: switch.ironing_board_socket",
|
||
"config": [
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Any Occupancy",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_any_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Ironing Board Room",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_board_room",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ironing_board_turn_off_idle_bedroom",
|
||
"automation": "- id: ironing_board_turn_off_idle_bedroom\n alias: 'Ironing Board: Turn off (Idle / Bedroom)'\n trigger:\n - platform: state\n entity_id: switch.ironing_board_socket\n to: 'on'\n condition:\n - condition: state\n entity_id: binary_sensor.bedroom_motion\n state:\n - 'off'\n - unavailable\n - condition: state\n entity_id: input_select.ironing_board_room\n state: Bedroom\n action:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion\n to: 'on'\n timeout:\n minutes: 10\n continue_on_timeout: true\n - if:\n - condition: state\n entity_id: binary_sensor.bedroom_motion\n state:\n - 'off'\n - unavailable\n then:\n - action: switch.turn_off\n entity_id: switch.ironing_board_socket",
|
||
"config": [
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Motion",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Ironing Board Room",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_board_room",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ironing_board_turn_off_no_one_home",
|
||
"automation": "- id: ironing_board_turn_off_no_one_home\n alias: 'Ironing Board: Turn off (no one home)'\n trigger:\n - platform: state\n entity_id: switch.ironing_board_socket\n to: 'on'\n - platform: time_pattern\n minutes: /1\n - platform: state\n entity_id: binary_sensor.anyone_home\n to: 'off'\n condition:\n - condition: state\n entity_id: switch.ironing_board_socket\n state: 'on'\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'off'\n action:\n - action: switch.turn_off\n entity_id: switch.ironing_board_socket",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ironing_board_turn_off_overload",
|
||
"automation": "- id: ironing_board_turn_off_overload\n alias: 'Ironing Board: Turn off (overload)'\n mode: restart\n trigger:\n - platform: numeric_state\n entity_id: sensor.ironing_board_socket_power\n above: 2600\n - platform: numeric_state\n entity_id: sensor.ironing_board_socket_power\n above: 2590\n condition:\n - condition: state\n entity_id: switch.ironing_board_socket\n state: 'on'\n action:\n - action: switch.turn_off\n entity_id: switch.ironing_board_socket\n - service: script.turn_on\n entity_id: script.yandex_station_tts\n data:\n variables:\n target: media_player.{{ states('input_select.ironing_board_room')|lower|replace('\n ', '_') }}_station\n text: Выключи утюг",
|
||
"config": [
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Ironing Board Room",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.ironing_board_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Ironing Board Socket Power",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ironing_board_socket_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ironing_board_alarm",
|
||
"automation": "- id: ironing_board_alarm\n alias: 'Ironing Board: Alarm'\n trigger:\n - platform: state\n entity_id: switch.ironing_board_socket\n to: 'on'\n for:\n minutes: 50\n action:\n - action: notify.dextor\n data:\n message: 🪠 Гладильная доска долго включена, вряд ли так должно быть\n continue_on_error: true\n - action: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: Гладильная доска долго включена, вряд ли так должно быть",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_turn_on",
|
||
"automation": "- id: kitchen_worktop_button_turn_on\n alias: 'Kitchen Worktop Button: Turn on'\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_short_press\n subtype: turn_on\n actions:\n - if:\n - condition: state\n entity_id: light.kitchen_worktop\n state: 'off'\n then:\n - action: light.turn_on\n entity_id: light.kitchen_worktop\n data:\n brightness_pct: 100\n else:\n - action: light.turn_off\n entity_id: light.kitchen_worktop",
|
||
"config": [
|
||
{
|
||
"name": "Light Kitchen Worktop",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_worktop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_dim_down_short_press_day",
|
||
"automation": "- id: kitchen_worktop_button_dim_down_short_press_day\n alias: 'Kitchen Worktop Button: Dim down short press (Day)'\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_short_press\n subtype: dim_down\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n actions:\n - action: script.turn_on\n entity_id: script.kitchen_worktop_right_light_ack_flash\n - action: script.yandex_station_tts\n data:\n target:\n - media_player.living_room_station\n - media_player.workshop_station\n type: attention\n pause_atv: true\n text: \"{{ [\\n 'требуется помощь на кухне',\\n 'скорее подойди на кухню',\\n\\\n \\ 'тебя очень ждут на кухне',\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Right Light ACK Flash",
|
||
"room": "Kitchen",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.kitchen_worktop_right_light_ack_flash",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_dim_down_short_press_night",
|
||
"automation": "- id: kitchen_worktop_button_dim_down_short_press_night\n alias: 'Kitchen Worktop Button: Dim down short press (Night)'\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_short_press\n subtype: dim_down\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n actions:\n - action: light.turn_on\n entity_id: light.kitchen_worktop\n data:\n brightness_pct: 20",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Worktop",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_worktop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_dim_up_short_press",
|
||
"automation": "- id: kitchen_worktop_button_dim_up_short_press\n alias: 'Kitchen Worktop Button: Dim up short press'\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_short_press\n subtype: dim_up\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n actions:\n - action: script.turn_on\n entity_id: script.kitchen_worktop_right_light_ack_flash\n - action: script.yandex_station_tts\n data:\n target:\n - media_player.living_room_station\n - media_player.workshop_station\n type: attention\n pause_atv: true\n text: \"{{ [\\n 'еда почти готова, время накрывать стол',\\n 'еда на подходе,\\\n \\ скоро будем кушать',\\n 'бросай всё и давай поедим!',\\n ]|random\\n\\\n }}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Right Light ACK Flash",
|
||
"room": "Kitchen",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.kitchen_worktop_right_light_ack_flash",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_dim_up_long_press",
|
||
"automation": "- id: kitchen_worktop_button_dim_up_long_press\n alias: 'Kitchen Worktop Button: Dim up long press'\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_long_press\n subtype: dim_up\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n actions:\n - action: script.turn_on\n entity_id: script.kitchen_worktop_right_light_ack_flash\n - event: kitchen_worktop_button_brightness_up_hold",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Right Light ACK Flash",
|
||
"room": "Kitchen",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.kitchen_worktop_right_light_ack_flash",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_left_short_press",
|
||
"automation": "- id: kitchen_worktop_button_left_short_press\n alias: 'Kitchen Worktop Button: Left short press'\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_short_press\n subtype: left\n conditions:\n - condition: state\n entity_id: person.dextor\n state: home\n actions:\n - action: input_number.increment\n entity_id: input_number.humidifiers_water_consumption\n - action: script.kitchen_worktop_right_light_ack_flash\n - action: script.kitchen_worktop_right_light_ack_flash\n - delay:\n seconds: 10",
|
||
"config": [
|
||
{
|
||
"name": "Person Dextor",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Humidifiers Water Consumption",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.humidifiers_water_consumption",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Right Light ACK Flash",
|
||
"room": "Kitchen",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.kitchen_worktop_right_light_ack_flash",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_left_long_press",
|
||
"automation": "- id: kitchen_worktop_button_left_long_press\n alias: 'Kitchen Worktop Button: Left long press'\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_long_press\n subtype: left\n actions:\n - action: input_select.select_next\n entity_id: input_select.dishwasher_status",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Dishwasher Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dishwasher_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_right_short_press",
|
||
"automation": "- id: kitchen_worktop_button_right_short_press\n alias: 'Kitchen Worktop Button: Right short press'\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_short_press\n subtype: right\n conditions:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n actions:\n - if:\n - condition: state\n entity_id: timer.rice_cooking\n state: active\n then:\n - action: timer.pause\n entity_id: timer.rice_cooking\n - action: timer.start\n entity_id: timer.rice_cooking\n - service: script.yandex_station_tts\n data:\n target: media_player.kitchen_station\n text: 'Осталось примерно {{ state_attr(''timer.rice_cooking'', ''remaining'').split('':'')[1]\n }} мин. до полной готовности риса\n\n '\n else:\n - action: timer.start\n entity_id:\n - timer.rice_cooking\n - timer.rice_almost_ready\n - action: script.turn_on\n entity_id: script.kitchen_worktop_right_light_ack_flash",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Kitchen Station",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Rice Cooking",
|
||
"room": "kitchen",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.rice_cooking",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Rice Almost Ready",
|
||
"room": "kitchen",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.rice_almost_ready",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Right Light ACK Flash",
|
||
"room": "Kitchen",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.kitchen_worktop_right_light_ack_flash",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_worktop_button_right_long_press",
|
||
"automation": "- id: kitchen_worktop_button_right_long_press\n alias: 'Kitchen Worktop Button: Right long press'\n triggers:\n - trigger: device\n domain: zha\n device_id: 7abc62119d4a89a29846de67a65da2f8\n type: remote_button_long_press\n subtype: right\n actions:\n - action: timer.cancel\n entity_id: timer.rice_cooking\n - action: script.turn_on\n entity_id: script.kitchen_worktop_right_light_ack_flash",
|
||
"config": [
|
||
{
|
||
"name": "Kitchen Worktop Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "7abc62119d4a89a29846de67a65da2f8"
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Rice Cooking",
|
||
"room": "kitchen",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.rice_cooking",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Kitchen Worktop Right Light ACK Flash",
|
||
"room": "Kitchen",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.kitchen_worktop_right_light_ack_flash",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "leave_kombucha_alone",
|
||
"automation": "- id: leave_kombucha_alone\n alias: Leave Kombucha Alone\n trigger:\n - platform: state\n entity_id: binary_sensor.closet_door\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.leave_kombucha_alone',\\n \\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 600 }}\\n\"\n action:\n - service: script.yandex_station_tts\n data:\n target: media_player.kitchen_station\n type: attention\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'хватит смотреть на\\\n \\ гриб, с ним всё хорошо',\\n 'гриб в полном порядке, цветёт и пахнет',\\n\\\n \\ 'будешь часто смотреть, гриб не всплывёт',\\n 'с грибом всё стабильно,\\\n \\ сахар ням-ням',\\n 'грибы любят покой и темноту, хватит зыркать',\\n \\\n \\ 'нееет, опять яркий свет, дай грибу спокойно расти',\\n 'нетерпится увидеть\\\n \\ гриб? всему своё время',\\n 'гриб спешки не любит, не нужно его постоянно\\\n \\ дёргать',\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Closet Door",
|
||
"room": "closet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.closet_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Kitchen Station",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "light_control_turn_on",
|
||
"automation": "- id: light_control_turn_on\n alias: 'Light Control: Turn on'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Включи управление светом\n - platform: state\n entity_id: input_select.home_mode\n to: Day\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.light_control",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "light_control_turn_off",
|
||
"automation": "- id: light_control_turn_off\n alias: 'Light Control: Turn off'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Не выключай свет\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.light_control",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_dinner_table_button_single_press",
|
||
"automation": "- id: living_room_dinner_table_button_single_press\n alias: 'Living Room Dinner Table Button: Single press'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 9c3b7479025f7d66f4dd23a779acfd86\n type: action\n subtype: single\n condition:\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n action:\n - service: script.tv_press_button\n data:\n button: play",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Dinner Table Button",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "9c3b7479025f7d66f4dd23a779acfd86"
|
||
}
|
||
},
|
||
{
|
||
"name": "TV Press Button",
|
||
"room": "Living Room",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.tv_press_button",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_dinner_table_button_double_press",
|
||
"automation": "- id: living_room_dinner_table_button_double_press\n alias: 'Living Room Dinner Table Button: Double press'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 9c3b7479025f7d66f4dd23a779acfd86\n type: action\n subtype: double\n condition:\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n action:\n - service: script.tv_press_button\n data:\n button: left",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Dinner Table Button",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "9c3b7479025f7d66f4dd23a779acfd86"
|
||
}
|
||
},
|
||
{
|
||
"name": "TV Press Button",
|
||
"room": "Living Room",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.tv_press_button",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_dinner_table_button_triple_press",
|
||
"automation": "- id: living_room_dinner_table_button_triple_press\n alias: 'Living Room Dinner Table Button: Triple press'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 9c3b7479025f7d66f4dd23a779acfd86\n type: action\n subtype: triple\n condition:\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n action:\n - service: script.tv_press_button\n data:\n button: enter",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Dinner Table Button",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "9c3b7479025f7d66f4dd23a779acfd86"
|
||
}
|
||
},
|
||
{
|
||
"name": "TV Press Button",
|
||
"room": "Living Room",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.tv_press_button",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_dinner_table_button_hold",
|
||
"automation": "- id: living_room_dinner_table_button_hold\n alias: 'Living Room Dinner Table Button: Hold'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 9c3b7479025f7d66f4dd23a779acfd86\n type: action\n subtype: hold\n action:\n - event: living_room_dinner_table_button_hold",
|
||
"config": [
|
||
{
|
||
"name": "Living Room Dinner Table Button",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "9c3b7479025f7d66f4dd23a779acfd86"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_light_switch_single_right",
|
||
"automation": "- id: living_room_light_switch_single_right\n alias: 'Living Room Light Switch: Single right'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: e0a2386c0fbe8ec9b50b6bc773b4d635\n type: action\n subtype: single_right\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: light.living_room_backlight\n state: 'on'\n - condition: state\n entity_id: light.living_room_backlight\n attribute: color_mode\n state: color_temp\n - condition: numeric_state\n entity_id: light.living_room_backlight\n attribute: color_temp_kelvin\n below: 4000\n sequence:\n - service: light.turn_off\n entity_id: light.living_room_backlight\n - conditions:\n - condition: state\n entity_id: light.living_room_backlight\n state: 'on'\n - condition: state\n entity_id: light.living_room_backlight\n attribute: color_mode\n state: color_temp\n - condition: numeric_state\n entity_id: light.living_room_backlight\n attribute: color_temp_kelvin\n above: 4000\n sequence:\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 100\n color_temp_kelvin: 2700\n default:\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n then:\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 50\n rgb_color:\n - 255\n - 0\n - 0\n else:\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: \"{% if is_state('binary_sensor.dim_light', 'on') %}\\n 40\\n\\\n {% else %}\\n 100\\n{% endif %}\\n\"\n color_temp_kelvin: 4200",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Light Switch",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "e0a2386c0fbe8ec9b50b6bc773b4d635"
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_light_switch_double_right",
|
||
"automation": "- id: living_room_light_switch_double_right\n alias: 'Living Room Light Switch: Double right'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: e0a2386c0fbe8ec9b50b6bc773b4d635\n type: action\n subtype: double_right\n action:\n - if:\n - condition: state\n entity_id: light.living_room_tv\n state: 'off'\n then:\n - service: light.turn_on\n entity_id: light.living_room_tv\n data:\n brightness_pct: 100\n else:\n - service: light.turn_off\n entity_id: light.living_room_tv",
|
||
"config": [
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Light Switch",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "e0a2386c0fbe8ec9b50b6bc773b4d635"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_heater_button_turn_on",
|
||
"automation": "- id: living_room_heater_button_turn_on\n alias: 'Living Room Heater Button: Turn on'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 624d122c903dda63a2c71e9d636f4a0c\n type: action\n subtype: 'on'\n action:\n - action: switch.turn_on\n entity_id: switch.living_room_heater",
|
||
"config": [
|
||
{
|
||
"name": "Living Room Heater Button",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "624d122c903dda63a2c71e9d636f4a0c"
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Heater",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_heater",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_heater_button_turn_off",
|
||
"automation": "- id: living_room_heater_button_turn_off\n alias: 'Living Room Heater Button: Turn off'\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 624d122c903dda63a2c71e9d636f4a0c\n type: action\n subtype: 'off'\n action:\n - action: switch.turn_off\n entity_id: switch.living_room_heater",
|
||
"config": [
|
||
{
|
||
"name": "Living Room Heater Button",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "624d122c903dda63a2c71e9d636f4a0c"
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Heater",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_heater",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_heater_button_hold_down",
|
||
"automation": "- id: living_room_heater_button_hold_down\n alias: 'Living Room Heater Button: Hold down'\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 624d122c903dda63a2c71e9d636f4a0c\n type: action\n subtype: brightness_move_down\n actions:\n - event: living_room_heater_button_hold_down",
|
||
"config": [
|
||
{
|
||
"name": "Living Room Heater Button",
|
||
"room": "living_room",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "624d122c903dda63a2c71e9d636f4a0c"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_tv_light_turn_on",
|
||
"automation": "- id: living_room_tv_light_turn_on\n alias: 'Living Room TV Light: Turn on'\n trigger:\n - platform: state\n entity_id: media_player.tv\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: light.living_room_tv\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.living_room_tv\n data:\n brightness_pct: 45",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_tv_light_turn_off",
|
||
"automation": "- id: living_room_tv_light_turn_off\n alias: 'Living Room TV Light: Turn off'\n trigger:\n - platform: state\n entity_id: media_player.tv\n to: 'off'\n condition:\n - condition: numeric_state\n entity_id: sensor.illuminance_south_side\n above: 500\n - condition: state\n entity_id: binary_sensor.winter_bright_light\n state: 'off'\n - condition: state\n entity_id:\n - input_boolean.light_control\n - light.living_room_tv\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.living_room_tv",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Illuminance South Side",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.illuminance_south_side",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Winter Bright Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.winter_bright_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "front_door_locked",
|
||
"automation": "- id: front_door_locked\n alias: 'Front Door: Locked'\n mode: restart\n trigger:\n - platform: state\n entity_id: lock.front_door\n from: unlocked\n to: locked\n action:\n - service: script.turn_on\n entity_id: script.porch_lock_light_flash\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.anyone_home\n to: 'off'\n timeout:\n minutes: 10\n continue_on_timeout: false\n - service: light.turn_off\n entity_id: group.home_lights\n continue_on_error: true\n - service: media_player.turn_off\n entity_id:\n - media_player.tv\n - media_player.bedroom_station\n - media_player.living_room_station\n - media_player.workshop_station\n - media_player.kitchen_station\n continue_on_error: true",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Bedroom Station",
|
||
"room": "bedroom",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.bedroom_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Kitchen Station",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Home Lights",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.home_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Porch Lock Light Flash",
|
||
"room": "Porch",
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.porch_lock_light_flash",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "front_door_unlocked",
|
||
"automation": "- id: front_door_unlocked\n alias: 'Front Door: Unlocked'\n trigger:\n - platform: state\n entity_id: lock.front_door\n from: locked\n to: unlocked\n action:\n - service: timer.start\n entity_id: timer.front_door_unlocked",
|
||
"config": [
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Front Door Unlocked",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.front_door_unlocked",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "front_door_unlock",
|
||
"automation": "- id: front_door_unlock\n alias: 'Front Door: Unlock'\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: sensor.intercom_status\n to: Door opened\n condition:\n - condition: state\n entity_id: lock.front_door\n state: locked\n - condition: state\n entity_id: input_boolean.scene_wait_guests\n state: 'on'\n action:\n - service: lock.unlock\n entity_id: lock.front_door",
|
||
"config": [
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Intercom Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.intercom_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Wait Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_wait_guests",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "porch_door_unlock",
|
||
"automation": "- id: porch_door_unlock\n alias: 'Porch Door: Unlock'\n mode: restart\n trigger:\n - platform: state\n entity_id: sensor.intercom_status\n to: Door opened\n condition:\n - condition: state\n entity_id: lock.porch_door\n state: locked\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.anyone_near_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.scene_wait_guests\n state: 'on'\n action:\n - service: lock.unlock\n entity_id: lock.porch_door\n - delay:\n minutes: 7\n - if:\n - condition: state\n entity_id: lock.porch_door\n state: unlocked\n - condition: state\n entity_id: binary_sensor.porch_door\n state: 'off'\n then:\n - service: lock.lock\n entity_id: lock.porch_door",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Porch Door",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Porch Door",
|
||
"room": "porch",
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Near Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_near_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Intercom Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.intercom_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Wait Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_wait_guests",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "porch_door_presence_unlock",
|
||
"automation": "- id: porch_door_presence_unlock\n alias: 'Porch Door: Presence Unlock'\n mode: restart\n triggers:\n - trigger: state\n entity_id:\n - person.dextor\n - person.layma\n to: home\n conditions:\n - condition: state\n entity_id: lock.porch_door\n state: locked\n - condition: state\n entity_id: timer.anyone_near_home_recently\n state: active\n actions:\n - action: lock.unlock\n entity_id: lock.porch_door\n - delay:\n minutes: 3\n - if:\n - condition: state\n entity_id: lock.porch_door\n state: unlocked\n - condition: state\n entity_id: binary_sensor.porch_door\n state: 'off'\n then:\n - service: lock.lock\n entity_id: lock.porch_door",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Porch Door",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Porch Door",
|
||
"room": "porch",
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Anyone Near Home Recently",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.anyone_near_home_recently",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Person Dextor",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Person Layma",
|
||
"room": null,
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.layma",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_meal_turn_on",
|
||
"automation": "- id: scene_meal_turn_on\n alias: 'Scene Meal: Turn on'\n trigger:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Время ужинать\n - trigger: event\n event_type: kitchen_worktop_button_brightness_up_hold\n - trigger: event\n event_type: living_room_dinner_table_button_hold\n action:\n - service: light.turn_on\n entity_id: light.living_room_tv\n data:\n brightness_pct: 100\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 100\n color_temp_kelvin: 4500\n - service: script.yandex_station_tts\n data:\n target: all\n text: \"{{ [\\n 'Приятного аппетита',\\n 'Кушайте много, кушайте вкусно',\\n\\\n \\ 'Вкуснятина! Давай скорее кушать',\\n ]|random\\n}}\\n\"\n - service: input_boolean.turn_on\n entity_id: input_boolean.scene_meal\n - if:\n - condition: state\n entity_id: media_player.tv\n state: 'off'\n then:\n - service: media_player.turn_on\n entity_id:\n - media_player.tv\n - media_player.atv\n - service: light.turn_off\n entity_id:\n - light.living_room_main\n - group.aux_lights\n - group.bedroom_lights",
|
||
"config": [
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Bedroom Lights",
|
||
"room": "bedroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bedroom_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Meal",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_meal",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Aux Lights",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.aux_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_meal_turn_off",
|
||
"automation": "- id: scene_meal_turn_off\n alias: 'Scene Meal: Turn off'\n trigger:\n - platform: state\n entity_id: media_player.tv\n to: 'off'\n - platform: state\n entity_id: input_boolean.scene_meal\n to: 'on'\n for:\n minutes: 52\n condition:\n - condition: state\n entity_id: input_boolean.scene_meal\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_meal",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Meal",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_meal",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "rice_cooking_status",
|
||
"automation": "- id: rice_cooking_status\n alias: 'Rice Cooking: Status'\n triggers:\n - trigger: event\n event_type: yandex_intent\n event_data:\n text: Что с рисоваркой\n actions:\n - if:\n - condition: state\n entity_id: timer.rice_cooking\n state: active\n then:\n - action: timer.pause\n entity_id: timer.rice_cooking\n - action: timer.start\n entity_id: timer.rice_cooking\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{% if is_state('timer.rice_cooking', 'idle') %}\\n Рисоварка не запущена\\n\\\n {% else %}\\n Осталось примерно {{ state_attr('timer.rice_cooking', 'remaining').split(':')[1]\\\n \\ }} мин. до полной готовности\\n{% endif %}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Timer Rice Cooking",
|
||
"room": "kitchen",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.rice_cooking",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "rice_almost_ready_alert",
|
||
"automation": "- id: rice_almost_ready_alert\n alias: Rice almost ready alert\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.rice_almost_ready\n conditions:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n actions:\n - action: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: \"{{ [\\n 'рис почти готов',\\n 'рис на подходе, давай накрывать стол',\\n\\\n \\ 'пахнет рисом на всю кухню, он почти готов',\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Rice Almost Ready",
|
||
"room": "kitchen",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.rice_almost_ready",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_movie_turn_on",
|
||
"automation": "- id: scene_movie_turn_on\n alias: 'Scene Movie: Turn on'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Посмотрим кино\n action:\n - if:\n - condition: state\n entity_id: binary_sensor.living_room_balcony_door\n state: 'on'\n then:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Давай, только закрой дверь на балкон\n - condition: state\n entity_id: binary_sensor.living_room_balcony_door\n state: 'off'\n - if:\n - condition: state\n entity_id: binary_sensor.evening_time\n state: 'off'\n then:\n - service: cover.close_cover\n entity_id:\n - cover.bedroom\n - cover.workshop\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 23\n rgb_color:\n - 215\n - 150\n - 255\n - service: light.turn_on\n entity_id: light.living_room_tv\n data:\n brightness_pct: 14\n - service: cover.close_cover\n entity_id: cover.living_room\n - if:\n - condition: state\n entity_id: media_player.tv\n state: 'off'\n then:\n - service: media_player.turn_on\n entity_id:\n - media_player.tv\n - media_player.atv\n - service: light.turn_off\n entity_id:\n - group.bedroom_lights\n - group.path_lights\n - group.workshop_lights\n - light.entrance\n - light.hallway\n - light.wardrobe\n - service: input_boolean.turn_on\n entity_id: input_boolean.scene_movie\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Приятного просмотра!\n - service: script.yandex_station_command\n data:\n target: media_player.living_room_station\n command: выключи часы\n - action: select.select_option\n entity_id: select.avr_display_brightness\n data:\n option: Low\n - wait_for_trigger:\n - platform: state\n entity_id: media_player.atv\n to:\n - standby\n - idle\n timeout:\n seconds: 5\n continue_on_timeout: true\n - if:\n - condition: state\n entity_id: media_player.atv\n state:\n - standby\n - idle\n then:\n - service: media_player.select_source\n target:\n entity_id: media_player.atv\n data:\n source: Plex",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Evening Time",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.evening_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Living Room Balcony Door",
|
||
"room": "living_room",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.living_room_balcony_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Workshop",
|
||
"room": "workshop",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.workshop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Path Lights",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.path_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Wardrobe",
|
||
"room": "wardrobe",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.wardrobe",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Workshop Lights",
|
||
"room": "workshop",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.workshop_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Bedroom Lights",
|
||
"room": "bedroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bedroom_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Select AVR Display Brightness",
|
||
"room": "living_room",
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.avr_display_brightness",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station Command",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_command",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_movie_turn_off",
|
||
"automation": "- id: scene_movie_turn_off\n alias: 'Scene Movie: Turn off'\n trigger:\n - platform: event\n id: yandex_intent\n event_type: yandex_intent\n event_data:\n text: Просмотр окончен\n - platform: state\n entity_id: media_player.tv\n to: 'off'\n - platform: state\n entity_id: media_player.atv\n from:\n - playing\n - paused\n to: standby\n - platform: state\n entity_id: media_player.atv\n attribute: app_id\n from: com.plexapp.plex\n condition:\n - condition: state\n entity_id: input_boolean.scene_movie\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_movie\n - if:\n - condition: state\n entity_id: binary_sensor.evening_time\n state: 'off'\n then:\n - service: cover.open_cover\n entity_id:\n - cover.bedroom\n - cover.living_room\n - cover.workshop\n - if:\n - condition: numeric_state\n entity_id: sensor.illuminance_south_side\n below: 500\n then:\n - service: light.turn_on\n entity_id: light.living_room_tv\n data:\n brightness_pct: 45\n transition: 5\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 23\n color_temp_kelvin: 3400\n transition: 5\n - service: script.yandex_station_command\n data:\n target: media_player.living_room_station\n command: включи часы\n - action: select.select_option\n entity_id: select.avr_display_brightness\n data:\n option: High",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Evening Time",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.evening_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Workshop",
|
||
"room": "workshop",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.workshop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Illuminance South Side",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.illuminance_south_side",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Select AVR Display Brightness",
|
||
"room": "living_room",
|
||
"type": "select",
|
||
"id": {
|
||
"entity_id": "select.avr_display_brightness",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station Command",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_command",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_movie_playing",
|
||
"automation": "- id: scene_movie_playing\n alias: 'Scene Movie: Playing'\n trigger:\n - platform: state\n entity_id: media_player.atv\n to: playing\n condition:\n - condition: state\n entity_id: input_boolean.scene_movie\n state: 'on'\n - condition: state\n entity_id: light.living_room_tv\n state: 'on'\n - condition: state\n entity_id: light.living_room_tv\n attribute: brightness\n state: '115'\n action:\n - service: light.turn_off\n entity_id:\n - light.living_room_tv\n - light.living_room_backlight\n data:\n transition: 5",
|
||
"config": [
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_movie_pause",
|
||
"automation": "- id: scene_movie_pause\n alias: 'Scene Movie: Pause'\n trigger:\n - platform: state\n entity_id: media_player.atv\n from: playing\n to: paused\n condition:\n - condition: state\n entity_id: input_boolean.scene_movie\n state: 'on'\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.scene_movie_pause',\\n \\\n \\ 'last_triggered')|default(now() - timedelta(days=1), true)).seconds\\\n \\ > 30 }}\\n\"\n action:\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n brightness_pct: 30\n rgb_color:\n - 255\n - 68\n - 71",
|
||
"config": [
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_movie_resume",
|
||
"automation": "- id: scene_movie_resume\n alias: 'Scene Movie: Resume'\n trigger:\n - platform: state\n entity_id: media_player.atv\n to: playing\n condition:\n - condition: state\n entity_id: input_boolean.scene_movie\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: group.home_lights",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Home Lights",
|
||
"room": null,
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.home_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_overnight_guests_turn_off",
|
||
"automation": "- id: scene_overnight_guests_turn_off\n alias: 'Scene Overnight Guests: Turn off'\n trigger:\n - platform: state\n entity_id: input_boolean.scene_overnight_guests\n to: 'on'\n for:\n hours: 14\n condition:\n - condition: state\n entity_id: input_boolean.scene_overnight_guests\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_overnight_guests",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Scene Overnight Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_overnight_guests",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_path_light_turn_on_night",
|
||
"automation": "- id: bathroom_path_light_turn_on_night\n alias: 'Bathroom Path Light: Turn on (night)'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.bathroom_motion\n - binary_sensor.hallway_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id:\n - group.bathroom_path_lights\n - input_boolean.scene_waking_up\n state: 'off'\n action:\n - service: light.turn_on\n entity_id:\n - light.bathroom_sink_path\n - light.bathroom_toilet_path\n data:\n rgbw_color:\n - 255\n - 0\n - 0\n - 0\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Path Lights Group",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_path_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Sink Path Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_sink_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Toilet Path Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_toilet_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Motion",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bathroom_path_light_turn_off",
|
||
"automation": "- id: bathroom_path_light_turn_off\n alias: 'Bathroom Path Light: Turn off'\n trigger:\n - id: no_occupancy_1\n platform: state\n entity_id: binary_sensor.bathroom_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n - id: no_occupancy_10\n platform: state\n entity_id: binary_sensor.bathroom_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 10\n - id: no_motion\n platform: state\n entity_id: binary_sensor.bathroom_motion\n from: 'on'\n to: 'off'\n for:\n hours: 1\n condition:\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.bathroom_light_control\n - group.bathroom_path_lights\n state: 'on'\n - condition: or\n conditions:\n - condition: trigger\n id: no_motion\n - condition: state\n entity_id: binary_sensor.bathroom_occupancy\n state:\n - 'on'\n - 'off'\n action:\n - service: light.turn_off\n entity_id: group.bathroom_path_lights",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Path Lights Group",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_path_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Motion",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bathroom Light Control",
|
||
"room": "bathroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bathroom_light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Occupancy",
|
||
"room": "Bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_occupancy",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "hallway_path_light_turn_on_day",
|
||
"automation": "- id: hallway_path_light_turn_on_day\n alias: 'Hallway Path Light: Turn on (day)'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.entrance_motion\n to: 'on'\n - platform: state\n entity_id:\n - light.entrance\n - light.hallway\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.illuminance_south_side\n below: 200\n - condition: state\n entity_id: cover.living_room\n state: closed\n - condition: state\n entity_id:\n - light.hallway_path\n - light.entrance\n - light.hallway\n state: 'off'\n action:\n - if:\n - condition: template\n value_template: '{{ states(''light.xmas_hallway_wall'') not in [''unavailable'',\n ''unknown''] }}\n\n '\n then:\n - service: light.turn_on\n entity_id: light.hallway_path\n data:\n brightness_pct: 56\n rgbw_color:\n - 255\n - 105\n - 0\n - 18\n else:\n - service: light.turn_on\n entity_id: light.hallway_path\n data:\n brightness_pct: 25\n rgbw_color:\n - 255\n - 65\n - 0\n - 166",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Illuminance South Side",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.illuminance_south_side",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "hallway_path_light_turn_on_night",
|
||
"automation": "- id: hallway_path_light_turn_on_night\n alias: 'Hallway Path Light: Turn on (night)'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.bedroom_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id: light.hallway_path\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.hallway_path\n data:\n brightness_pct: 3\n rgbw_color:\n - 255\n - 0\n - 0\n - 0",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bedroom Motion",
|
||
"room": "bedroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bedroom_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "hallway_path_light_turn_off",
|
||
"automation": "- id: hallway_path_light_turn_off\n alias: 'Hallway Path Light: Turn off'\n trigger:\n - id: no_motion\n platform: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.entrance_motion\n from: 'on'\n to: 'off'\n for:\n seconds: 30\n - platform: state\n entity_id:\n - light.entrance\n - light.hallway\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: input_select.home_mode\n from: Night\n condition:\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n - or:\n - not:\n - condition: trigger\n id: no_motion\n - condition: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.entrance_motion\n state: 'off'\n - condition: state\n entity_id:\n - input_boolean.light_control\n - light.hallway_path\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.hallway_path",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_path_light_turn_on_day",
|
||
"automation": "- id: kitchen_path_light_turn_on_day\n alias: 'Kitchen Path Light: Turn on (day)'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.entrance_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.illuminance_north_side\n below: 150\n - condition: state\n entity_id: cover.kitchen\n state: closed\n - condition: state\n entity_id:\n - group.kitchen_lights\n - input_boolean.scene_sleepy_mood\n - light.entrance\n - light.hallway\n - light.kitchen_path\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.kitchen_path\n data:\n brightness_pct: 40\n rgbw_color:\n - 255\n - 65\n - 0\n - 133",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Kitchen",
|
||
"room": "kitchen",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.kitchen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Kitchen Lights",
|
||
"room": "kitchen",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.kitchen_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Illuminance North Side",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.illuminance_north_side",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Path",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_path_light_turn_on_night",
|
||
"automation": "- id: kitchen_path_light_turn_on_night\n alias: 'Kitchen Path Light: Turn on (night)'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.entrance_motion\n - binary_sensor.kitchen_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n - condition: state\n entity_id: light.kitchen_path\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.kitchen_path\n data:\n brightness_pct: 20\n rgbw_color:\n - 255\n - 0\n - 0\n - 0",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Motion",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Path",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_path_light_turn_off",
|
||
"automation": "- id: kitchen_path_light_turn_off\n alias: 'Kitchen Path Light: Turn off'\n trigger:\n - id: no_motion\n platform: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.entrance_motion\n - binary_sensor.kitchen_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: group.kitchen_lights\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: input_select.home_mode\n from: Night\n condition:\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'off'\n - or:\n - not:\n - condition: trigger\n id: no_motion\n - condition: state\n entity_id:\n - binary_sensor.hallway_motion\n - binary_sensor.entrance_motion\n - binary_sensor.kitchen_occupancy\n state: 'off'\n - condition: state\n entity_id:\n - input_boolean.light_control\n - light.kitchen_path\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.kitchen_path",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Kitchen Lights",
|
||
"room": "kitchen",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.kitchen_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Motion",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Occupancy",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_occupancy",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Path",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Pills taken",
|
||
"automation": "- id: Pills taken\n alias: Pills taken\n mode: single\n max_exceeded: silent\n trigger:\n - trigger: device\n domain: mqtt\n device_id: 9be5a240d99a0f8b0fc13585cda78fba\n type: action\n subtype: single\n - trigger: device\n domain: mqtt\n device_id: 9be5a240d99a0f8b0fc13585cda78fba\n type: action\n subtype: double\n action:\n - service: input_datetime.set_datetime\n entity_id: input_datetime.pills_takes\n data:\n datetime: '{{ now().strftime(\"%Y-%m-%d %H:%M:%S\") }}'\n - service: script.yandex_station_tts\n data:\n target: media_player.kitchen_station\n text: '<speaker audio=\"alice-sounds-game-boot-1.opus\">\n\n '\n volume: 0.4",
|
||
"config": [
|
||
{
|
||
"name": "Media Player Kitchen Station",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Pills Button",
|
||
"room": "kitchen",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "9be5a240d99a0f8b0fc13585cda78fba"
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Pills Takes",
|
||
"room": "kitchen",
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.pills_takes",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "porch_light_turn_on_front_door",
|
||
"automation": "- id: porch_light_turn_on_front_door\n alias: 'Porch Light: Turn on (front door)'\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id:\n - light.porch\n - light.porch_path_light\n state: 'off'\n action:\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Night\n then:\n - service: light.turn_on\n entity_id: light.porch_path_light\n data:\n rgbw_color:\n - 255\n - 0\n - 0\n - 0\n brightness_pct: 45\n else:\n - service: light.turn_on\n entity_id: light.porch",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch Path Light",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch_path_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "porch_light_turn_on",
|
||
"automation": "- id: porch_light_turn_on\n alias: 'Porch Light: Turn on'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.porch_motion\n - binary_sensor.porch_door\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id:\n - light.porch\n - light.porch_path_light\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.porch",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Door",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch Path Light",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch_path_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Motion",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "porch_light_turn_off",
|
||
"automation": "- id: porch_light_turn_off\n alias: 'Porch Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.porch_motion\n to: 'off'\n for:\n minutes: 10\n - platform: state\n entity_id: binary_sensor.porch_motion\n to: 'off'\n for:\n minutes: 20\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id:\n - light.porch\n - light.porch_path_light\n match: any\n state: 'on'\n action:\n - service: light.turn_off\n entity_id:\n - light.porch\n - light.porch_path_light",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch Path Light",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch_path_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Motion",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_heater_turn_off",
|
||
"automation": "- id: living_room_heater_turn_off\n alias: 'Living Room Heater: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.anyone_home\n from: 'on'\n to: 'off'\n - platform: state\n entity_id: input_boolean.scene_sleepy_mood\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: input_select.home_mode\n from: Day\n - platform: numeric_state\n entity_id: sensor.living_room_temperature\n above: 25.5\n - platform: state\n entity_id:\n - input_boolean.living_room_airing_warm\n - input_boolean.living_room_airing_cold\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: switch.ironing_board_socket\n to: 'on'\n - platform: numeric_state\n entity_id: sensor.sockets_power_supply_power\n above: 3600\n condition:\n - condition: state\n entity_id: switch.living_room_heater\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.living_room_heater",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Living Room Temperature Sensor",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Airing Warm",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_warm",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Airing Cold",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Heater",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_heater",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Sockets Power Supply Power",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.sockets_power_supply_power",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_heater_turn_off_protect",
|
||
"automation": "- id: living_room_heater_turn_off_protect\n alias: 'Living Room Heater: Turn off (protect)'\n trigger:\n - platform: state\n entity_id: switch.living_room_heater\n to: 'on'\n condition:\n - condition: state\n entity_id: switch.ironing_board_socket\n state: 'on'\n action:\n - action: switch.turn_off\n entity_id: switch.living_room_heater",
|
||
"config": [
|
||
{
|
||
"name": "Switch Ironing Board Socket",
|
||
"room": null,
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ironing_board_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Heater",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_heater",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_heater_turn_off_idle",
|
||
"automation": "- id: living_room_heater_turn_off_idle\n alias: 'Living Room Heater: Turn off (idle)'\n trigger:\n - platform: state\n entity_id: switch.living_room_heater\n to: 'on'\n for:\n hours: 6\n - platform: state\n entity_id: switch.living_room_heater\n to: 'on'\n for:\n hours: 7\n condition:\n - condition: state\n entity_id: switch.living_room_heater\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.living_room_temperature\n above: 23\n action:\n - service: switch.turn_off\n entity_id: switch.living_room_heater",
|
||
"config": [
|
||
{
|
||
"name": "Living Room Temperature Sensor",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Living Room Heater",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.living_room_heater",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "power_budget_alert",
|
||
"automation": "- id: power_budget_alert\n alias: Power Budget Alert\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id:\n - sensor.cb_power_supply_power\n - sensor.sockets_power_supply_power\n condition:\n - condition: template\n value_template: '{{ trigger.to_state.state|int(0) >= 3700 }}\n\n '\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.power_budget_alert',\\n \\\n \\ 'last_triggered')|default(now() - timedelta(days=1), true)).total_seconds()\\\n \\ > 600 }}\\n\"\n action:\n - service: notify.dextor\n data:\n message: '⚡️ Превышена мощность по {{ trigger.to_state.entity_id }}: <b>{{ trigger.to_state.state\n }}</b> Вт.\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Sockets Power Supply Power",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.sockets_power_supply_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor CB Power Supply Power",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.cb_power_supply_power",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scooter_charging",
|
||
"automation": "- id: scooter_charging\n alias: 'Scooter: Charging'\n max_exceeded: silent\n trigger:\n - platform: numeric_state\n entity_id: sensor.scooter_charger_socket_power\n above: 30\n for:\n seconds: 15\n action:\n - wait_for_trigger:\n - platform: numeric_state\n entity_id: sensor.scooter_charger_socket_power\n below: 1\n for:\n minutes: 1\n timeout:\n hours: 8\n continue_on_timeout: true\n - service: switch.turn_off\n entity_id: switch.scooter_charger_socket",
|
||
"config": [
|
||
{
|
||
"name": "Sensor Scooter Charger Socket Power",
|
||
"room": "porch",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.scooter_charger_socket_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Scooter Charger Socket",
|
||
"room": "porch",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.scooter_charger_socket",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scooter_charging_socket_turn_off",
|
||
"automation": "- id: scooter_charging_socket_turn_off\n alias: 'Scooter Charging Socket: Turn off'\n trigger:\n - platform: state\n entity_id: switch.scooter_charger_socket\n to: 'on'\n for:\n hours: 10\n - platform: state\n entity_id: binary_sensor.porch_smoke\n to: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.scooter_charger_socket",
|
||
"config": [
|
||
{
|
||
"name": "Switch Scooter Charger Socket",
|
||
"room": "porch",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.scooter_charger_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Smoke",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_smoke",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "all_left_recently_alert",
|
||
"automation": "- id: all_left_recently_alert\n alias: All left recently alert\n trigger:\n platform: state\n entity_id: binary_sensor.anyone_home\n from: 'on'\n to: 'off'\n for: 00:03:00\n condition:\n - condition: state\n entity_id: lock.front_door\n state: unlocked\n action:\n - service: notify.dextor\n data:\n message: 🔑 Никого нет дома, а дверь не закрыта. Страшно?",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "motion_alarm_no_one_home",
|
||
"automation": "- id: motion_alarm_no_one_home\n alias: 'Motion Alarm: No one home'\n trigger:\n - platform: state\n entity_id: binary_sensor.motion_anywhere\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id:\n - binary_sensor.anyone_home\n - binary_sensor.anyone_near_home\n state: 'off'\n - condition: template\n value_template: \"{{ (now() - state_attr('automation.motion_alarm_no_one_home',\\n\\\n \\ 'last_triggered')|default(now() - timedelta(days=1),\\\n \\ true)).total_seconds() > 600 }}\\n\"\n action:\n - service: notify.dextor\n data:\n message: 👮 Движение дома, хотя там никого нет? Нас грабют! Ну или кормят котиков.",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Motion Anywhere",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.motion_anywhere",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Near Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_near_home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "front_door_opened_alert",
|
||
"automation": "- id: front_door_opened_alert\n alias: 'Front Door: Opened alert'\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n from: 'off'\n to: 'on'\n for:\n minutes: 15\n - platform: state\n entity_id: binary_sensor.front_door\n from: 'off'\n to: 'on'\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: lock.front_door\n state: unlocked\n action:\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'Входная дверь не\\\n \\ защелкнута, сходи проверь',\\n 'Мы кого-то ждем? Входная дверь не прикрыта',\\n\\\n \\ 'Прикрой входную дверь, а то украдут!'\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "porch_door_opened_alert",
|
||
"automation": "- id: porch_door_opened_alert\n alias: 'Porch Door: Opened alert'\n trigger:\n - platform: state\n entity_id: binary_sensor.porch_door\n to: 'on'\n for:\n hours: 6\n - platform: state\n entity_id: lock.porch_door\n to: unlocked\n for:\n hours: 6\n action:\n - service: notify.dextor\n data:\n message: 🔑 Дверь на крыльцо долго открыта. Это вообще нормально?!",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Door",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Porch Door",
|
||
"room": "porch",
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.porch_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_sleepy_mood_turn_on",
|
||
"automation": "- id: scene_sleepy_mood_turn_on\n alias: 'Scene Sleepy Mood: Turn on'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Хочется спать\n action:\n - service: input_boolean.turn_on\n entity_id:\n - input_boolean.scene_sleepy_mood\n - input_boolean.bedroom_airing_cold\n - service: media_player.turn_off\n entity_id: media_player.tv\n - service: light.turn_on\n entity_id:\n - light.bedroom_bed\n - light.bedroom_moon\n data:\n rgb_color: \"{{ [\\n [255, 71, 51],\\n [202, 255, 10],\\n [10, 255, 173],\\n \\\n \\ [10, 255, 243],\\n [10, 214, 255],\\n [229, 233, 255],\\n [133, 10, 255],\\n\\\n \\ [173, 10, 255],\\n [255, 10, 231],\\n]|random }}\\n\"\n brightness_pct: 100\n - service: light.turn_on\n entity_id:\n - light.bedroom_cat\n - light.bedroom_string\n data:\n color_temp_kelvin: 2700\n brightness_pct: 12\n - delay:\n milliseconds: 500\n - service: light.turn_on\n entity_id:\n - light.hallway_path\n - light.kitchen_path\n data:\n rgbw_color: '{{ state_attr(''light.bedroom_bed'', ''rgb_color'')|list + [0]\n }}\n\n '\n brightness_pct: 15\n - service: light.turn_on\n entity_id:\n - light.bathroom_sink_path\n - light.bathroom_toilet_path\n data:\n rgbw_color: '{{ state_attr(''light.bedroom_bed'', ''rgb_color'')|list + [0]\n }}\n\n '\n brightness_pct: 75\n - service: light.turn_on\n entity_id: light.living_room_backlight\n data:\n rgb_color: '{{ state_attr(''light.bedroom_bed'', ''rgb_color'')|list }}\n\n '\n brightness_pct: 40\n - service: light.turn_on\n entity_id: light.bathroom_main\n data:\n brightness_pct: 10\n - service: light.turn_on\n entity_id: light.kitchen_worktop\n data:\n brightness_pct: 25\n - if:\n - condition: state\n entity_id: light.wardrobe\n state: 'on'\n then:\n - service: light.turn_on\n entity_id: light.wardrobe\n data:\n brightness_pct: 20\n - if:\n - condition: state\n entity_id: binary_sensor.porch_motion\n state: 'off'\n then:\n - service: light.turn_off\n entity_id: light.porch\n - service: light.turn_off\n entity_id:\n - group.workshop_lights\n - light.bathroom_bathtub\n - light.bathroom_mirror\n - light.bedroom_main\n - light.closet\n - light.entrance\n - light.hallway\n - light.kitchen_main\n - light.kitchen_mood\n - light.living_room_main\n - light.living_room_tv\n - service: cover.close_cover\n entity_id:\n - cover.bedroom\n - cover.kitchen\n - cover.living_room\n - cover.workshop\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{{ ['Хорошая мысль', 'Готовимся к погружению в мир грёз', 'Ммм, подушка\\\n \\ душистая и одеяло пустишое', 'Постелька уже ждет', 'Пойдём в кроватку',\\\n \\ 'Сон - это хорошо']|random }}.\\n{% if states('sensor.chores')|length > 0\\\n \\ %}\\n Только не забудь {{ states('sensor.chores') }}\\n{% endif %}\\n\"\n - if:\n - condition: state\n entity_id: climate.bedroom_ac\n state:\n - 'off'\n - heat_cool\n - cool\n - heat\n - dry\n - condition: numeric_state\n entity_id: sensor.outside_temperature\n above: 10\n - condition: numeric_state\n entity_id: sensor.bedroom_temperature\n above: 24\n then:\n - service: climate.set_temperature\n entity_id: climate.bedroom_ac\n data:\n hvac_mode: cool\n temperature: 23.5\n - if:\n - condition: state\n entity_id: lock.front_door\n state: unlocked\n then:\n - service: lock.lock\n entity_id: lock.front_door\n - if:\n - condition: state\n entity_id: binary_sensor.porch_door\n state: 'off'\n - condition: state\n entity_id: lock.porch_door\n state: unlocked\n then:\n - service: lock.lock\n entity_id: lock.porch_door",
|
||
"config": [
|
||
{
|
||
"name": "Bathroom Mirror Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_mirror",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Main Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Bathtub Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_bathtub",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Sink Path Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_sink_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Toilet Path Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_toilet_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Outside Temperature",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.outside_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom Temperature Sensor",
|
||
"room": "bedroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.bedroom_temperature",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Closet Light",
|
||
"room": "closet",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.closet",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Front Door",
|
||
"room": null,
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Door",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Lock Porch Door",
|
||
"room": "porch",
|
||
"type": "lock",
|
||
"id": {
|
||
"entity_id": "lock.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Cat",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_cat",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Kitchen",
|
||
"room": "kitchen",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.kitchen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Workshop",
|
||
"room": "workshop",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.workshop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Main",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Wardrobe",
|
||
"room": "wardrobe",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.wardrobe",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Moon",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_moon",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom String",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_string",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Workshop Lights",
|
||
"room": "workshop",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.workshop_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Bedroom Airing Cold",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedroom_airing_cold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Worktop",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_worktop",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Mood",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Path",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Motion",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Porch",
|
||
"room": "porch",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.porch",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Main",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Chores",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.chores",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_sleepy_mood_turn_off",
|
||
"automation": "- id: scene_sleepy_mood_turn_off\n alias: 'Scene Sleepy Mood: Turn off'\n trigger:\n - platform: state\n entity_id: light.bedroom_bed\n from: 'on'\n to: 'off'\n - platform: state\n entity_id:\n - light.bedroom_main\n - light.living_room_main\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.scene_sleepy_mood\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_sleepy_mood",
|
||
"config": [
|
||
{
|
||
"name": "Light Bedroom Main",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Bedroom Bed",
|
||
"room": "bedroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bedroom_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "smoke_detected",
|
||
"automation": "- id: smoke_detected\n alias: 'Smoke: Detected'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.kitchen_smoke\n - binary_sensor.hallway_smoke\n - binary_sensor.porch_smoke\n from: 'off'\n to: 'on'\n - platform: state\n id: not_a_drill\n entity_id:\n - binary_sensor.kitchen_smoke\n - binary_sensor.hallway_smoke\n - binary_sensor.porch_smoke\n from: 'off'\n to: 'on'\n for:\n minutes: 1\n action:\n - service: notify.mobile_app_misaka\n data:\n message: '🚨 Обнаружено задымление {{ state_attr(trigger.from_state.entity_id,\n ''alert_text'')|default('''', True) }}\n\n '\n data:\n push:\n sound:\n name: sms-received2.caf\n critical: 1\n volume: 1\n continue_on_error: true\n - service: notify.dextor\n data:\n message: '🚨 Обнаружено задымление {{ state_attr(trigger.from_state.entity_id,\n ''alert_text'')|default('''', True) }}\n\n '\n continue_on_error: true",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Smoke",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_smoke",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Mobile App Misaka",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_misaka",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Smoke",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_smoke",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Smoke",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_smoke",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "smoke_resolved",
|
||
"automation": "- id: smoke_resolved\n alias: 'Smoke: Resolved'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.kitchen_smoke\n - binary_sensor.hallway_smoke\n - binary_sensor.porch_smoke\n from: 'on'\n to: 'off'\n action:\n - service: notify.dextor\n data:\n message: '🎉 Устранено задымление {{ state_attr(trigger.from_state.entity_id,\n ''alert_text'')|default('''', True) }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Smoke",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_smoke",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Smoke",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_smoke",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Hallway Smoke",
|
||
"room": "hallway",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hallway_smoke",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "kitchen_status_light_update",
|
||
"automation": "- id: kitchen_status_light_update\n alias: 'Kitchen: Status light update'\n mode: queued\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.anyone_home\n - binary_sensor.freezer_door\n - binary_sensor.fridge_door\n - binary_sensor.time_to_take_pills\n - input_select.home_mode\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.fridge_door\n state: 'on'\n sequence:\n - service: light.turn_on\n entity_id: light.kitchen_status\n data:\n brightness_pct: 50\n rgbw_color:\n - 7\n - 44\n - 255\n - 0\n effect: None\n transition: 0.5\n - conditions:\n - condition: state\n entity_id: binary_sensor.freezer_door\n state: 'on'\n sequence:\n - service: light.turn_on\n entity_id: light.kitchen_status\n data:\n brightness_pct: 50\n rgbw_color:\n - 255\n - 110\n - 0\n - 0\n effect: None\n transition: 0.5\n - conditions:\n - condition: state\n entity_id:\n - binary_sensor.time_to_take_pills\n - binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n sequence:\n - service: light.turn_on\n entity_id: light.kitchen_status\n data:\n brightness_pct: 100\n rgbw_color:\n - 252\n - 0\n - 181\n - 0\n effect: pulse\n transition: 2\n default:\n - service: light.turn_off\n entity_id: light.kitchen_status\n data:\n transition: 0.5",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Fridge Door",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.fridge_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Freezer Door",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.freezer_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Time To Take Pills",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.time_to_take_pills",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Kitchen Status",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "living_room_tv_status_light_update",
|
||
"automation": "- id: living_room_tv_status_light_update\n alias: 'Living Room TV Status Light: Update'\n mode: queued\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.anyone_home\n - binary_sensor.humidifier_cleanup_notice\n - input_boolean.scene_movie\n - input_select.dryer_status\n - input_select.home_mode\n - input_select.washing_machine_status\n - sensor.living_room_humidifier_water_level\n - sensor.living_room_humidifier_water_tank_level\n - platform: time_pattern\n minutes: /10\n - platform: event\n event_type: living_room_tv_status_light_ack_flash_done\n action:\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.scene_movie\n state: 'off'\n then:\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - input_select.washing_machine_status\n - input_select.dryer_status\n state: Done\n match: any\n sequence:\n - service: light.turn_on\n entity_id:\n - light.living_room_tv_status_left\n - light.living_room_tv_status_right\n data:\n brightness_pct: 100\n rgb_color:\n - 0\n - 225\n - 255\n - conditions:\n - or:\n - condition: state\n entity_id: binary_sensor.humidifier_cleanup_notice\n state: 'on'\n - and:\n - condition: state\n entity_id: input_boolean.living_room_humidifier_control\n state: 'on'\n - condition: state\n entity_id: humidifier.living_room_humidifier\n state:\n - 'on'\n - 'off'\n - or:\n - and:\n - condition: numeric_state\n entity_id: sensor.living_room_humidifier_water_level\n below: 35\n above: 0\n - condition: numeric_state\n entity_id: sensor.living_room_humidifier_water_tank_level\n below: 15\n sequence:\n - if:\n - condition: state\n entity_id: binary_sensor.humidifier_cleanup_notice\n state: 'on'\n then:\n - service: light.turn_on\n entity_id: light.living_room_tv_status_left\n data:\n brightness_pct: 25\n rgb_color:\n - 255\n - 36\n - 0\n else:\n - service: light.turn_on\n entity_id: light.living_room_tv_status_left\n data:\n brightness_pct: 25\n rgb_color:\n - 255\n - 110\n - 0\n - if:\n - condition: state\n entity_id: input_boolean.living_room_humidifier_control\n state: 'on'\n - condition: state\n entity_id: humidifier.living_room_humidifier\n state:\n - 'on'\n - 'off'\n - or:\n - condition: numeric_state\n entity_id: sensor.living_room_humidifier_water_level\n below: 35\n - condition: numeric_state\n entity_id: sensor.living_room_humidifier_water_tank_level\n below: 15\n then:\n - service: light.turn_on\n entity_id: light.living_room_tv_status_right\n data:\n brightness_pct: 25\n rgb_color:\n - 255\n - 110\n - 0\n default:\n - if:\n - condition: state\n entity_id:\n - light.living_room_tv_status_left\n - light.living_room_tv_status_right\n state: 'on'\n match: any\n then:\n - service: light.turn_off\n entity_id:\n - light.living_room_tv_status_left\n - light.living_room_tv_status_right\n else:\n - if:\n - condition: state\n entity_id:\n - light.living_room_tv_status_left\n - light.living_room_tv_status_right\n state: 'on'\n match: any\n then:\n - service: light.turn_off\n entity_id:\n - light.living_room_tv_status_left\n - light.living_room_tv_status_right",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Humidifier Living Room Humidifier",
|
||
"room": "living_room",
|
||
"type": "humidifier",
|
||
"id": {
|
||
"entity_id": "humidifier.living_room_humidifier",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Movie",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_movie",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Living Room Humidifier Control",
|
||
"room": "living_room",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.living_room_humidifier_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Living Room Humidifier Water Level",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_humidifier_water_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Living Room Humidifier Water Tank Level",
|
||
"room": "living_room",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.living_room_humidifier_water_tank_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Humidifier Cleanup Notice",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.humidifier_cleanup_notice",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Status Left",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv_status_left",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room TV Status Right",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv_status_right",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "stove_status_update",
|
||
"automation": "- id: stove_status_update\n alias: Stove Status Update\n trigger:\n - platform: state\n entity_id: sensor.kitchen_stove_power\n condition:\n - condition: template\n value_template: '{{ trigger.to_state.state|int(0) >= 200 }}\n\n '\n action:\n - service: timer.start\n entity_id: timer.stove_running",
|
||
"config": [
|
||
{
|
||
"name": "Sensor Kitchen Stove Power",
|
||
"room": "kitchen",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.kitchen_stove_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Stove Running",
|
||
"room": "kitchen",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.stove_running",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tuya_reload",
|
||
"automation": "- id: tuya_reload\n alias: Tuya reload\n trigger:\n - platform: event\n event_type: system_log_event\n event_data:\n level: ERROR\n name: tuya_iot\n condition:\n - condition: template\n value_template: '{{ ''error while get mqtt config'' in trigger.event.data.message[0]\n }}'\n action:\n - service: logbook.log\n data:\n name: Tuya\n message: reloaded\n - delay:\n seconds: 20\n - service: homeassistant.reload_config_entry\n data:\n entry_id: 96e5c6dadc086fb3268126198c95a21d",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "tv_warming_up",
|
||
"automation": "- id: tv_warming_up\n alias: 'TV: Warming up'\n trigger:\n - trigger: state\n entity_id: media_player.tv\n from: 'off'\n to: 'on'\n action:\n - action: timer.start\n entity_id: timer.tv_warming_up",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer TV Warming Up",
|
||
"room": "living_room",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.tv_warming_up",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tv_switch_to_atv",
|
||
"automation": "- id: tv_switch_to_atv\n alias: 'TV: Switch to ATV'\n trigger:\n - trigger: state\n entity_id: switch.ps5_power\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n - condition: state\n entity_id: media_player.tv\n attribute: source\n state: PS5\n action:\n - action: media_player.select_source\n entity_id: media_player.tv\n data:\n source: ATV\n - delay:\n seconds: 2\n - action: remote.send_command\n entity_id: remote.atv\n data:\n command: wakeup\n - delay:\n seconds: 5\n - action: remote.send_command\n entity_id: remote.atv\n data:\n command: screensaver",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch PS5 Power",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ps5_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Remote ATV",
|
||
"room": "living_room",
|
||
"type": "remote",
|
||
"id": {
|
||
"entity_id": "remote.atv",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tv_switch_to_ps5",
|
||
"automation": "- id: tv_switch_to_ps5\n alias: 'TV: Switch to PS5'\n max_exceeded: silent\n trigger:\n - trigger: state\n entity_id: media_player.tv\n from: 'off'\n to: 'on'\n for:\n seconds: 1\n - trigger: state\n entity_id: switch.ps5_power\n from: 'off'\n to: 'on'\n for:\n seconds: 20\n - trigger: event\n event_type: call_service\n event_data:\n domain: switch\n service: turn_on\n service_data:\n entity_id: switch.ps5_power\n action:\n - if:\n - condition: state\n entity_id: timer.tv_warming_up\n state: active\n then:\n - wait_for_trigger:\n - platform: state\n entity_id: timer.tv_warming_up\n to: idle\n timeout:\n seconds: 25\n continue_on_timeout: true\n - condition: state\n entity_id:\n - media_player.tv\n - switch.ps5_power\n state: 'on'\n - service: media_player.select_source\n entity_id: media_player.living_room_tv_base\n data:\n source: PS5",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch PS5 Power",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.ps5_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer TV Warming Up",
|
||
"room": "living_room",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.tv_warming_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room TV Base",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_tv_base",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tv_set_volume_ps5",
|
||
"automation": "- id: tv_set_volume_ps5\n alias: 'TV: Set volume (PS5)'\n trigger:\n - platform: state\n entity_id: media_player.tv\n attribute: source\n to: PS5\n for:\n seconds: 8\n condition:\n - condition: template\n value_template: '{{ state_attr(''media_player.tv'', ''volume_level'')|float(0)\n >= 0.41 }}\n\n '\n action:\n - if:\n - condition: state\n entity_id: timer.tv_warming_up\n state: active\n then:\n - wait_for_trigger:\n - trigger: state\n entity_id: timer.tv_warming_up\n to: idle\n timeout:\n minutes: 1\n continue_on_timeout: false\n - condition: state\n entity_id: switch.avr_power\n state: 'on'\n - service: media_player.volume_set\n entity_id: media_player.tv\n data:\n volume_level: 0.39",
|
||
"config": [
|
||
{
|
||
"name": "Media Player TV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.tv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch AVR Power",
|
||
"room": "living_room",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.avr_power",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer TV Warming Up",
|
||
"room": "living_room",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.tv_warming_up",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ups_status_alert",
|
||
"automation": "- id: ups_status_alert\n alias: 'UPS Status: Alert'\n trigger:\n - platform: state\n entity_id: sensor.ups_status\n not_from: unavailable\n not_to: unavailable\n - platform: state\n entity_id: sensor.ups_status\n not_from: unavailable\n not_to: unavailable\n for:\n minutes: 5\n condition:\n - not:\n - condition: template\n value_template: '{{ ''Online'' in trigger.from_state.state and ''Online'' in\n trigger.to_state.state }}\n\n '\n action:\n - service: notify.dextor\n data:\n message: '⚡️ Изменён режим работы ИБП: {{ trigger.to_state.state }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor UPS Status",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ups_status",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "home_mode_set_vacation",
|
||
"automation": "- id: home_mode_set_vacation\n alias: 'Home Mode: Set Vacation'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Включи режим отпуска\n action:\n - service: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Vacation\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: Дом переключен в режим отпуск, буду скучать по вам",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "home_mode_to_vacation",
|
||
"automation": "- id: home_mode_to_vacation\n alias: 'Home Mode: To Vacation'\n trigger:\n platform: state\n entity_id: input_select.home_mode\n to: Vacation\n action:\n - service: notify.dextor\n data:\n message: 🌴 Дом перевёден в режим отпуска\n - service: cover.open_cover\n entity_id:\n - cover.bedroom\n - cover.kitchen\n - cover.living_room",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Bedroom",
|
||
"room": "bedroom",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.bedroom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Kitchen",
|
||
"room": "kitchen",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.kitchen",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "home_mode_from_vacation",
|
||
"automation": "- id: home_mode_from_vacation\n alias: 'Home Mode: From vacation'\n trigger:\n platform: state\n entity_id: input_select.home_mode\n from: Vacation\n action:\n - service: notify.dextor\n data:\n message: 😟 Дом возвращён из режима отпуска",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_wait_guests_turn_on",
|
||
"automation": "- id: scene_wait_guests_turn_on\n alias: 'Scene Wait Guests: Turn on'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Ждём гостей\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.scene_wait_guests\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"{{ [\\n 'Хорошо, открою им двери когда придут',\\n 'Поняла, с нетерпением\\\n \\ ждем',\\n 'Отлично, хоть какие-то новые лица'\\n ]|random\\n}}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Scene Wait Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_wait_guests",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_wait_guests_turn_on_light",
|
||
"automation": "- id: scene_wait_guests_turn_on_light\n alias: 'Scene Wait Guests: Turn on lights'\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.scene_wait_guests\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: light.entrance\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.entrance",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Wait Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_wait_guests",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_wait_guests_turn_off",
|
||
"automation": "- id: scene_wait_guests_turn_off\n alias: 'Scene Wait Guests: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: input_boolean.scene_wait_guests\n to: 'on'\n for:\n hours: 1\n condition:\n - condition: state\n entity_id: input_boolean.scene_wait_guests\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_wait_guests",
|
||
"config": [
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Wait Guests",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_wait_guests",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_waking_up_turned_on",
|
||
"automation": "- id: scene_waking_up_turned_on\n alias: 'Scene Waking up: Turned on'\n trigger:\n - platform: state\n entity_id: input_boolean.scene_waking_up\n to: 'on'\n action:\n - service: light.turn_on\n entity_id: light.bathroom_main\n data:\n brightness_pct: 22\n - service: light.turn_off\n entity_id: group.bathroom_path_lights",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Main Light",
|
||
"room": "bathroom",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.bathroom_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bathroom Path Lights Group",
|
||
"room": "bathroom",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.bathroom_path_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_waking_up_turn_off",
|
||
"automation": "- id: scene_waking_up_turn_off\n alias: 'Scene Waking up: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n to: 'on'\n - platform: state\n entity_id: input_select.home_mode\n from: Night\n - platform: state\n entity_id: input_boolean.scene_waking_up\n to: 'on'\n for:\n hours: 2\n condition:\n - condition: state\n entity_id: input_boolean.scene_waking_up\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_waking_up",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_waking_up_turn_off_porch_door",
|
||
"automation": "- id: scene_waking_up_turn_off_porch_door\n alias: 'Scene Waking up: Turn off (porch door)'\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.scene_waking_up\n state: 'on'\n action:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.porch_door\n to: 'off'\n timeout:\n minutes: 3\n - service: input_boolean.turn_off\n entity_id: input_boolean.scene_waking_up",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Scene Waking Up",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_waking_up",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Porch Door",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Front Door",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.front_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_light_turn_on",
|
||
"automation": "- id: wardrobe_light_turn_on\n alias: 'Wardrobe Light: Turn on'\n trigger:\n - platform: state\n entity_id: binary_sensor.wardrobe_door\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.wardrobe_motion\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.light_control\n state: 'on'\n - condition: state\n entity_id: light.wardrobe\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.wardrobe\n data:\n brightness_pct: \"{%- if is_state('binary_sensor.dim_light', 'on') -%}\\n 20\\n\\\n {%- elif is_state('input_select.home_mode', 'Night') -%}\\n 5\\n{%- else -%}\\n\\\n \\ 100\\n{%- endif -%}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Wardrobe",
|
||
"room": "wardrobe",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.wardrobe",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Wardrobe Door",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.wardrobe_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Wardrobe Motion",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.wardrobe_motion",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_light_turn_off",
|
||
"automation": "- id: wardrobe_light_turn_off\n alias: 'Wardorbe Light: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.wardrobe_door\n to: 'off'\n for:\n milliseconds: 500\n - id: no_motion\n platform: state\n entity_id: binary_sensor.wardrobe_motion\n from: 'on'\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.wardrobe_light_control\n - light.wardrobe\n state: 'on'\n action:\n - if:\n - condition: trigger\n id: no_motion\n then:\n - service: light.turn_off\n entity_id: light.wardrobe\n data:\n transition: 10\n else:\n - service: light.turn_off\n entity_id: light.wardrobe",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Wardrobe",
|
||
"room": "wardrobe",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.wardrobe",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Wardrobe Door",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.wardrobe_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Wardrobe Motion",
|
||
"room": "wardrobe",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.wardrobe_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Wardrobe Light Control",
|
||
"room": "wardrobe",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.wardrobe_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_light_control_turn_on",
|
||
"automation": "- id: wardrobe_light_control_turn_on\n alias: 'Wardrobe Light Control: Turn on'\n trigger:\n - platform: state\n entity_id: light.wardrobe\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.wardrobe_light_control\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.wardrobe_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Light Wardrobe",
|
||
"room": "wardrobe",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.wardrobe",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Wardrobe Light Control",
|
||
"room": "wardrobe",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.wardrobe_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "wardrobe_light_control_turn_off",
|
||
"automation": "- id: wardrobe_light_control_turn_off\n alias: 'Wardrobe Light Control: Turn off'\n trigger:\n - platform: event\n event_type: yandex_intent\n event_data:\n text: Не выключай свет в гардеробе\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.wardrobe_light_control",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Wardrobe Light Control",
|
||
"room": "wardrobe",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.wardrobe_light_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "washing_machine_cycle",
|
||
"automation": "- id: washing_machine_cycle\n alias: 'Washing Machine: Cycle'\n max_exceeded: silent\n trigger:\n platform: numeric_state\n entity_id: sensor.washing_machine_power\n above: 5\n for:\n seconds: 15\n condition:\n - condition: state\n entity_id: input_select.washing_machine_status\n state: Idle\n action:\n - service: input_select.select_option\n entity_id: input_select.washing_machine_status\n data:\n option: Running\n - wait_for_trigger:\n - platform: numeric_state\n entity_id: sensor.washing_machine_power\n below: 1\n for:\n minutes: 2\n timeout:\n hours: 4\n continue_on_timeout: true\n - condition: state\n entity_id: input_select.washing_machine_status\n state: Running\n - service: input_select.select_option\n entity_id: input_select.washing_machine_status\n data:\n option: Done",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Washing Machine Power",
|
||
"room": "bathroom",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.washing_machine_power",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "washing_machine_door_open",
|
||
"automation": "- id: washing_machine_door_open\n alias: 'Washing Machine: Door open'\n trigger:\n platform: state\n entity_id: binary_sensor.washing_machine_door\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.washing_machine_status\n state:\n - Running\n - Done\n action:\n - service: input_select.select_option\n entity_id: input_select.washing_machine_status\n data:\n option: Idle",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Washing Machine Door",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.washing_machine_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "washing_machine_idle",
|
||
"automation": "- id: washing_machine_idle\n alias: 'Washing Machine: Idle'\n trigger:\n platform: state\n entity_id: input_select.washing_machine_status\n to: Idle\n action:\n - service: input_number.set_value\n entity_id: input_number.washing_machine_done_alert_count\n data:\n value: 0",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Washing Machine Done Alert Count",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.washing_machine_done_alert_count",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Washing Machine Done Alert Count 2",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.washing_machine_done_alert_count",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "washing_machine_done_alert",
|
||
"automation": "- id: washing_machine_done_alert\n alias: 'Washing Machine: Done alert'\n trigger:\n - platform: time_pattern\n minutes: /32\n - platform: state\n entity_id: input_select.washing_machine_status\n from: Running\n to: Done\n condition:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: input_select.washing_machine_status\n state: Done\n - condition: numeric_state\n entity_id: input_number.washing_machine_done_alert_count\n below: 4\n - condition: template\n value_template: '{{ (now() - states.input_number.washing_machine_done_alert_count.last_changed).total_seconds()\n > 900 }}\n\n '\n action:\n - wait_template: '{{ not is_state(''media_player.atv'', [''playing'', ''pause''])\n }}\n\n '\n timeout:\n minutes: 28\n continue_on_timeout: true\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: \"{{ states.sensor.alert_greeting.state }} {{ [\\n 'Стиральная машина\\\n \\ ждёт тебя, в ней что-то есть.',\\n 'Стиральная машина закончила, пора\\\n \\ достать из неё бельё.',\\n 'Стиральная машина ждет тебя, у неё для тебя\\\n \\ есть подарок.',\\n ]|random\\n}} {% if states('input_number.washing_machine_done_alert_count')|int\\\n \\ == 2 %}\\n Если я ошиблась - закрой дверцу машины и открой снова.\\n{% endif\\\n \\ %} {% if states('input_number.washing_machine_done_alert_count')|int ==\\\n \\ 3 %}\\n Это последнее предупреждение! Мокрое белье останется там навсегда!\\n\\\n {% endif %}\\n\"\n - service: input_number.increment\n entity_id: input_number.washing_machine_done_alert_count",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player ATV",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.atv",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Washing Machine Done Alert Count",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.washing_machine_done_alert_count",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Washing Machine Done Alert Count 2",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.washing_machine_done_alert_count",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "washing_machine_status",
|
||
"automation": "- id: washing_machine_status\n alias: 'Washing Machine: Status'\n trigger:\n platform: event\n event_type: yandex_intent\n event_data:\n text: Что со стиральной машиной\n action:\n - service: script.yandex_station_tts\n data:\n target: '{{ trigger.event.data.get(''entity_id'', ''last'') }}\n\n '\n text: \"Стиралка {% if is_state('input_select.washing_machine_status', 'Running')\\\n \\ %}\\n делает вжух-вжух. Скоро вещи будут чистыми и пахнуть порошочком\\n\\\n {% elif is_state('input_select.washing_machine_status', 'Done') %}\\n закончила,\\\n \\ доставай быстрее из неё белье и закидывай новое\\n{% elif is_state('input_select.washing_machine_status',\\\n \\ 'Idle') %}\\n простаивает без дела. А как там корзина с грязным бельём?\\n\\\n {% endif %}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water_leak_detected",
|
||
"automation": "- id: water_leak_detected\n alias: 'Water leak: Detected'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.kitchen_water_leak\n - binary_sensor.closet_water_leak\n - binary_sensor.bathroom_washing_machine_water_leak\n - binary_sensor.bathroom_sink_water_leak\n - binary_sensor.bathroom_toilet_water_leak\n - binary_sensor.bathroom_hot_water_meter_leak\n - binary_sensor.bathroom_cold_water_meter_leak\n from: 'off'\n to: 'on'\n - platform: state\n entity_id:\n - binary_sensor.kitchen_water_leak\n - binary_sensor.closet_water_leak\n - binary_sensor.bathroom_washing_machine_water_leak\n - binary_sensor.bathroom_sink_water_leak\n - binary_sensor.bathroom_toilet_water_leak\n - binary_sensor.bathroom_hot_water_meter_leak\n - binary_sensor.bathroom_cold_water_meter_leak\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ area_name(trigger.entity_id) == ''Kitchen'' }}\n\n '\n sequence:\n - service: switch.turn_off\n entity_id:\n - switch.kitchen_hot_water_valve\n - switch.kitchen_cold_water_valve\n - switch.dishwasher_socket\n continue_on_error: true\n - conditions:\n - condition: template\n value_template: '{{ area_name(trigger.entity_id) in (''Bathroom'', ''Closet'')\n }}\n\n '\n sequence:\n - service: switch.turn_off\n entity_id:\n - switch.bathroom_hot_water_valve\n - switch.bathroom_cold_water_valve\n - switch.washing_machine_socket\n - switch.water_heater_socket\n continue_on_error: true\n default:\n - service: switch.turn_off\n entity_id:\n - switch.kitchen_hot_water_valve\n - switch.kitchen_cold_water_valve\n - switch.bathroom_hot_water_valve\n - switch.bathroom_cold_water_valve\n - switch.dishwasher_socket\n - switch.washing_machine_socket\n - switch.water_heater_socket\n continue_on_error: true\n - service: notify.mobile_app_misaka\n data:\n message: '🚨 Обнаружена протечка {{ state_attr(trigger.from_state.entity_id,\n ''alert_text'')|default('''', True) }}\n\n '\n data:\n push:\n sound:\n name: sms-received2.caf\n critical: 1\n volume: 1\n continue_on_error: true\n - service: notify.dextor\n data:\n message: '🚨 Обнаружена протечка {{ state_attr(trigger.from_state.entity_id,\n ''alert_text'')|default('''', True) }}\n\n '\n continue_on_error: true\n - service: script.yandex_station_tts\n data:\n target: all\n type: alert\n text: 'Обнаружена протечка {{ state_attr(trigger.from_state.entity_id, ''alert_text'')|default('''',\n True) }}. Повторяю. Обнаружена протечка!\n\n '\n - delay:\n seconds: 25\n - service: script.yandex_station_tts\n data:\n target: all\n type: attention\n text: 'Если протечки нет, скажи Алиса, включи воду или нажми кнопки на вентилях\n вручную.\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Water Leak",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Closet Water Leak",
|
||
"room": "closet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.closet_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Washing Machine Water Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_washing_machine_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Sink Water Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_sink_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Toilet Water Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_toilet_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Hot Water Meter Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_hot_water_meter_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Cold Water Meter Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_cold_water_meter_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Kitchen Hot Water Valve",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.kitchen_hot_water_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Kitchen Cold Water Valve",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.kitchen_cold_water_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Dishwasher Socket",
|
||
"room": "kitchen",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.dishwasher_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bathroom Hot Water Valve",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bathroom_hot_water_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Bathroom Cold Water Valve",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.bathroom_cold_water_valve",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Washing Machine Socket",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.washing_machine_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Water Heater Socket",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.water_heater_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notify Mobile App Misaka",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.mobile_app_misaka",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water_leak_resolved",
|
||
"automation": "- id: water_leak_resolved\n alias: 'Water leak: Resolved'\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.kitchen_water_leak\n - binary_sensor.closet_water_leak\n - binary_sensor.bathroom_washing_machine_water_leak\n - binary_sensor.bathroom_sink_water_leak\n - binary_sensor.bathroom_toilet_water_leak\n - binary_sensor.bathroom_hot_water_meter_leak\n - binary_sensor.bathroom_cold_water_meter_leak\n from: 'on'\n to: 'off'\n action:\n - service: notify.dextor\n data:\n message: '🎉 Устранена протечка {{ state_attr(trigger.from_state.entity_id, ''alert_text'')|default('''',\n True) }}\n\n '",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Kitchen Water Leak",
|
||
"room": "kitchen",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.kitchen_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Closet Water Leak",
|
||
"room": "closet",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.closet_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Washing Machine Water Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_washing_machine_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Sink Water Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_sink_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Toilet Water Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_toilet_water_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Hot Water Meter Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_hot_water_meter_leak",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Bathroom Cold Water Meter Leak",
|
||
"room": "bathroom",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.bathroom_cold_water_meter_leak",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water_heater_turn_on",
|
||
"automation": "- id: water_heater_turn_on\n alias: 'Water Heater: Turn on'\n trigger:\n - platform: state\n entity_id:\n - input_select.dryer_status\n - input_select.washing_machine_status\n to:\n - Idle\n - Done\n condition:\n - condition: state\n entity_id:\n - input_boolean.hot_water_supply\n - switch.water_heater_socket\n state: 'off'\n - condition: state\n entity_id:\n - input_select.dryer_status\n - input_select.washing_machine_status\n state:\n - Idle\n - Done\n action:\n - service: switch.turn_on\n entity_id: switch.water_heater_socket",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Water Heater Socket",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.water_heater_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Hot Water Supply",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.hot_water_supply",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water_heater_turn_off",
|
||
"automation": "- id: water_heater_turn_off\n alias: 'Water Heater: Turn off'\n trigger:\n - platform: state\n entity_id: switch.water_heater_socket\n to: 'on'\n - platform: time_pattern\n minutes: /1\n condition:\n - or:\n - condition: state\n entity_id:\n - switch.water_heater_socket\n - input_boolean.hot_water_supply\n state: 'on'\n - condition: state\n entity_id:\n - input_select.dryer_status\n - input_select.washing_machine_status\n state: Running\n match: any\n - condition: state\n entity_id: switch.water_heater_socket\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.water_heater_socket",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Dryer Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.dryer_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Switch Water Heater Socket",
|
||
"room": "bathroom",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.water_heater_socket",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Hot Water Supply",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.hot_water_supply",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "scene_welcome_home_on",
|
||
"automation": "- id: scene_welcome_home_on\n alias: 'Scene Welcome Home: Turn on'\n trigger:\n - platform: state\n entity_id: binary_sensor.entrance_motion\n to: 'on'\n condition:\n - condition: template\n value_template: '{% set no_one_home_seconds = (as_timestamp(now()) - state_attr(''input_datetime.anyone_home_last_seen'',\n ''timestamp''))|int %} {{ no_one_home_seconds > (5 * 60) }}\n\n '\n - condition: state\n entity_id: input_select.home_mode\n state:\n - Day\n - Vacation\n - condition: state\n entity_id: timer.front_door_unlocked\n state: active\n - condition: state\n entity_id: timer.scene_welcome_home\n state: idle\n action:\n - service: timer.start\n entity_id: timer.scene_welcome_home\n - service: timer.cancel\n entity_id: timer.front_door_unlocked\n - service: light.turn_on\n entity_id: light.entrance\n - if:\n - condition: state\n entity_id: input_select.home_mode\n state: Vacation\n then:\n - if:\n - condition: state\n entity_id: binary_sensor.anyone_home\n state: 'off'\n then:\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.anyone_home\n to: 'on'\n timeout:\n minutes: 7\n continue_on_timeout: false\n - service: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Day\n - service: script.yandex_station_tts\n data:\n target: media_player.kitchen_station\n type: announce\n text: \"<speaker audio=\\\"alice-sounds-game-win-1.opus\\\"> {% set v = [\\n 'Отдых\\\n \\ - хорошо, но дома лучше. С возвращением!',\\n 'Добро пожаловать домой,\\\n \\ я вас заждалась!',\\n] %} {{ v|random }}\\n\"\n else:\n - service: script.yandex_station_tts\n data:\n target: media_player.kitchen_station\n type: announce\n text: \"<speaker audio=\\\"alice-sounds-game-powerup-1.opus\\\"> {% set v = [\\n\\\n \\ '%s с возвращением!' % (states('sensor.alert_greeting')),\\n '%s наконец-то\\\n \\ %s дома' % (states('sensor.alert_greeting'), states('sensor.person_pronoun_nom')),\\n\\\n \\ '%s как хорошо, когда %s снова дома' % (states('sensor.alert_greeting'),\\\n \\ states('sensor.person_pronoun_nom')),\\n '%s добро пожаловать домой' %\\\n \\ (states('sensor.alert_greeting')),\\n] %} {{ v|random }}\\n\"",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Datetime Anyone Home Last Seen",
|
||
"room": null,
|
||
"type": "input_datetime",
|
||
"id": {
|
||
"entity_id": "input_datetime.anyone_home_last_seen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Person Pronoun Nom",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.person_pronoun_nom",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Entrance Motion",
|
||
"room": "entrance",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.entrance_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Scene Welcome Home",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.scene_welcome_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Kitchen Station",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Front Door Unlocked",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.front_door_unlocked",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Alert Greeting",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.alert_greeting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Yandex Station TTS",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.yandex_station_tts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_ac_turn_off",
|
||
"automation": "- id: workshop_ac_turn_off\n alias: 'Workshop AC: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.anyone_home\n from: 'on'\n to: 'off'\n for:\n minutes: 40\n - platform: state\n entity_id: input_boolean.scene_sleepy_mood\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: input_select.home_mode\n from: Day\n - platform: state\n entity_id: climate.workshop_ac\n to:\n - heat_cool\n - cool\n - heat\n - dry\n for:\n hours: 12\n condition:\n - condition: state\n entity_id: climate.workshop_ac\n state:\n - heat_cool\n - cool\n - heat\n - dry\n action:\n - service: climate.turn_off\n entity_id: climate.workshop_ac",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Anyone Home",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.anyone_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Workshop AC",
|
||
"room": "workshop",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.workshop_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Scene Sleepy Mood 2",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.scene_sleepy_mood",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "workshop_ac_turn_off_protect",
|
||
"automation": "- id: workshop_ac_turn_off_protect\n alias: 'Workshop AC: Turn off (protect)'\n trigger:\n - platform: time_pattern\n seconds: /30\n - platform: state\n entity_id:\n - climate.workshop_ac\n - input_select.washing_machine_status\n condition:\n - condition: or\n conditions:\n - and:\n - condition: state\n entity_id: input_select.washing_machine_status\n state: Running\n - condition: state\n entity_id: climate.bedroom_ac\n state:\n - heat_cool\n - cool\n - heat\n - dry\n - condition: numeric_state\n entity_id: sensor.outside_temperature\n below: -15\n - condition: state\n entity_id: climate.workshop_ac\n state:\n - heat_cool\n - cool\n - heat\n - dry\n action:\n - service: climate.turn_off\n entity_id: climate.workshop_ac",
|
||
"config": [
|
||
{
|
||
"name": "Bedroom AC",
|
||
"room": "bedroom",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.bedroom_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Workshop AC",
|
||
"room": "workshop",
|
||
"type": "climate",
|
||
"id": {
|
||
"entity_id": "climate.workshop_ac",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Select Washing Machine Status",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.washing_machine_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Sensor Outside Temperature",
|
||
"room": null,
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.outside_temperature",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_lights_turn_on",
|
||
"automation": "- id: xmas_lights_turn_on\n alias: 'Xmas Lights: Turn on'\n trigger:\n - platform: state\n entity_id: input_select.home_mode\n to: Day\n - platform: state\n entity_id: timer.scene_welcome_home\n to: active\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n action:\n - service: light.turn_on\n entity_id:\n - light.xmas_hallway_tree\n - light.xmas_front_door\n - light.xmas_kitchen",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Scene Welcome Home",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.scene_welcome_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Tree",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_tree",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Front Door",
|
||
"room": null,
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Kitchen",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_kitchen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_lights_turn_off",
|
||
"automation": "- id: xmas_lights_turn_off\n alias: 'Xmas Lights: Turn off'\n trigger:\n - platform: state\n entity_id: binary_sensor.dim_light\n to: 'on'\n for:\n seconds: 3\n - id: bedroom_bed_button_single_press\n trigger: device\n domain: mqtt\n device_id: 620c20157f0cbf8a0249f3f083a531ff\n type: action\n subtype: single\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n action:\n - service: light.turn_off\n entity_id:\n - light.elka\n - light.xmas_living_room_curtains\n - light.xmas_hallway_tree\n - light.xmas_hallway_wall\n - light.xmas_workshop_door\n - light.xmas_front_door\n - light.xmas_kitchen",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Bedroom Bed Button",
|
||
"room": "bedroom",
|
||
"type": "device",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "620c20157f0cbf8a0249f3f083a531ff"
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Tree",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_tree",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Front Door",
|
||
"room": null,
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_front_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Kitchen",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_kitchen",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Elka",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.elka",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Living Room Curtains",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_living_room_curtains",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Workshop Door",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_workshop_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_elka_turn_on",
|
||
"automation": "- id: xmas_elka_turn_on\n alias: 'Xmas Elka Light: Turn on'\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: input_select.home_mode\n to: Day\n - platform: state\n entity_id:\n - light.living_room_backlight\n - light.living_room_main\n - platform: state\n entity_id: binary_sensor.evening_time\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: timer.scene_welcome_home\n to: active\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id: binary_sensor.dim_light\n state: 'off'\n - condition: template\n value_template: '{{ states(''light.elka'') not in [''unavailable'', ''unknown'']\n }}\n\n '\n action:\n - if:\n - or:\n - condition: state\n entity_id: binary_sensor.evening_time\n state: 'off'\n - condition: state\n entity_id: light.living_room_main\n state: 'on'\n then:\n - service: light.turn_on\n entity_id: light.elka\n data:\n brightness_pct: 100\n else:\n - service: light.turn_on\n entity_id: light.elka\n data:\n brightness_pct: 23",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Evening Time",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.evening_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Timer Scene Welcome Home",
|
||
"room": null,
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.scene_welcome_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Elka",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.elka",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_hallway_light_turn_on",
|
||
"automation": "- id: xmas_hallway_light_turn_on\n alias: 'Xmas Hallway Light: Turn on'\n trigger:\n - platform: state\n entity_id:\n - light.entrance\n - light.hallway\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id:\n - light.xmas_hallway_wall\n - light.xmas_workshop_door\n match: any\n state: 'off'\n action:\n - service: light.turn_on\n entity_id:\n - light.xmas_hallway_wall\n - light.xmas_workshop_door",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Workshop Door",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_workshop_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_hallway_wall_light_turn_on",
|
||
"automation": "- id: xmas_hallway_wall_light_turn_on\n alias: 'Xmas Hallway Wall Light: Turn on'\n trigger:\n - platform: state\n entity_id: light.hallway_path\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id:\n - binary_sensor.dim_light\n - light.xmas_hallway_wall\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.xmas_hallway_wall\n data:\n brightness_pct: 100",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_hallway_wall_light_turn_off'",
|
||
"automation": "- id: xmas_hallway_wall_light_turn_off'\n alias: 'Xmas Hallway Wall Light: Turn off'\n trigger:\n - platform: state\n entity_id: light.hallway_path\n from: 'on'\n to: 'off'\n for:\n seconds: 10\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id: light.xmas_hallway_wall\n state: 'on'\n - condition: state\n entity_id:\n - light.hallway\n - light.entrance\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.xmas_hallway_wall",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Hallway Wall",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_hallway_wall",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_workshop_door_light_turn_on",
|
||
"automation": "- id: xmas_workshop_door_light_turn_on\n alias: 'Xmas Workshop Door Light: Turn on'\n trigger:\n - platform: state\n entity_id: light.hallway_path\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id:\n - binary_sensor.dim_light\n - light.xmas_workshop_door\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.xmas_workshop_door",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Workshop Door",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_workshop_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_workshop_door_light_turn_off",
|
||
"automation": "- id: xmas_workshop_door_light_turn_off\n alias: 'Xmas Workshop Door Light: Turn off'\n trigger:\n - platform: state\n entity_id: light.hallway_path\n from: 'on'\n to: 'off'\n for:\n seconds: 10\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id: light.xmas_workshop_door\n state: 'on'\n - condition: state\n entity_id:\n - light.hallway\n - light.entrance\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.xmas_workshop_door",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Entrance",
|
||
"room": "entrance",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.entrance",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Hallway Path",
|
||
"room": "hallway",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.hallway_path",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Workshop Door",
|
||
"room": "workshop",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_workshop_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "All automations",
|
||
"room": null,
|
||
"type": "automation",
|
||
"id": {
|
||
"entity_id": "all",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_living_room_curtains_light_turn_on",
|
||
"automation": "- id: xmas_living_room_curtains_light_turn_on\n alias: 'Xmas Living Room Curtains Light: Turn on'\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id:\n - light.living_room_backlight\n - light.living_room_main\n - platform: state\n entity_id: cover.living_room\n from: open\n to: closed\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id: input_select.home_mode\n state: Day\n - condition: state\n entity_id: binary_sensor.dim_light\n state: 'off'\n - condition: state\n entity_id: cover.living_room\n state: closed\n action:\n - delay:\n seconds: 2\n - condition: state\n entity_id: group.living_room_lights\n state: 'on'\n - if:\n - or:\n - condition: state\n entity_id: light.living_room_main\n state: 'on'\n - and:\n - condition: state\n entity_id: light.living_room_backlight\n state: 'on'\n - condition: numeric_state\n entity_id: light.living_room_backlight\n attribute: brightness\n above: 200\n then:\n - service: light.turn_on\n entity_id: light.xmas_living_room_curtains\n data:\n brightness_pct: 100\n else:\n - service: light.turn_on\n entity_id: light.xmas_living_room_curtains\n data:\n brightness_pct: 30",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Living Room Lights",
|
||
"room": "living_room",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.living_room_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Binary Sensor Dim Light",
|
||
"room": null,
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.dim_light",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Main",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_main",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Living Room Backlight",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_backlight",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Living Room Curtains",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_living_room_curtains",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "xmas_living_room_curtains_light_turn_off",
|
||
"automation": "- id: xmas_living_room_curtains_light_turn_off\n alias: 'Xmas Living Room Curtains Light: Turn off'\n trigger:\n - platform: state\n entity_id: group.living_room_lights\n to: 'off'\n - platform: state\n entity_id: cover.living_room\n to: open\n condition:\n - condition: state\n entity_id:\n - input_boolean.light_control\n - input_boolean.xmas_lighting\n state: 'on'\n - condition: state\n entity_id: light.xmas_living_room_curtains\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.xmas_living_room_curtains",
|
||
"config": [
|
||
{
|
||
"name": "Input Boolean Light Control",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.light_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Cover Living Room",
|
||
"room": "living_room",
|
||
"type": "cover",
|
||
"id": {
|
||
"entity_id": "cover.living_room",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Group Living Room Lights",
|
||
"room": "living_room",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.living_room_lights",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Boolean Xmas Lighting",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.xmas_lighting",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Light Xmas Living Room Curtains",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.xmas_living_room_curtains",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "yandex_station_busy",
|
||
"automation": "- id: yandex_station_busy\n alias: 'Yandex Station: Busy'\n mode: single\n max_exceeded: silent\n trigger:\n platform: state\n entity_id:\n - media_player.living_room_station\n - media_player.workshop_station\n - media_player.bedroom_station\n - media_player.kitchen_station\n attribute: alice_state\n from: LISTENING\n to: BUSY\n action:\n - service: input_text.set_value\n entity_id: input_text.yandex_station_last\n data:\n value: '{{ trigger.entity_id }}'",
|
||
"config": [
|
||
{
|
||
"name": "Media Player Bedroom Station",
|
||
"room": "bedroom",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.bedroom_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Kitchen Station",
|
||
"room": "kitchen",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kitchen_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Workshop Station",
|
||
"room": "workshop",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.workshop_station",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Text Yandex Station Last",
|
||
"room": null,
|
||
"type": "input_text",
|
||
"id": {
|
||
"entity_id": "input_text.yandex_station_last",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Media Player Living Room Station",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_station",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "yandex_station_volume_update",
|
||
"automation": "- id: yandex_station_volume_update\n alias: 'Yandex Station: Volume update'\n trigger:\n - platform: state\n entity_id: input_select.home_mode\n to:\n - Day\n - Night\n action:\n - if:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''Day'' }}\n\n '\n then:\n - service: input_number.set_value\n entity_id: input_number.yandex_station_alert_volume\n data:\n value: 0.7\n - service: input_number.set_value\n entity_id: input_number.yandex_station_attention_volume\n data:\n value: 0.5\n - if:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''Night'' }}\n\n '\n then:\n - service: input_number.set_value\n entity_id: input_number.yandex_station_alert_volume\n data:\n value: 0.5\n - service: input_number.set_value\n entity_id: input_number.yandex_station_attention_volume\n data:\n value: 0.4",
|
||
"config": [
|
||
{
|
||
"name": "Input Select Home Mode",
|
||
"room": null,
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.home_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Yandex Station Alert Volume",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.yandex_station_alert_volume",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Input Number Yandex Station Attention Volume",
|
||
"room": null,
|
||
"type": "input_number",
|
||
"id": {
|
||
"entity_id": "input_number.yandex_station_attention_volume",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "zigbee_device_leave",
|
||
"automation": "- id: zigbee_device_leave\n alias: 'Zigbee: Device leave'\n trigger:\n platform: mqtt\n topic: zigbee2mqtt/bridge/event\n payload: device_leave\n value_template: '{{ value_json.type }}'\n action:\n - service: notify.dextor\n data:\n message: ✂️ Какое-то устройство вывалилось из сети",
|
||
"config": [
|
||
{
|
||
"name": "Notify Dextor",
|
||
"room": null,
|
||
"type": "notify",
|
||
"id": {
|
||
"entity_id": "notify.dextor",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
}
|
||
] |