23 Commits

Author SHA1 Message Date
sususweet
d49eab91c9 feat: update device mapping for T0xFD by @jesustoachild. 2025-10-10 21:22:14 +08:00
sususweet
ab23b4088e feat: update translations. 2025-10-10 20:59:00 +08:00
sususweet
c90b8a3d0d feat: update device mapping for T0xE3. 2025-10-10 20:55:16 +08:00
sususweet
5ffa57bed8 feat: update device mapping for T0xCA. 2025-10-10 20:45:24 +08:00
sususweet
1029b6c4aa feat: update available_modes for HumidifierEntity 2025-10-10 19:55:30 +08:00
sususweet
6bc49c1b09 feat: update mapping for T0xAC 26093139 device. 2025-10-10 17:01:44 +08:00
sususweet
16460d66ca feat: version 0.1.8 2025-10-10 10:47:00 +08:00
sususweet
94f0ce84fb feat: update device mapping for T0xFD. Try to fix #24 2025-10-10 10:45:46 +08:00
sususweet
a2c379a334 feat: add device support for T0xA1 2025-10-10 10:28:59 +08:00
sususweet
2d2d0de10a fix: update translation and entity for T0xE1 2025-10-10 09:42:51 +08:00
sususweet
2bceda19ac fix: translation. 2025-10-09 21:11:11 +08:00
sususweet
7ee178b6f2 fix: translation. 2025-10-09 21:09:14 +08:00
sususweet
b45bb48352 Merge remote-tracking branch 'origin/master' 2025-10-09 21:07:40 +08:00
sususweet
cab195f9e0 fix: translation for input_temperature_Sensing 2025-10-09 21:07:26 +08:00
sususweet
c92785eea2 Update and rename main.yml to validate.yml 2025-10-09 20:45:37 +08:00
sususweet
dfc6e9c5d3 Merge remote-tracking branch 'origin/master' 2025-10-09 20:39:41 +08:00
sususweet
0072503a00 feat: add mop dry feature for T0xB8. 2025-10-09 20:39:22 +08:00
sususweet
ab146eb54b Create main.yml 2025-10-09 19:08:29 +08:00
sususweet
51133b94bd fix: device mapping and translation for T0xCA and T0xED. Fix #23. 2025-10-09 10:02:08 +08:00
sususweet
7a75376725 Merge pull request #22 from bjzhou/master
update device mapping
2025-10-09 09:47:21 +08:00
Hinnka
2c821ceb54 feat: zero cold water switch 2025-10-08 12:43:28 +08:00
Hinnka
2e2ec7a989 feat: update 0xED mapping 2025-10-07 09:03:32 +08:00
hinnka
e1924bdc4b translations 2025-10-07 08:32:36 +08:00
15 changed files with 440 additions and 227 deletions

23
.github/workflows/validate.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Validate
on:
push:
pull_request:
schedule:
- cron: 0 0 * * *
jobs:
hassfest:
name: hassfest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: home-assistant/actions/hassfest@master
hacs:
name: HACS
runs-on: ubuntu-latest
steps:
- name: HACS Action
uses: hacs/action@main
with:
category: integration

View File

@@ -16,11 +16,14 @@
## 目前支持的设备类型
- T0x26 浴霸
- T0xA1 除湿机
- T0xAC 空调
- T0xB2 电蒸箱
- T0xB3 消毒碗柜
- T0xB7 燃气灶
- T0xB8 智能扫地机器人
- T0xCA 对开门冰箱
- T0xCC 中央空调(风管机)Wi-Fi线控器
- T0xCE 新风机
- T0xCF 中央空调暖家
- T0xD9 复式洗衣机

View File

@@ -44,9 +44,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
)
try:
if await cloud.login():
await self.async_set_unique_id(user_input[CONF_ACCOUNT])
self._abort_if_unique_id_configured()
# 保存云实例和用户输入,用于后续步骤
self._cloud = cloud
self._user_input = user_input

View File

