From 0ec462a2ffa55b91dc39d39b0c94950b5233afd2 Mon Sep 17 00:00:00 2001 From: Artem Sorokin Date: Sun, 23 Jun 2024 15:32:02 +0300 Subject: [PATCH] Add ventilation_mode and new instance modes --- custom_components/yandex_smart_home/const.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/custom_components/yandex_smart_home/const.py b/custom_components/yandex_smart_home/const.py index 0c86cef0..27b8cc82 100644 --- a/custom_components/yandex_smart_home/const.py +++ b/custom_components/yandex_smart_home/const.py @@ -301,6 +301,7 @@ MODE_INSTANCE_SWING = 'swing' MODE_INSTANCE_TEA_MODE = 'tea_mode' MODE_INSTANCE_THERMOSTAT = 'thermostat' +MODE_INSTANCE_VENTILATION_MODE = 'ventilation_mode' MODE_INSTANCE_WORK_SPEED = 'work_speed' MODE_INSTANCES = ( MODE_INSTANCE_CLEANUP_MODE, @@ -313,6 +314,7 @@ MODE_INSTANCE_SWING, MODE_INSTANCE_TEA_MODE, MODE_INSTANCE_THERMOSTAT, + MODE_INSTANCE_VENTILATION_MODE, MODE_INSTANCE_WORK_SPEED, ) @@ -415,6 +417,9 @@ ) # https://yandex.ru/dev/dialogs/smart-home/doc/concepts/mode-instance-modes.html +MODE_INSTANCE_MODE_WET_CLEANING = 'wet_cleaning' +MODE_INSTANCE_MODE_DRY_CLEANING = 'dry_cleaning' +MODE_INSTANCE_MODE_MIXED_CLEANING = 'mixed_cleaning' MODE_INSTANCE_MODE_AUTO = 'auto' MODE_INSTANCE_MODE_ECO = 'eco' MODE_INSTANCE_MODE_SMART = 'smart' @@ -437,6 +442,8 @@ MODE_INSTANCE_MODE_HORIZONTAL = 'horizontal' MODE_INSTANCE_MODE_STATIONARY = 'stationary' MODE_INSTANCE_MODE_VERTICAL = 'vertical' +MODE_INSTANCE_MODE_SUPPLY_AIR = 'supply_air' +MODE_INSTANCE_MODE_EXTRACTION_AIR = 'extraction_air' MODE_INSTANCE_MODE_ONE = 'one' MODE_INSTANCE_MODE_TWO = 'two' MODE_INSTANCE_MODE_THREE = 'three' @@ -490,6 +497,9 @@ MODE_INSTANCE_MODE_YOGURT = 'yogurt' MODE_INSTANCE_MODES = ( + MODE_INSTANCE_MODE_WET_CLEANING, + MODE_INSTANCE_MODE_DRY_CLEANING, + MODE_INSTANCE_MODE_MIXED_CLEANING, MODE_INSTANCE_MODE_AUTO, MODE_INSTANCE_MODE_ECO, MODE_INSTANCE_MODE_SMART, @@ -512,6 +522,8 @@ MODE_INSTANCE_MODE_HORIZONTAL, MODE_INSTANCE_MODE_STATIONARY, MODE_INSTANCE_MODE_VERTICAL, + MODE_INSTANCE_MODE_SUPPLY_AIR, + MODE_INSTANCE_MODE_EXTRACTION_AIR, MODE_INSTANCE_MODE_ONE, MODE_INSTANCE_MODE_TWO, MODE_INSTANCE_MODE_THREE,