From 53f2f1a0b76fd7b2d73f468c99355d6581e54237 Mon Sep 17 00:00:00 2001 From: Artem Sorokin Date: Tue, 25 Jul 2023 15:28:08 +0300 Subject: [PATCH] Add recipes --- docs/recipes.md | 121 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/docs/recipes.md b/docs/recipes.md index 983a4322..f48dda82 100644 --- a/docs/recipes.md +++ b/docs/recipes.md @@ -1,5 +1,7 @@ В этом разделе собраны конфигурации популярных устройств. При использовании обязательно поменяйте ID объектов на свои. +Рецепты присланы пользователи, поэтому работоспобность не гарантируется. + [Предложить свой рецепт](https://forms.yandex.ru/u/62b456db0c134229d975d1e3/){ .md-button } ## Увлажнитель Xiaomi Smartmi { id=xiaomi-smartmi-humidifier } @@ -126,6 +128,97 @@ yandex_smart_home: value: '0' ``` +## Xiaomi Mi Air Purifier 2S { id=xiaomi-mi-air-purifier-2s } +> Интеграция: [Xiaomi Miio](https://www.home-assistant.io/integrations/xiaomi_miio/) + +```yaml +yandex_smart_home: + entity_config: + fan.ochistitel_vozdukha: + type: devices.types.purifier + properties: + - type: pm2.5_density + entity: sensor.ochistitel_vozdukha_pm2_5 + - type: temperature + entity: sensor.ochistitel_vozdukha_temperature + - type: humidity + entity: sensor.ochistitel_vozdukha_humidity + - type: water_level # ресурс фильтров, в УДЯ нет такой характеристики + entity: sensor.ochistitel_vozdukha_filter_life_remaining + custom_toggles: + backlight: + state_entity_id: switch.ochistitel_vozdukha_led + turn_on: + service: switch.turn_on + entity_id: switch.ochistitel_vozdukha_led + turn_off: + service: switch.turn_off + entity_id: switch.ochistitel_vozdukha_led + controls_locked: + state_entity_id: switch.ochistitel_vozdukha_child_lock + turn_on: + service: switch.turn_on + entity_id: switch.ochistitel_vozdukha_child_lock + turn_off: + service: switch.turn_off + entity_id: switch.ochistitel_vozdukha_child_lock +``` + +## Mi Air Purifier 3C { id=xiaomi-mi-air-purifier-3с } +> Интеграция: [Xiaomi Miio](https://www.home-assistant.io/integrations/xiaomi_miio/) + +```yaml +yandex_smart_home: + entity_config: + fan.mi_air_purifier_3c: + type: devices.types.purifier + properties: + - type: pm2.5_density + entity: sensor.mi_air_purifier_3c_pm2_5 + custom_toggles: + controls_locked: # блокировка управления + state_entity_id: switch.mi_air_purifier_3c_child_lock + turn_on: + service: switch.turn_on + entity_id: switch.mi_air_purifier_3c_child_lock + turn_off: + service: switch.turn_off + entity_id: switch.mi_air_purifier_3c_child_lock + mute: # Звук + state_entity_id: switch.mi_air_purifier_3c_buzzer + turn_on: + service: switch.turn_off + entity_id: switch.mi_air_purifier_3c_buzzer + turn_off: + service: switch.turn_on + entity_id: switch.mi_air_purifier_3c_buzzer + custom_ranges: + brightness: # Яркость подсветки + state_entity_id: number.mi_air_purifier_3c_led_brightness + set_value: + service: number.set_value + target: + entity_id: number.mi_air_purifier_3c_led_brightness + data: + value: "{{ ((state_attr('number.mi_air_purifier_3c_led_brightness','max'))/100*value)| round(0) }}" + range: + min: 0 + max: 100 + precision: 10 + volume: # Сохранённая скорость + state_attribute: favorit_speed + set_value: + service: number.set_value + target: + entity_id: number.mi_air_purifier_3c_favorite_motor_speed + data: + value: "{{(((state_attr('number.mi_air_purifier_3c_favorite_motor_speed','max')-300)/100*value+300)/10)| round(0)*10}}" + range: + min: 0 + max: 100 + precision: 1 +``` + ## Чайник Redmond (KomX/ESPHome-Ready4Sky) { id=redmond-kettle-komx } > Интеграция: [KomX/ESPHome-Ready4Sky](https://github.com/KomX/ESPHome-Ready4Sky) @@ -206,6 +299,7 @@ yandex_smart_home: state_attribute: temperature set_value: service: water_heater.set_temperature + target: water_heater.skykettle_rk_m216s data: temperature: '{{ value }}' range: @@ -408,3 +502,30 @@ yandex_smart_home: data: light: 'off' ``` + +## Бойлер Thermex Lima 80v { id=thermex-lima-80v } +> Интеграция: [Tuya Local](https://github.com/make-all/tuya-local) + +```yaml +yandex_smart_home: + entity_config: + switch.thermex_lima_80v_water_heater: + name: Бойлер + properties: + - type: temperature + entity: sensor.thermex_lima_80v_current_temperature + - type: temperature + entity: sensor.thermex_lima_80v_target_temperature + custom_ranges: + temperature: + state_entity_id: number.thermex_lima_80v_set_target_temperature + set_value: + service: number.set_value + entity_id: number.thermex_lima_80v_set_target_temperature + data: + value: '{{ value }}' + range: + min: 35 + max: 75 + precision: 1 +```