@@ -0,0 +1,91 @@
from homeassistant.components.humidifier import HumidifierDeviceClass
from homeassistant.const import Platform, UnitOfTime
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
from homeassistant.components.switch import SwitchDeviceClass
DEVICE_MAPPING = {
"default": {
"rationale": ["off", "on"],
"queries": [{}],
"centralized": [],
"entities": {
Platform.SWITCH: {
"power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"anion": {
"device_class": SwitchDeviceClass.SWITCH,
},
"child_lock": {
"device_class": SwitchDeviceClass.SWITCH,
},
"wind_swing_ud": {
"device_class": SwitchDeviceClass.SWITCH,
},
"filter_tip": {
"device_class": SwitchDeviceClass.SWITCH,
},
},
Platform.HUMIDIFIER: {
"dehumidifier": {
"device_class": HumidifierDeviceClass.HUMIDIFIER,
"power": "power",
"target_humidity": "humidity",
"current_humidity": "cur_humidity",
"min_humidity": 35,
"max_humidity": 85,
"mode": "mode",
"modes": {
"continuity": {"mode": "continuity"},
"auto": {"mode": "auto"},
"fan": {"mode": "fan"},
"dry_shoes": {"mode": "dry_shoes"},
"dry_clothes": {"mode": "dry_clothes"}
}
}
},
Platform.BINARY_SENSOR: {
"tank_status": {
"device_class": BinarySensorDeviceClass.PROBLEM
}
},
Platform.SELECT: {
"wind_speed": {
"options": {
"low": {"wind_speed": "30"},
"high": {"wind_speed": "80"},
}
},
"power_on_time": {
"options": {
"off": {"power_on_timer": "off"},
"15": {"power_on_timer": "on", "power_on_time_value": "15"},
"30": {"power_on_timer": "on", "power_on_time_value": "30"},
"45": {"power_on_timer": "on", "power_on_time_value": "45"},
"60": {"power_on_timer": "on", "power_on_time_value": "60"},
}
},
"power_off_time": {
"options": {
"off": {"power_off_timer": "off"},
"15": {"power_off_timer": "on", "power_off_time_value": "15"},
"30": {"power_off_timer": "on", "power_off_time_value": "30"},
"45": {"power_off_timer": "on", "power_off_time_value": "45"},
"60": {"power_off_timer": "on", "power_off_time_value": "60"},
}
},
},
Platform.SENSOR: {
"water_full_time": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.MINUTES,
"state_class": SensorStateClass.MEASUREMENT
},
"water_full_level": {
"device_class": SensorDeviceClass.ENUM
},
}
}
}
}

View File

@@ -132,6 +132,55 @@ DEVICE_MAPPING = {
}
}
},
"26093139": {
"rationale": [0, 3],
"queries": [{}, {"query_type": "run_status"}],
"centralized": ["fresh_air", "fresh_air_mode", "fresh_air_fan_speed", "fresh_air_temp"],
"entities": {
Platform.FAN: {
"fan": {
"power": "fresh_air",
"speeds": [
{"fresh_air": 3, "fresh_air_fan_speed": 20},
{"fresh_air": 3, "fresh_air_fan_speed": 40},
{"fresh_air": 3, "fresh_air_fan_speed": 60},
{"fresh_air": 3, "fresh_air_fan_speed": 80},
{"fresh_air": 3, "fresh_air_fan_speed": 100},
],
"preset_modes": {
"heat_exchange": {
"fresh_air_mode": 1,
"wind_strength": 0
},
"smooth_in": {
"fresh_air_mode": 2,
"wind_strength": 0
},
"rough_in": {
"fresh_air_mode": 2,
"wind_strength": 1
},
"smooth_out": {
"fresh_air_mode": 3,
"wind_strength": 0
},
"rough_out": {
"fresh_air_mode": 3,
"wind_strength": 1
},
"auto": {
"fresh_air_mode": 4,
"wind_strength": 0
},
"innercycle": {
"fresh_air_mode": 5,
"wind_strength": 0
},
}
}
},
}
},
"22012227": {
"rationale": ["off", "on"],
"queries": [{}],

View File

@@ -38,7 +38,9 @@ DEVICE_MAPPING = {
"work": {"work_status": "work"},
"video_cruise_start": {"work_status": "video_cruise_start"},
"video_cruise_pause": {"work_status": "video_cruise_pause"},
"quickly_build_map": {"work_status": "quickly_build_map"},
"mop_clean": {"mop_clean_setting": {"mode_type": "common", "clean_level": "normal"}},
"dry_mop_on": {"work_status": "dry_mop", "switch": "on"},
"dry_mop_off": {"work_status": "dry_mop", "switch": "off"},
}
},
"water_tank_setting": {
@@ -58,18 +60,15 @@ DEVICE_MAPPING = {
}
},
Platform.SENSOR: {
"control_type": {
"fan_level": {
"device_class": SensorDeviceClass.ENUM
},
"mop_status": {
"mop": {
"device_class": SensorDeviceClass.ENUM
},
"sub_work_status": {
"device_class": SensorDeviceClass.ENUM
},
"query_type": {
"device_class": SensorDeviceClass.ENUM
},
"move_direction": {
"device_class": SensorDeviceClass.ENUM
},

View File

@@ -11,7 +11,7 @@ DEVICE_MAPPING = {
"freezing_mode", "intelligent_mode", "energy_saving_mode", "holiday_mode",
"moisturize_mode", "preservation_mode", "acme_freezing_mode", "variable_mode",
"storage_power", "left_flexzone_power", "right_flexzone_power", "freezing_power",
"function_zone_power", "storage_temperature", "freezing_temperature",
"storage_temperature", "freezing_temperature",
"left_flexzone_temperature", "right_flexzone_temperature"
],
"entities": {
@@ -49,9 +49,6 @@ DEVICE_MAPPING = {
"freezing_power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"function_zone_power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"cross_peak_electricity": {
"device_class": SwitchDeviceClass.SWITCH,
},
@@ -138,7 +135,7 @@ DEVICE_MAPPING = {
"power": "storage_power",
"hvac_modes": {
"off": {"storage_power": "off"},
"heat": {"storage_power": "on"}
"cool": {"storage_power": "on"}
},
"target_temperature": "storage_temperature",
"current_temperature": "refrigeration_real_temperature",
@@ -152,7 +149,7 @@ DEVICE_MAPPING = {
"power": "freezing_power",
"hvac_modes": {
"off": {"freezing_power": "off"},
"heat": {"freezing_power": "on"}
"cool": {"freezing_power": "on"}
},
"target_temperature": "freezing_temperature",
"current_temperature": "freezing_real_temperature",
@@ -165,7 +162,7 @@ DEVICE_MAPPING = {
"power": "left_flexzone_power",
"hvac_modes": {
"off": {"left_flexzone_power": "off"},
"heat": {"left_flexzone_power": "on"}
"cool": {"left_flexzone_power": "on"}
},
"target_temperature": "left_flexzone_temperature",
"current_temperature": "left_variable_real_temperature",
@@ -178,7 +175,7 @@ DEVICE_MAPPING = {
"power": "right_flexzone_power",
"hvac_modes": {
"off": {"right_flexzone_power": "off"},
"heat": {"right_flexzone_power": "on"}
"cool": {"right_flexzone_power": "on"}
},
"target_temperature": "right_flexzone_temperature",
"current_temperature": "right_variable_real_temperature",
@@ -192,26 +189,27 @@ DEVICE_MAPPING = {
"variable_mode": {
"options": {
"none_mode": {"variable_mode": "none_mode"},
"freezing": {"variable_mode": "freezing"},
"refrigeration": {"variable_mode": "refrigeration"},
"wine": {"variable_mode": "wine"},
"vegetable": {"variable_mode": "vegetable"}
"soft_freezing_mode": {"variable_mode": "soft_freezing_mode"},
"zero_fresh_mode": {"variable_mode": "zero_fresh_mode"},
"cold_drink_mode": {"variable_mode": "cold_drink_mode"},
"fresh_product_mode": {"variable_mode": "fresh_product_mode"},
"partial_freezing_mode": {"variable_mode": "partial_freezing_mode"},
"dry_zone_mode": {"variable_mode": "dry_zone_mode"},
"freeze_warm_mode": {"variable_mode": "freeze_warm_mode"},
"freeze_mode": {"variable_mode": "freeze_mode"},
}
},
"icea_bar_function_switch": {
"options": {
"default": {"icea_bar_function_switch": "default"},
"ice": {"icea_bar_function_switch": "ice"},
"water": {"icea_bar_function_switch": "water"},
"off": {"icea_bar_function_switch": "off"}
"refrigeration": {"icea_bar_function_switch": "refrigeration"},
"freezing": {"icea_bar_function_switch": "freezing"},
}
},
"food_site": {
"options": {
"left_freezing_room": {"food_site": "left_freezing_room"},
"right_freezing_room": {"food_site": "right_freezing_room"},
"storage_room": {"food_site": "storage_room"},
"function_zone": {"food_site": "function_zone"}
}
},
"temperature_unit": {
@@ -222,9 +220,6 @@ DEVICE_MAPPING = {
}
},
Platform.SENSOR: {
"mode": {
"device_class": SensorDeviceClass.ENUM,
},
"storage_temperature": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,

View File

@@ -19,9 +19,6 @@ DEVICE_MAPPING = {
"uvswitch": {
"device_class": SwitchDeviceClass.SWITCH,
},
"doorswitch": {
"device_class": SwitchDeviceClass.SWITCH,
},
"dryswitch": {
"device_class": SwitchDeviceClass.SWITCH,
},
@@ -30,6 +27,9 @@ DEVICE_MAPPING = {
}
},
Platform.BINARY_SENSOR: {
"doorswitch": {
"device_class": BinarySensorDeviceClass.RUNNING,
},
"air_status": {
"device_class": BinarySensorDeviceClass.RUNNING,
},
@@ -59,6 +59,16 @@ DEVICE_MAPPING = {
},
},
Platform.SELECT: {
"air_set_hour": {
"options": {
"12": {"air_set_hour": "12" },
"24": {"air_set_hour": "24" },
"36": {"air_set_hour": "36" },
"48": {"air_set_hour": "48" },
"60": {"air_set_hour": "60" },
"72": {"air_set_hour": "72" },
}
},
"work_status": {
"options": {
"power_off": {"work_status": "power_off" },
@@ -96,9 +106,7 @@ DEVICE_MAPPING = {
},
Platform.SENSOR: {
"bright": {
"device_class": SensorDeviceClass.ILLUMINANCE,
"unit_of_measurement": "lx",
"state_class": SensorStateClass.MEASUREMENT
"device_class": SensorDeviceClass.ENUM
},
"temperature": {
"device_class": SensorDeviceClass.TEMPERATURE,
@@ -106,20 +114,13 @@ DEVICE_MAPPING = {
"state_class": SensorStateClass.MEASUREMENT
},
"softwater": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT
"device_class": SensorDeviceClass.ENUM
},
"left_time": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.MINUTES,
"state_class": SensorStateClass.MEASUREMENT
},
"air_set_hour": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.HOURS,
"state_class": SensorStateClass.MEASUREMENT
},
"air_left_hour": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.HOURS,

View File

@@ -7,19 +7,14 @@ DEVICE_MAPPING = {
"default": {
"rationale": ["off", "on"],
"queries": [{}],
"centralized": [
"power", "bubble", "cold_water", "bathtub", "safe", "cold_water_dot",
"change_litre_switch", "cold_water_ai", "cold_water_pressure",
"person_mode_one", "person_mode_two", "person_mode_three", "gesture_function",
"mode", "power_level", "type_machine", "capacity", "temperature"
],
"centralized": [],
"entities": {
Platform.SWITCH: {
"bubble": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1]
},
"cold_water": {
"cold_water_master": {
"device_class": SwitchDeviceClass.SWITCH,
},
"bathtub": {
@@ -49,9 +44,9 @@ DEVICE_MAPPING = {
"person_mode_three": {
"device_class": SwitchDeviceClass.SWITCH,
},
"gesture_function": {
"device_class": SwitchDeviceClass.SWITCH,
}
# "gesture_function": {
# "device_class": SwitchDeviceClass.SWITCH,
# }
},
Platform.CLIMATE: {
"water_heater": {
@@ -74,39 +69,48 @@ DEVICE_MAPPING = {
"shower": {"mode": "shower"},
"bath": {"mode": "bath"},
"mixed": {"mode": "mixed"},
"eco": {"mode": "eco"}
"eco": {"mode": "eco"},
"kitchen": {"mode": "kitchen"},
"thalposis": {"mode": "thalposis"},
"intelligence": {"mode": "intelligence"},
"unfreeze": {"mode": "unfreeze"},
"wash_bowl": {"mode": "wash_bowl"},
"high_temperature": {"mode": "high_temperature"},
"baby": {"mode": "baby"},
"adult": {"mode": "adult"},
"old": {"mode": "old"}
}
},
"power_level": {
"options": {
"low": {"power_level": "0"},
"medium": {"power_level": "1"},
"high": {"power_level": "2"},
"max": {"power_level": "3"}
"low": {"power_level": 0},
"medium": {"power_level": 1},
"high": {"power_level": 2},
"max": {"power_level": 3}
}
},
"type_machine": {
"options": {
"standard": {"type_machine": "20"},
"premium": {"type_machine": "21"},
"deluxe": {"type_machine": "22"}
"standard": {"type_machine": 20},
"premium": {"type_machine": 21},
"deluxe": {"type_machine": 22}
}
},
"capacity": {
"options": {
"small": {"capacity": "1"},
"medium": {"capacity": "2"},
"large": {"capacity": "3"}
"small": {"capacity": 1},
"medium": {"capacity": 2},
"large": {"capacity": 3}
}
},
"gesture_function_type": {
"options": {
"none": {"gesture_function_type": "0"},
"wave": {"gesture_function_type": "1"},
"touch": {"gesture_function_type": "2"},
"proximity": {"gesture_function_type": "3"}
}
}
# "gesture_function_type": {
# "options": {
# "none": {"gesture_function_type": "0"},
# "wave": {"gesture_function_type": "1"},
# "touch": {"gesture_function_type": "2"},
# "proximity": {"gesture_function_type": "3"}
# }
# }
},
Platform.SENSOR: {
"out_water_tem": {

View File

@@ -14,9 +14,11 @@ DEVICE_MAPPING = {
"power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"heat_start": {
"heat": {
"device_class": SwitchDeviceClass.SWITCH,
},
"antifreeze": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1],
},
"lock": {
"device_class": SwitchDeviceClass.SWITCH,
@@ -111,6 +113,17 @@ DEVICE_MAPPING = {
"unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT
},
"input_temperature_Sensing": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT,
"translation_key": "input_temperature_sensing"
},
"hot_pot_temperature": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT
},
"cool_target_temperature": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,
@@ -137,7 +150,7 @@ DEVICE_MAPPING = {
"state_class": SensorStateClass.MEASUREMENT
},
"left_salt": {
"device_class": SensorDeviceClass.POWER,
"device_class": SensorDeviceClass.BATTERY,
"unit_of_measurement": "%",
"state_class": SensorStateClass.MEASUREMENT
},
@@ -186,6 +199,9 @@ DEVICE_MAPPING = {
"unit_of_measurement": UnitOfTime.SECONDS,
"state_class": SensorStateClass.MEASUREMENT
},
"heat_start": {
"device_class": SensorDeviceClass.ENUM,
},
"regeneration_stages": {
"device_class": SensorDeviceClass.ENUM,
},

View File

@@ -9,19 +9,16 @@ DEVICE_MAPPING = {
"rationale": ["off", "on"],
"queries": [{}],
"centralized": [
"power", "disinfect_on_off", "netions_on_off", "airdry_on_off",
"power", "disinfect_on_off", "netIons_on_off", "airDry_on_off",
"wind_gear", "wind_speed", "light_color", "bright_led",
"humidity_mode", "tank_status", "humidity", "cur_humidity"
],
"entities": {
Platform.SWITCH: {
"disinfect_on_off": {
"netIons_on_off": {
"device_class": SwitchDeviceClass.SWITCH,
},
"netions_on_off": {
"device_class": SwitchDeviceClass.SWITCH,
},
"airdry_on_off": {
"airDry_on_off": {
"device_class": SwitchDeviceClass.SWITCH,
},
"power": {
@@ -35,9 +32,6 @@ DEVICE_MAPPING = {
},
"power_off_timer": {
"device_class": SwitchDeviceClass.SWITCH,
},
"display_on_off": {
"device_class": SwitchDeviceClass.SWITCH,
}
},
Platform.BINARY_SENSOR: {
@@ -56,13 +50,19 @@ DEVICE_MAPPING = {
"mode": "humidity_mode",
"modes": {
"manual": {"humidity_mode": "manual"},
"auto": {"humidity_mode": "auto"},
"sleep": {"humidity_mode": "sleep"},
"baby": {"humidity_mode": "baby"}
"moist_skin": {"humidity_mode": "moist_skin"},
"sleep": {"humidity_mode": "sleep"}
}
}
},
Platform.SELECT: {
"humidity_mode": {
"options": {
"manual": {"humidity_mode": "manual"},
"moist_skin": {"humidity_mode": "moist_skin"},
"sleep": {"humidity_mode": "sleep"}
}
},
"wind_gear": {
"options": {
"low": {"wind_gear": "low"},
@@ -77,33 +77,26 @@ DEVICE_MAPPING = {
"low": {"wind_speed": "low"},
"medium": {"wind_speed": "medium"},
"high": {"wind_speed": "high"},
"auto": {"wind_speed": "auto"}
"auto": {"wind_speed": "auto"},
"invalid": {"wind_speed": "invalid"}
}
},
"light_color": {
"options": {
"warm": {"light_color": "warm"},
"cool": {"light_color": "cool"},
"white": {"light_color": "white"},
"blue": {"light_color": "blue"},
"green": {"light_color": "green"},
"red": {"light_color": "red"},
#"cool": {"light_color": "cool"},
#"white": {"light_color": "white"},
#"blue": {"light_color": "blue"},
#"green": {"light_color": "green"},
#"red": {"light_color": "red"},
"off": {"light_color": "off"}
}
},
"bright_led": {
"options": {
"light": {"bright_led": "light"},
"dim": {"bright_led": "dim"},
"off": {"bright_led": "off"}
}
},
"tank_status": {
"options": {
"normal": {"tank_status": "0"},
"low": {"tank_status": "1"},
"empty": {"tank_status": "2"},
"error": {"tank_status": "3"}
"dark": {"bright_led": "dark"},
"exit": {"bright_led": "exit"}
}
}
},
@@ -150,8 +143,13 @@ DEVICE_MAPPING = {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.MINUTES,
"state_class": SensorStateClass.MEASUREMENT
},
"tank_status": {
"device_class": SensorDeviceClass.POWER_FACTOR,
"unit_of_measurement": PERCENTAGE,
"state_class": SensorStateClass.MEASUREMENT
}
}
}
}
}
}

View File

@@ -1,6 +1,6 @@
from homeassistant.components.humidifier import (
HumidifierEntity,
HumidifierDeviceClass
HumidifierDeviceClass, HumidifierEntityFeature
)
from homeassistant.const import Platform
from homeassistant.config_entries import ConfigEntry
@@ -61,6 +61,8 @@ class MideaHumidifierEntity(MideaEntity, HumidifierEntity):
rationale=rationale,
config=config,
)
self._attr_supported_features = HumidifierEntityFeature.MODES
self._attr_available_modes = self._config.get("modes").keys()
@property
def device_class(self):

View File

@@ -7,5 +7,5 @@
"iot_class": "cloud_push",
"issue_tracker": "https://github.com/sususweet/midea-meiju-codec/issues",
"requirements": ["lupa>=2.0"],
"version": "v0.1.6"
"version": "v0.1.8"
}

View File

@@ -123,6 +123,9 @@
},
"entity": {
"binary_sensor": {
"doorswitch": {
"name": "Door Switch"
},
"softener_lack": {
"name": "Softener Lack"
},
@@ -145,7 +148,7 @@
"name": "Bottom Hot"
},
"bright_lack": {
"name": "Brightness Lack"
"name": "Brightener Lack"
},
"carpet_switch": {
"name": "Carpet Switch"
@@ -208,7 +211,7 @@
"name": "RTC Error"
},
"softwater_lack": {
"name": "Soft Water Lack"
"name": "Lack of Soft Water Salt"
},
"storage_door_state": {
"name": "Storage Door State"
@@ -317,6 +320,9 @@
},
"standby_status": {
"name": "Standby Status"
},
"tank_status": {
"name": "Tank Status"
}
},
"climate": {
@@ -342,6 +348,9 @@
"humidifier": {
"humidifier": {
"name": "Humidifier"
},
"dehumidifier": {
"name": "Dehumidifier"
}
},
"select": {
@@ -357,6 +366,9 @@
"control_type": {
"name": "Control Type"
},
"dehydration_speed": {
"name": "Dehydration Speed"
},
"db_dehydration_speed": {
"name": "DB Dehydration Speed"
},
@@ -381,6 +393,9 @@
"db_temperature": {
"name": "DB Temperature"
},
"water_level": {
"name": "Water Level"
},
"db_water_level": {
"name": "DB Water Level"
},
@@ -442,21 +457,7 @@
"name": "Middle Stair Work Status"
},
"mode": {
"name": "Mode",
"options": {
"close_all": "Close All",
"strong_heating": "Strong Heating",
"weak_heating": "Weak Heating",
"heating": "Heating",
"bath": "Bath",
"soft_wind": "Soft Wind",
"ventilation": "Ventilation",
"morning_ventilation": "Morning Ventilation",
"drying": "Drying",
"blowing": "Blowing",
"drying_safe_power": "Drying Safe Power",
"drying_fast": "Drying Fast"
}
"name": "Mode"
},
"mode_state": {
"name": "Mode State"
@@ -464,9 +465,6 @@
"mop_status": {
"name": "Mop Status"
},
"move_direction": {
"name": "Move Direction"
},
"power_level": {
"name": "Power Level"
},
@@ -503,9 +501,6 @@
"sterilize": {
"name": "Sterilize"
},
"sub_work_status": {
"name": "Sub Work Status"
},
"tank_status": {
"name": "Tank Status"
},
@@ -600,15 +595,7 @@
"name": "Swing Vertical"
},
"left_cookmode": {
"name": "Left Cook Mode",
"options": {
"default": "Default",
"order": "Order",
"keep_temperature": "Keep Temperature",
"local_recipe": "Local Recipe",
"cloud_recipe": "Cloud Recipe",
"order_keep_temperature": "Order Keep Temperature"
}
"name": "Left Cook Mode"
},
"left_gear": {
"name": "Left Gear"
@@ -620,22 +607,37 @@
"name": "Heating Direction"
},
"light_mode": {
"name": "Light Mode",
"options": {
"close_all": "Close All",
"night_light": "Night Light",
"main_light": "Main Light",
"all_on": "All On"
}
"name": "Light Mode"
},
"bath_direction": {
"name": "Bath Direction"
},
"drying_direction": {
"name": "Drying Direction"
},
"air_set_hour": {
"name": "Drying Storage Set Time"
},
"power_on_time": {
"name": "Power On Time"
},
"power_off_time": {
"name": "Power Off Time"
}
},
"sensor": {
"fan_level": {
"name": "Fan Level"
},
"mop": {
"name": "Mop Mode"
},
"move_direction": {
"name": "Move Direction"
},
"sub_work_status": {
"name": "Sub Work Status"
},
"mode": {
"name": "Running Mode"
},
@@ -646,10 +648,7 @@
"name": "Air Dry Left Time"
},
"air_left_hour": {
"name": "AC Remaining Time"
},
"air_set_hour": {
"name": "AC Set Time"
"name": "Drying Storage Remaining Time"
},
"appointment_time": {
"name": "Appointment Time"
@@ -679,7 +678,7 @@
"name": "Bottom Temperature"
},
"bright": {
"name": "Brightness"
"name": "Brightener Level"
},
"category": {
"name": "Category"
@@ -801,9 +800,6 @@
"db_wash_time": {
"name": "DB Wash Time"
},
"dehydration_speed": {
"name": "Dehydration Speed"
},
"dehydration_time": {
"name": "Dehydration Time"
},
@@ -1096,7 +1092,7 @@
"name": "Softener Global"
},
"softwater": {
"name": "Soft Water Temp"
"name": "Soft Water Level"
},
"station_error_desc": {
"name": "Station Error Description"
@@ -1475,9 +1471,33 @@
},
"delay_time": {
"name": "Delay Time"
},
"input_temperature_sensing": {
"name": "Input Temperature Sensing"
},
"hot_pot_temperature": {
"name": "Hot Pot Temperature"
},
"water_full_time": {
"name": "Water Full Time"
},
"water_full_level": {
"name": "Water Full Level"
}
},
"switch": {
"anion": {
"name": "Anion"
},
"child_lock": {
"name": "Child Lock"
},
"wind_swing_ud": {
"name": "Wind Swing UD"
},
"filter_tip": {
"name": "Filter Tip"
},
"control_status": {
"name": "Start Pause"
},
@@ -1665,7 +1685,7 @@
"name": "Air Dry On Off"
},
"airswitch": {
"name": "AC Switch"
"name": "Drying Storage Switch"
},
"appointment": {
"name": "Appointment"
@@ -1787,9 +1807,6 @@
"door_warn": {
"name": "Door Warning"
},
"doorswitch": {
"name": "Door Switch"
},
"down_light": {
"name": "Down Light"
},
@@ -1970,12 +1987,6 @@
"power": {
"name": "Power"
},
"power_off_timer": {
"name": "Power Off Timer"
},
"power_on_timer": {
"name": "Power On Timer"
},
"power_state": {
"name": "Power State"
},
@@ -2308,6 +2319,12 @@
},
"drying_direction": {
"name": "Drying Direction"
},
"antifreeze": {
"name": "Antifreeze"
},
"cold_water_master": {
"name": "Cold Water Master"
}
}
}

View File

@@ -123,6 +123,9 @@
},
"entity": {
"binary_sensor": {
"doorswitch": {
"name": "门锁开关"
},
"air_status": {
"name": "空气运行"
},
@@ -133,7 +136,7 @@
"name": "底部加热"
},
"bright_lack": {
"name": "亮光不足"
"name": "亮光不足"
},
"carpet_switch": {
"name": "地毯开关"
@@ -196,7 +199,7 @@
"name": "RTC 错误"
},
"softwater_lack": {
"name": "软水不足"
"name": "软水不足"
},
"storage_door_state": {
"name": "冷藏门状态"
@@ -317,6 +320,9 @@
},
"standby_status": {
"name": "待机状态"
},
"tank_status": {
"name": "水箱状态"
}
},
"climate": {
@@ -342,6 +348,9 @@
"humidifier": {
"humidifier": {
"name": "加湿器"
},
"dehumidifier": {
"name": "除湿器"
}
},
"select": {
@@ -357,6 +366,9 @@
"control_type": {
"name": "控制类型"
},
"dehydration_speed": {
"name": "脱水转速"
},
"db_dehydration_speed": {
"name": "脱水转速"
},
@@ -381,6 +393,9 @@
"db_temperature": {
"name": "温度"
},
"water_level": {
"name": "水位"
},
"db_water_level": {
"name": "水位"
},
@@ -442,21 +457,7 @@
"name": "中层工作状态"
},
"mode": {
"name": "模式",
"options": {
"close_all": "全部关闭",
"strong_heating": "强力加热",
"weak_heating": "弱力加热",
"heating": "加热",
"bath": "浴室",
"soft_wind": "柔风",
"ventilation": "通风",
"morning_ventilation": "晨间通风",
"drying": "烘干",
"blowing": "吹风",
"drying_safe_power": "安全功率烘干",
"drying_fast": "快速烘干"
}
"name": "模式"
},
"mode_state": {
"name": "模式状态"
@@ -464,9 +465,6 @@
"mop_status": {
"name": "拖地状态"
},
"move_direction": {
"name": "移动方向"
},
"power_level": {
"name": "功率等级"
},
@@ -503,9 +501,6 @@
"sterilize": {
"name": "杀菌"
},
"sub_work_status": {
"name": "子工作状态"
},
"tank_status": {
"name": "水箱状态"
},
@@ -600,15 +595,7 @@
"name": "垂直摆风"
},
"left_cookmode": {
"name": "左侧烹饪模式",
"options": {
"default": "默认",
"order": "预约",
"keep_temperature": "保温",
"local_recipe": "本地食谱",
"cloud_recipe": "云食谱",
"order_keep_temperature": "预约保温"
}
"name": "左侧烹饪模式"
},
"left_gear": {
"name": "左侧档位"
@@ -620,22 +607,37 @@
"name": "加热方向"
},
"light_mode": {
"name": "灯光模式",
"options": {
"close_all": "全部关闭",
"night_light": "夜灯",
"main_light": "主灯",
"all_on": "全部开启"
}
"name": "灯光模式"
},
"bath_direction": {
"name": "浴室方向"
},
"drying_direction": {
"name": "烘干方向"
},
"air_set_hour": {
"name": "烘干存储设置时间"
},
"power_on_time": {
"name": "开机时间"
},
"power_off_time": {
"name": "关机时间"
}
},
"sensor": {
"fan_level": {
"name": "风扇档位"
},
"mop": {
"name": "拖布模式"
},
"move_direction": {
"name": "移动方向"
},
"sub_work_status": {
"name": "子工作状态"
},
"mode": {
"name": "运行模式"
},
@@ -646,10 +648,7 @@
"name": "风干剩余时间"
},
"air_left_hour": {
"name": "空调剩余时间"
},
"air_set_hour": {
"name": "空调设置时间"
"name": "烘干存储剩余时间"
},
"appointment_time": {
"name": "预约时间"
@@ -679,7 +678,7 @@
"name": "底部温度"
},
"bright": {
"name": "亮"
"name": "亮光剂档位"
},
"category": {
"name": "类别"
@@ -801,9 +800,6 @@
"db_wash_time": {
"name": "洗涤时间"
},
"dehydration_speed": {
"name": "脱水转速"
},
"dehydration_time": {
"name": "脱水时间"
},
@@ -1096,7 +1092,7 @@
"name": "柔顺剂全局"
},
"softwater": {
"name": "软水温度"
"name": "软水盐档位"
},
"station_error_desc": {
"name": "基站错误描述"
@@ -1475,9 +1471,33 @@
},
"delay_time": {
"name": "延时时间"
},
"input_temperature_sensing": {
"name": "输入温度"
},
"hot_pot_temperature": {
"name": "热水温度"
},
"water_full_time": {
"name": "满水时间"
},
"water_full_level": {
"name": "满水水位"
}
},
"switch": {
"anion": {
"name": "负离子"
},
"child_lock": {
"name": "童锁"
},
"wind_swing_ud": {
"name": "上下摆风"
},
"filter_tip": {
"name": "除菌"
},
"add_water_flag": {
"name": "加水标志"
},
@@ -1665,7 +1685,7 @@
"name": "风干开关"
},
"airswitch": {
"name": "空调开关"
"name": "烘干存储开关"
},
"appointment": {
"name": "预约"
@@ -1707,16 +1727,16 @@
"name": "CO2检测启用"
},
"cold_water": {
"name": "冷水"
"name": "冷水"
},
"cold_water_ai": {
"name": "冷水AI"
"name": "AI零冷水"
},
"cold_water_dot": {
"name": "冷水"
"name": "点动零冷水"
},
"cold_water_pressure": {
"name": "冷水压力"
"name": "双增压"
},
"comp_state": {
"name": "压缩机状态"
@@ -1787,9 +1807,6 @@
"door_warn": {
"name": "门警告"
},
"doorswitch": {
"name": "门锁开关"
},
"down_light": {
"name": "下灯"
},
@@ -1812,7 +1829,7 @@
"name": "烘干通道过热"
},
"dryswitch": {
"name": "烘干开关"
"name": "晶焰烘干开关"
},
"easy_ironing": {
"name": "易熨烫"
@@ -1970,12 +1987,6 @@
"power": {
"name": "电源"
},
"power_off_timer": {
"name": "关机定时器"
},
"power_on_timer": {
"name": "开机定时器"
},
"power_state": {
"name": "电源状态"
},
@@ -2308,6 +2319,12 @@
},
"drying_direction": {
"name": "烘干方向"
},
"antifreeze": {
"name": "防冻模式"
},
"cold_water_master": {
"name": "单次零冷水"
}
}
}