diff --git a/docs/recipes/about.md b/docs/recipes/about.md index 6f202fd9..c394989f 100644 --- a/docs/recipes/about.md +++ b/docs/recipes/about.md @@ -1,6 +1,6 @@ В этом разделе собраны конфигурации популярных устройств. При использовании обязательно поменяйте ID объектов на свои. -Рецепты присланы пользователи, поэтому работоспособность не гарантируется. +!!! danger "Рецепты присланы пользователи и публикуются "как есть" (с минимальными правками). Работоспособность не гарантируется." [Предложить свой рецепт](https://forms.yandex.ru/u/62b456db0c134229d975d1e3/){ .md-button } @@ -8,5 +8,7 @@ * [Увлажнители](humidifier.md) * [Телевизоры](tv.md) +* [Посудомоечные машины](dishwasher.md) * [Чайники](kettle.md) +* [Обогреватели](heater.md) * [Прочее](other.md) diff --git a/docs/recipes/dishwasher.md b/docs/recipes/dishwasher.md new file mode 100644 index 00000000..b7c12c13 --- /dev/null +++ b/docs/recipes/dishwasher.md @@ -0,0 +1,96 @@ +## Bosch SMV6ECX51E { id=bosch-smv6ecx51e } + +> Интеграция: [Home Connect Alt](https://github.com/ekutner/home-connect-hass) + +```yaml +yandex_smart_home: + entity_config: + switch.013100518886064003_bsh_common_setting_powerstate: + type: devices.types.dishwasher + turn_on: # По логике управления УДЯ - командой включения запускает программу + action: button.press + entity_id: button.013100518886064003_start_pause + turn_off: + action: button.press + entity_id: button.013100518886064003_stop + properties: + - type: open # Статус открытия двери + entity: binary_sensor.013100518886064003_bsh_common_status_doorstate + - type: water_level # Экономичность водопотребления в зависимости от программы + entity: sensor.013100518886064003_bsh_common_option_waterforecast + - type: battery_level # Экономичность энергопотребления в зависимости от программы + entity: sensor.013100518886064003_bsh_common_option_energyforecast + custom_toggles: + controls_locked: # По логике управления УДЯ: снятие блокировки управления = включение прибора (и наоборот) + state_entity_id: switch.013100518886064003_bsh_common_setting_powerstate + turn_on: + action: switch.turn_off + entity_id: switch.013100518886064003_bsh_common_setting_powerstate + turn_off: + action: switch.turn_on + entity_id: switch.013100518886064003_bsh_common_setting_powerstate + modes: + dishwashing: + intensive: "Dishcare.Dishwasher.Program.Intensiv70" + fast: "Dishcare.Dishwasher.Program.Quick65" + auto: "Dishcare.Dishwasher.Program.Auto2" + eco: "Dishcare.Dishwasher.Program.Eco50" + express: "Dishcare.Dishwasher.Program.Quick45" + glass: "Dishcare.Dishwasher.Program.Glas40" + smart: "Dishcare.Dishwasher.Program.MachineCare" + quiet: "Dishcare.Dishwasher.Program.NightWash" + pre_rinse: "Dishcare.Dishwasher.Program.PreRinse" + custom_modes: + dishwashing: + state_entity_id: select.013100518886064003_programs + set_mode: + action: select.select_option + entity_id: select.013100518886064003_programs + data: + option: "{{ mode }}" +``` + +## Bosch SPV4HMX1DR { id=bosch-spv4hmx1dr } + +> Интеграция: [Home Connect Alt](https://github.com/ekutner/home-connect-hass) + +```yaml +yandex_smart_home: + entity_config: + switch.402020532764003998_bsh_common_setting_powerstate: + name: Посудомойка + room: Кухня + type: devices.types.dishwasher + properties: + - type: open + entity: binary_sensor.402020532764003998_bsh_common_status_doorstate + modes: + dishwashing: + auto: "Dishcare.Dishwasher.Program.Auto2" + eco: "Dishcare.Dishwasher.Program.Eco50" + express: "Dishcare.Dishwasher.Program.Quick65" + glass: "Dishcare.Dishwasher.Program.Glas40" + intensive: "Dishcare.Dishwasher.Program.Intensiv70" + pre_rinse: "Dishcare.Dishwasher.Program.PreRinse" + quiet: "Dishcare.Dishwasher.Program.NightWash" + dry: "Dishcare.Dishwasher.Program.MachineCare" + smart: "Dishcare.Dishwasher.Program.Kurz60" + turbo: "Dishcare.Dishwasher.Program.Super60" + fast: "Dishcare.Dishwasher.Program.Quick45" + custom_modes: + dishwashing: + state_entity_id: sensor.402020532764003998_selected_program + set_mode: + action: select.select_option + entity_id: select.402020532764003998_programs + data: + option: '{{ mode }}' + custom_toggles: + pause: + turn_on: + action: button.press + entity_id: button.402020532764003998_stop + turn_off: + action: button.press + entity_id: button.402020532764003998_start_pause +``` diff --git a/docs/recipes/heater.md b/docs/recipes/heater.md new file mode 100644 index 00000000..85c7442a --- /dev/null +++ b/docs/recipes/heater.md @@ -0,0 +1,32 @@ +## Xiaomi Smart Tower Heater Lite { id=xiaomi-smart-tower-heater-lite } + +> Интеграция: [Xiaomi Miot](https://github.com/al-one/hass-xiaomi-miot) + +```yaml +# Потребуется создать вспомогательный свитч и две автоматизации включения и выключения. В первом случае - установка температуры на #99, во втором случае - нажатие кнопки Stop-work. +yandex_smart_home: + entity_config: + fan.zhimi_rmb1_85fa_air_purifier : + type: devices.types.purifier + modes: + fan_speed: + low: 'Sleep' + medium: 'Favorite' + auto: 'Auto' + custom_modes: + fan_speed: + state_attribute: preset_mode + set_mode: + action: fan.set_preset_mode + target: + entity_id: fan.zhimi_rmb1_85fa_air_purifier + data: + preset_mode: '{{ mode }}' + properties: + - type: pm2.5_density + entity: sensor.zhimi_rmb1_85fa_pm25_density_2 + - type: humidity + entity: sensor.zhimi_rmb1_85fa_relative_humidity_2 + - type: water_level # Показывает остаток фильтра + entity: sensor.zhimi_rmb1_85fa_filter_life_level_2 +``` diff --git a/docs/recipes/humidifier.md b/docs/recipes/humidifier.md index 8a97c6bf..88b89407 100644 --- a/docs/recipes/humidifier.md +++ b/docs/recipes/humidifier.md @@ -216,3 +216,34 @@ yandex_smart_home: max: 100 precision: 1 ``` + +## AIRMX A3S { id=airmx-a3s } + +> Интеграция: [AIRMX](https://github.com/dext0r/airmx) + +```yaml +yandex_smart_home: + entity_config: + humidifier.airwater_a3s_48403: + properties: + - type: water_level + entity: sensor.airwater_a3s_48403_water_level + modes: + program: + quiet: "sleep" + medium: "manual" # ручной режим, в нем целевая влажность 0 + auto: "auto" + custom_ranges: + volume: # вентилятор для ручного режима, как самое подходящее + state_entity_id: number.airwater_a3s_48403_fan_speed + set_value: + action: number.set_value + target: + entity_id: number.airwater_a3s_48403_fan_speed + data: + value: '{{ value }}' + range: + min: 0 + max: 100 + precision: 10 +``` diff --git a/docs/recipes/kettle.md b/docs/recipes/kettle.md index a16133ea..0ba8c800 100644 --- a/docs/recipes/kettle.md +++ b/docs/recipes/kettle.md @@ -89,3 +89,120 @@ yandex_smart_home: max: 100 precision: 5 ``` + +## Xiaomi Smart Kettle 2 Pro { id=xiaomi-smart-kettle-2-pro } + +> Интеграция: [Xiaomi Miot](https://github.com/al-one/hass-xiaomi-miot) + +```yaml +# Потребуется создать вспомогательный свитч и две автоматизации включения и выключения. В первом случае - установка температуры на #99, во втором случае - нажатие кнопки Stop-work. +yandex_smart_home: + entity_config: + input_boolean.kettle_switch: + type: devices.types.cooking.kettle + properties: + - type: temperature + entity: water_heater.yunmi_v19_4c2c_kettle + attribute: current_temperature + custom_toggles: + mute: + state_entity_id: switch.yunmi_v19_4c2c_no_disturb + turn_on: + action: switch.turn_on + entity_id: switch.yunmi_v19_4c2c_no_disturb + turn_off: + action: switch.turn_off + entity_id: switch.yunmi_v19_4c2c_no_disturb + custom_ranges: + temperature: + state_entity_id: water_heater.yunmi_v19_4c2c_kettle + set_value: + action: water_heater.set_temperature + entity_id: water_heater.yunmi_v19_4c2c_kettle + data: + temperature: '{{ value }}' + range: + min: 40 + max: 100 + precision: 1 +``` + +## Polaris PWK 1775CGLD { id=polaris-pwk-1775cgld } + +> Интеграция: MQTT + +```yaml +yandex_smart_home: + entity_config: + water_heater.polaris_kettle: + name: Чайник + room: Кухня + type: devices.types.cooking.kettle + properties: + - type: water_level + entity: sensor.polaris_kettle_water_level_percent + turn_on: + action: water_heater.set_operation_mode + target: + entity_id: water_heater.polaris_kettle + data: + operation_mode: Разогрев с удержанием + turn_off: + action: water_heater.turn_off + target: + entity_id: water_heater.polaris_kettle + custom_ranges: + temperature: + state_entity_id: water_heater.polaris_kettle + state_attribute: temperature + set_value: + action: water_heater.set_temperature + target: + entity_id: water_heater.polaris_kettle + data: + temperature: '{{ value }}' + operation_mode: Разогрев с удержанием + range: + min: 30 + max: 100 + precision: 1 + custom_toggles: + mute: + state_entity_id: switch.polaris_kettle_mute + turn_on: + action: switch.turn_on + target: + entity_id: switch.polaris_kettle_mute + turn_off: + action: switch.turn_off + target: + entity_id: switch.polaris_kettle_mute + keep_warm: + state_entity_id: binary_sensor.polaris_kettle_keep_warm_on + turn_on: + action: water_heater.set_operation_mode + target: + entity_id: water_heater.polaris_kettle + data: + operation_mode: Разогрев с удержанием + turn_off: + action: water_heater.set_operation_mode + target: + entity_id: water_heater.polaris_kettle + data: + operation_mode: 'off' + modes: + tea_mode: + black_tea: 'black_tea' + flower_tea: 'flower_tea' + green_tea: 'green_tea' + herbal_tea: 'herbal_tea' + oolong_tea: 'oolong_tea' + puerh_tea: 'puerh_tea' + red_tea: 'red_tea' + white_tea: 'white_tea' + custom_modes: + tea_mode: + set_mode: + action: script.{{ mode }} +``` diff --git a/mkdocs.yml b/mkdocs.yml index a6fcd56a..4c1db954 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -43,6 +43,8 @@ nav: - О рецептах: recipes/about.md - Увлажнители: recipes/humidifier.md - Телевизоры: recipes/tv.md + - Посудомоечные машины: recipes/dishwasher.md + - Обогреватели: recipes/heater.md - Чайники: recipes/kettle.md - Прочее: recipes/other.md