Skip to content

Instantly share code, notes, and snippets.

@glebsterx
Last active February 16, 2023 20:04
Show Gist options
  • Save glebsterx/100943d8c167a5a9591a119161bc2569 to your computer and use it in GitHub Desktop.
Save glebsterx/100943d8c167a5a9591a119161bc2569 to your computer and use it in GitHub Desktop.
Local Tuya Configuration for Hiper IoT Purifier Pro v1 (Russian) + Yandex Smart Home Configuration
localtuya:
- host: purifier_ip_address
device_id: purifier_device_id
local_key: purifier_local_key
friendly_name: "Hiper IoT Purifier Pro v1"
protocol_version: "3.3"
entities:
- platform: switch # fan
friendly_name: "Hiper IoT Purifier Pro v1"
id: 1
- platform: sensor
friendly_name: "PM2.5"
id: 2
unit_of_measurement: "µg/m³"
device_class: pm25
- platform: select
friendly_name: "Режим работы"
id: 3
select_options: auto;H;M;sleep
select_options_friendly: Авто;Мощный;Средний;Сон
- platform: sensor
friendly_name: "Остаток ресурса фильтра"
id: 5
unit_of_measurement: "%"
- platform: switch
friendly_name: "Блокировка панели управления"
id: 7
- platform: switch
friendly_name: "УФ-дезинфекция"
id: 9
- platform: switch
friendly_name: "Сброс данных о фильтре"
id: 11
- platform: select
friendly_name: "Таймер"
id: 18
select_options: cancel;2h;4h;8h
select_options_friendly: Выключен;2ч;4ч;8ч
- platform: sensor
friendly_name: "Остаток времени по таймеру"
id: 19
unit_of_measurement: "минут"
- platform: sensor
friendly_name: "Качество воздуха"
id: 21
device_class: aqi
- platform: binary_sensor
friendly_name: "Заменить фильтр"
id: 22
device_class: problem
- platform: select
friendly_name: "Подсветка"
id: 101
select_options: Сlose;Soft;Standard
select_options_friendly: Выключена;Приглушенная;Стандартная
yandex_smart_home:
filter:
include_entities:
- switch.hiper_iot_purifier_pro_v1
entity_config:
switch.hiper_iot_purifier_pro_v1:
type: devices.types.purifier
properties:
- type: pm2.5_density
entity: sensor.purifier_pm2_5
modes:
fan_speed:
quiet: [Сон]
medium: [Средний]
high: [Мощный]
auto: [Авто]
custom_modes:
fan_speed:
state_entity_id: select.purifier_mode
set_mode:
service: select.select_option
entity_id: select.purifier_mode
data:
option: '{{ mode }}'
custom_toggles:
backlight:
state_entity_id: select.purifier_backlight
turn_on:
service: select.select_option
entity_id: select.purifier_backlight
data:
option: 'Стандартная' # Приглушенная
turn_off:
service: select.select_option
entity_id: select.purifier_backlight
data:
option: 'Выключена'
ionization:
state_entity_id: switch.purifier_uv
turn_on:
service: switch.turn_on
entity_id: switch.purifier_uv
turn_off:
service: switch.turn_off
entity_id: switch.purifier_uv
controls_locked:
state_entity_id: switch.purifier_child_lock
turn_on:
service: switch.turn_on
entity_id: switch.purifier_child_lock
turn_off:
service: switch.turn_off
entity_id: switch.purifier_child_lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment