Skip to content

Commit

Permalink
docs: Update recipes (25.09-04.11)
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Nov 20, 2024
1 parent 2ac2dbc commit 8cf97e9
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/recipes/about.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
В этом разделе собраны конфигурации популярных устройств. При использовании обязательно поменяйте ID объектов на свои.

Рецепты присланы пользователи, поэтому работоспособность не гарантируется.
!!! danger "Рецепты присланы пользователи и публикуются "как есть" (с минимальными правками). Работоспособность не гарантируется."

[Предложить свой рецепт](https://forms.yandex.ru/u/62b456db0c134229d975d1e3/){ .md-button }

## Разделы

* [Увлажнители](humidifier.md)
* [Телевизоры](tv.md)
* [Посудомоечные машины](dishwasher.md)
* [Чайники](kettle.md)
* [Обогреватели](heater.md)
* [Прочее](other.md)
96 changes: 96 additions & 0 deletions docs/recipes/dishwasher.md
Original file line number Diff line number Diff line change
@@ -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
```
32 changes: 32 additions & 0 deletions docs/recipes/heater.md
Original file line number Diff line number Diff line change
@@ -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
```
31 changes: 31 additions & 0 deletions docs/recipes/humidifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
117 changes: 117 additions & 0 deletions docs/recipes/kettle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
```
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8cf97e9

Please sign in to comment.