forked from HomeAssistant/midea-meiju-codec
Compare commits
12 Commits
c58b8282cd
...
v0.1.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
066ed7b0a2 | ||
|
|
87fa17c7df | ||
|
|
1cd31305e5 | ||
|
|
59308d1f4f | ||
|
|
0d36e1da6f | ||
|
|
684c143d4f | ||
|
|
0328714227 | ||
|
|
bd4666e1bd | ||
|
|
324ed37de4 | ||
|
|
1f555800f3 | ||
|
|
0ec6b763cd | ||
|
|
4427a1fba9 |
@@ -66,6 +66,7 @@ class MideaClimateEntity(MideaEntity, ClimateEntity):
|
||||
config=config,
|
||||
)
|
||||
self._key_power = self._config.get("power")
|
||||
self._key_pre_mode = self._config.get("pre_mode")
|
||||
self._key_hvac_modes = self._config.get("hvac_modes")
|
||||
self._key_preset_modes = self._config.get("preset_modes")
|
||||
self._key_aux_heat = self._config.get("aux_heat")
|
||||
@@ -193,6 +194,12 @@ class MideaClimateEntity(MideaEntity, ClimateEntity):
|
||||
async def async_turn_off(self):
|
||||
await self._async_set_status_on_off(self._key_power, False)
|
||||
|
||||
async def async_toggle(self):
|
||||
if self.is_on:
|
||||
await self.async_turn_off()
|
||||
else:
|
||||
await self.async_turn_on()
|
||||
|
||||
async def async_set_temperature(self, **kwargs):
|
||||
if ATTR_TEMPERATURE not in kwargs:
|
||||
return
|
||||
@@ -242,8 +249,12 @@ class MideaClimateEntity(MideaEntity, ClimateEntity):
|
||||
return value
|
||||
return value == 1 or value == "on" or value == "true"
|
||||
|
||||
async def _async_set_status_on_off(self, key, value):
|
||||
async def _async_set_status_on_off(self, attribute_key: str | None, turn_on: bool):
|
||||
"""Set on/off status for device attribute."""
|
||||
if key is None:
|
||||
if attribute_key is None:
|
||||
return
|
||||
await self.async_set_attribute(key, value)
|
||||
new_status = {}
|
||||
new_status[attribute_key] = self._rationale[int(turn_on)]
|
||||
if turn_on:
|
||||
new_status[self._key_pre_mode] = self._get_nested_value(self._key_pre_mode)
|
||||
await self.async_set_attributes(new_status)
|
||||
|
||||
145
custom_components/midea_auto_cloud/device_mapping/T0x26.py
Normal file
145
custom_components/midea_auto_cloud/device_mapping/T0x26.py
Normal file
@@ -0,0 +1,145 @@
|
||||
from homeassistant.const import Platform, UnitOfTemperature, PRECISION_HALVES, 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": [
|
||||
"blowing_direction", "function_led_enable", "smelly_trigger", "subpacket_type",
|
||||
"heating_direction", "light_mode", "drying_time", "wifi_led_enable", "mode",
|
||||
"night_light_brightness", "bath_heating_time", "bath_direction", "delay_enable",
|
||||
"main_light_brightness", "current_temperature", "digit_led_enable", "version",
|
||||
"dehumidity_trigger", "delay_time", "bath_temperature", "blowing_speed"
|
||||
],
|
||||
"entities": {
|
||||
Platform.SWITCH: {
|
||||
"function_led_enable": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"smelly_trigger": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"wifi_led_enable": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"delay_enable": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"digit_led_enable": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"dehumidity_trigger": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
}
|
||||
},
|
||||
Platform.SELECT: {
|
||||
"blowing_direction": {
|
||||
"options": {
|
||||
"0": {"blowing_direction": 0},
|
||||
"45": {"blowing_direction": 45},
|
||||
"90": {"blowing_direction": 90},
|
||||
"135": {"blowing_direction": 135},
|
||||
"180": {"blowing_direction": 180},
|
||||
"225": {"blowing_direction": 225},
|
||||
"253": {"blowing_direction": 253}
|
||||
}
|
||||
},
|
||||
"heating_direction": {
|
||||
"options": {
|
||||
"0": {"heating_direction": 0},
|
||||
"45": {"heating_direction": 45},
|
||||
"90": {"heating_direction": 90},
|
||||
"135": {"heating_direction": 135},
|
||||
"180": {"heating_direction": 180},
|
||||
"225": {"heating_direction": 225},
|
||||
"253": {"heating_direction": 253}
|
||||
}
|
||||
},
|
||||
"light_mode": {
|
||||
"options": {
|
||||
"close_all": {"light_mode": "close_all"},
|
||||
"night_light": {"light_mode": "night_light"},
|
||||
"main_light": {"light_mode": "main_light"}
|
||||
}
|
||||
},
|
||||
"mode": {
|
||||
"options": {
|
||||
"close_all": {"mode": "close_all"},
|
||||
"strong_heating": {"mode": "strong_heating"},
|
||||
"weak_heating": {"mode": "weak_heating"},
|
||||
"heating": {"mode": "heating"},
|
||||
"bath": {"mode": "bath"},
|
||||
"soft_wind": {"mode": "soft_wind"},
|
||||
"ventilation": {"mode": "ventilation"},
|
||||
"morning_ventilation": {"mode": "morning_ventilation"},
|
||||
"drying": {"mode": "drying"},
|
||||
"blowing": {"mode": "blowing"},
|
||||
"drying_safe_power": {"mode": "drying_safe_power"},
|
||||
"drying_fast": {"mode": "drying_fast"}
|
||||
}
|
||||
},
|
||||
"bath_direction": {
|
||||
"options": {
|
||||
"0": {"bath_direction": 0},
|
||||
"45": {"bath_direction": 45},
|
||||
"90": {"bath_direction": 90},
|
||||
"135": {"bath_direction": 135},
|
||||
"180": {"bath_direction": 180},
|
||||
"225": {"bath_direction": 225},
|
||||
"253": {"bath_direction": 253}
|
||||
}
|
||||
},
|
||||
"drying_direction": {
|
||||
"options": {
|
||||
"0": {"drying_direction": 0},
|
||||
"45": {"drying_direction": 45},
|
||||
"90": {"drying_direction": 90},
|
||||
"135": {"drying_direction": 135},
|
||||
"180": {"drying_direction": 180},
|
||||
"225": {"drying_direction": 225},
|
||||
"253": {"drying_direction": 253}
|
||||
}
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"drying_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"night_light_brightness": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"bath_heating_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"main_light_brightness": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"current_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"delay_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"bath_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"blowing_speed": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91,6 +91,7 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"target_temperature": ["temperature", "small_temperature"],
|
||||
"current_temperature": "indoor_temperature",
|
||||
"pre_mode": "mode",
|
||||
"aux_heat": "ptc",
|
||||
"min_temp": 17,
|
||||
"max_temp": 30,
|
||||
@@ -108,13 +109,16 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"prevent_straight_wind": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [1, 2]
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"aux_heat": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"mode": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"indoor_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
@@ -175,6 +179,7 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"target_temperature": ["temperature", "small_temperature"],
|
||||
"current_temperature": "indoor_temperature",
|
||||
"pre_mode": "mode",
|
||||
"aux_heat": "ptc",
|
||||
"min_temp": 17,
|
||||
"max_temp": 30,
|
||||
@@ -198,6 +203,9 @@ DEVICE_MAPPING = {
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"mode": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"indoor_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
|
||||
117
custom_components/midea_auto_cloud/device_mapping/T0xB7.py
Normal file
117
custom_components/midea_auto_cloud/device_mapping/T0xB7.py
Normal file
@@ -0,0 +1,117 @@
|
||||
from homeassistant.const import Platform, UnitOfTemperature, PRECISION_HALVES, 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": [
|
||||
"left_power", "left_recipe_current_step_action", "left_recipe_id",
|
||||
"left_dry_fire_protection", "left_recipe_rest_time", "left_gear",
|
||||
"left_current_temperature", "lock", "left_status", "eq_recipe_action",
|
||||
"left_lock", "gas_leakage_code", "left_work_time", "left_recipe_current_step",
|
||||
"left_recipe_target_steps", "version", "left_recipe_target_time",
|
||||
"is_error", "left_cookmode", "light_lampblack_mode", "error_type"
|
||||
],
|
||||
"entities": {
|
||||
Platform.SWITCH: {
|
||||
"left_power": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"left_dry_fire_protection": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"left_lock": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"lock": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ['0', '1'],
|
||||
},
|
||||
"light_lampblack_mode": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1],
|
||||
}
|
||||
},
|
||||
Platform.SELECT: {
|
||||
"left_cookmode": {
|
||||
"options": {
|
||||
"default": {"left_cookmode": "default"},
|
||||
"order": {"left_cookmode": "order"},
|
||||
"keep_temperature": {"left_cookmode": "keep_temperature"},
|
||||
"local_recipe": {"left_cookmode": "local_recipe"},
|
||||
"cloud_recipe": {"left_cookmode": "cloud_recipe"},
|
||||
"order_keep_temperature": {"left_cookmode": "order_keep_temperature"},
|
||||
}
|
||||
},
|
||||
"left_gear": {
|
||||
"options": {
|
||||
"0": {"left_gear": 0},
|
||||
"1": {"left_gear": 1},
|
||||
"2": {"left_gear": 2},
|
||||
"3": {"left_gear": 3},
|
||||
"4": {"left_gear": 4},
|
||||
"5": {"left_gear": 5},
|
||||
"6": {"left_gear": 6},
|
||||
"7": {"left_gear": 7},
|
||||
"8": {"left_gear": 8},
|
||||
"9": {"left_gear": 9}
|
||||
}
|
||||
},
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"left_recipe_current_step_action": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"left_recipe_id": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"left_recipe_rest_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.SECONDS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"left_current_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"left_status": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"eq_recipe_action": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"gas_leakage_code": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"left_work_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.SECONDS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"left_recipe_current_step": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"left_recipe_target_steps": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"left_recipe_target_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.SECONDS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"error_type": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
}
|
||||
},
|
||||
Platform.BINARY_SENSOR: {
|
||||
"is_error": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
from homeassistant.const import Platform, UnitOfTemperature, PRECISION_HALVES, UnitOfTime, UnitOfArea, UnitOfVolume
|
||||
from homeassistant.const import Platform, UnitOfTime, UnitOfArea
|
||||
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
|
||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
from homeassistant.components.switch import SwitchDeviceClass
|
||||
|
||||
DEVICE_MAPPING = {
|
||||
"default": {
|
||||
@@ -10,90 +9,45 @@ DEVICE_MAPPING = {
|
||||
"centralized": [],
|
||||
"entities": {
|
||||
Platform.SELECT: {
|
||||
"fan_level": {
|
||||
"fan_setting": {
|
||||
"options": {
|
||||
"low": {"fan_level": "low"},
|
||||
"medium": {"fan_level": "medium"},
|
||||
"high": {"fan_level": "high"},
|
||||
"auto": {"fan_level": "auto"}
|
||||
"soft": {"level": "soft"},
|
||||
"normal": {"level": "normal"},
|
||||
"high": {"level": "high"},
|
||||
"super": {"level": "super"}
|
||||
}
|
||||
},
|
||||
"work_mode": {
|
||||
"options": {
|
||||
"none": {"work_mode": "none"},
|
||||
"auto": {"work_mode": "auto"},
|
||||
"spot": {"work_mode": "spot"},
|
||||
"edge": {"work_mode": "edge"},
|
||||
"single_room": {"work_mode": "single_room"},
|
||||
"custom": {"work_mode": "custom"}
|
||||
"sweep_and_mop": {"work_mode": "sweep_and_mop"},
|
||||
"sweep": {"work_mode": "sweep"},
|
||||
"mop": {"work_mode": "mop"},
|
||||
"sweep_then_mop": {"work_mode": "sweep_then_mop"}
|
||||
}
|
||||
},
|
||||
"work_status": {
|
||||
"options": {
|
||||
"idle": {"work_status": "idle"},
|
||||
"cleaning": {"work_status": "cleaning"},
|
||||
"returning": {"work_status": "returning"},
|
||||
"docked": {"work_status": "docked"},
|
||||
"on_base": {"work_status": "on_base"},
|
||||
"charging": {"work_status": "charging"},
|
||||
"error": {"work_status": "error"}
|
||||
"charge": {"work_status": "charge"},
|
||||
"charge_pause": {"work_status": "charge_pause"},
|
||||
"charge_continue": {"work_status": "charge_continue"},
|
||||
"auto_clean": {"work_status": "auto_clean"},
|
||||
"auto_clean_pause": {"work_status": "auto_clean_pause"},
|
||||
"auto_clean_continue": {"work_status": "auto_clean_continue"},
|
||||
"pause": {"work_status": "pause"},
|
||||
"stop": {"work_status": "stop"},
|
||||
"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"},
|
||||
}
|
||||
},
|
||||
"move_direction": {
|
||||
"water_tank_setting": {
|
||||
"options": {
|
||||
"none": {"move_direction": "none"},
|
||||
"forward": {"move_direction": "forward"},
|
||||
"backward": {"move_direction": "backward"},
|
||||
"left": {"move_direction": "left"},
|
||||
"right": {"move_direction": "right"}
|
||||
"low": {"level": "low"},
|
||||
"normal": {"level": "normal"},
|
||||
"high": {"level": "high"}
|
||||
}
|
||||
},
|
||||
"query_type": {
|
||||
"options": {
|
||||
"work": {"query_type": "work"},
|
||||
"status": {"query_type": "status"},
|
||||
"battery": {"query_type": "battery"},
|
||||
"error": {"query_type": "error"}
|
||||
}
|
||||
},
|
||||
"sub_work_status": {
|
||||
"options": {
|
||||
"idle": {"sub_work_status": "idle"},
|
||||
"cleaning": {"sub_work_status": "cleaning"},
|
||||
"charging": {"sub_work_status": "charging"},
|
||||
"charge_finish": {"sub_work_status": "charge_finish"},
|
||||
"error": {"sub_work_status": "error"}
|
||||
}
|
||||
},
|
||||
"water_level": {
|
||||
"options": {
|
||||
"low": {"water_level": "low"},
|
||||
"normal": {"water_level": "normal"},
|
||||
"high": {"water_level": "high"}
|
||||
}
|
||||
},
|
||||
"mop_status": {
|
||||
"options": {
|
||||
"normal": {"mop_status": "normal"},
|
||||
"lack_water": {"mop_status": "lack_water"},
|
||||
"full_water": {"mop_status": "full_water"}
|
||||
}
|
||||
},
|
||||
"error_type": {
|
||||
"options": {
|
||||
"no_error": {"error_type": "no_error"},
|
||||
"can_fix": {"error_type": "can_fix"},
|
||||
"need_help": {"error_type": "need_help"}
|
||||
}
|
||||
},
|
||||
"control_type": {
|
||||
"options": {
|
||||
"none": {"control_type": "none"},
|
||||
"app": {"control_type": "app"},
|
||||
"remote": {"control_type": "remote"},
|
||||
"auto": {"control_type": "auto"}
|
||||
}
|
||||
}
|
||||
},
|
||||
Platform.BINARY_SENSOR: {
|
||||
"carpet_switch": {
|
||||
@@ -104,6 +58,21 @@ DEVICE_MAPPING = {
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"control_type": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"mop_status": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"sub_work_status": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"query_type": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"move_direction": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"dust_count": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
|
||||
@@ -142,6 +142,7 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"target_temperature": "storage_temperature",
|
||||
"current_temperature": "refrigeration_real_temperature",
|
||||
"pre_mode": "mode",
|
||||
"min_temp": -10,
|
||||
"max_temp": 10,
|
||||
"temperature_unit": UnitOfTemperature.CELSIUS,
|
||||
@@ -221,6 +222,9 @@ DEVICE_MAPPING = {
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"mode": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"storage_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
|
||||
@@ -48,6 +48,7 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"target_temperature": "temperature.current",
|
||||
"current_temperature": "temperature.room",
|
||||
"pre_mode": "mode",
|
||||
"min_temp": 17,
|
||||
"max_temp": 30,
|
||||
"temperature_unit": UnitOfTemperature.CELSIUS,
|
||||
@@ -89,6 +90,9 @@ DEVICE_MAPPING = {
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"mode": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"room_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
|
||||
@@ -22,6 +22,7 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"target_temperature": "temp_set",
|
||||
"current_temperature": "cur_temp",
|
||||
"pre_mode": "mode",
|
||||
"min_temp": 5,
|
||||
"max_temp": 70,
|
||||
"temperature_unit": UnitOfTemperature.CELSIUS,
|
||||
@@ -103,6 +104,9 @@ DEVICE_MAPPING = {
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"mode": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"cur_temp": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
|
||||
@@ -19,59 +19,25 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"entities": {
|
||||
Platform.BINARY_SENSOR: {
|
||||
"power": {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
"softener_lack": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"detergent_lack": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"door_opened": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"bucket_water_overheating": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
},
|
||||
Platform.SWITCH: {
|
||||
"softener_lack": {
|
||||
"power": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"detergent_lack": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"door_opened": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"bucket_water_overheating": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"memory": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"appointment": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"spray_wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"old_speedy": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"nightly": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"down_light": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"easy_ironing": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"super_clean_wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"intelligent_wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"strong_wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"silent": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ["0", "1"],
|
||||
},
|
||||
"speedy": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"control_status": {
|
||||
"rationale": ["pause", "start"],
|
||||
},
|
||||
"lock": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
@@ -79,36 +45,6 @@ DEVICE_MAPPING = {
|
||||
"flocks_switcher": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"fresh_anion_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"dry_weighing_already": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"keep_fresh_status": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"drying_tunnel_overheating": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"fast_clean_wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"steam_wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"beforehand_wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"ai_flag": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"water_plus": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"soak": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"ultraviolet_lamp": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ["0", "1"],
|
||||
@@ -128,27 +64,8 @@ DEVICE_MAPPING = {
|
||||
"cycle_memory": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"disinfectant": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ["0", "1"],
|
||||
},
|
||||
"add_rinse": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ["0", "1"],
|
||||
},
|
||||
},
|
||||
Platform.SELECT: {
|
||||
"running_status": {
|
||||
"options": {
|
||||
"off": {"power": "off", "running_status": "off"},
|
||||
"standby": {"power": "on", "running_status": "standby"},
|
||||
"start": {"power": "on", "running_status": "start"},
|
||||
"pause": {"power": "on", "running_status": "pause"},
|
||||
"end": {"power": "on", "running_status": "end"},
|
||||
"fault": {"power": "on", "running_status": "fault"},
|
||||
"delay": {"power": "on", "running_status": "delay"}
|
||||
}
|
||||
},
|
||||
"dehydration_speed": {
|
||||
"options": {
|
||||
"0": {"dehydration_speed": "0"},
|
||||
@@ -327,6 +244,9 @@ DEVICE_MAPPING = {
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"running_status": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"wash_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
@@ -353,44 +273,11 @@ DEVICE_MAPPING = {
|
||||
"unit_of_measurement": "%",
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"cloud_cycle_low": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"cloud_cycle_high": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"cloud_cycle_jiepai1": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"cloud_cycle_jiepai2": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"cloud_cycle_jiepai3": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"cloud_cycle_jiepai4": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"cloud_cycle_jiepai_time1": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"dehydration_time_value": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"cloud_cycle_jiepai_time3": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"cloud_cycle_jiepai_time4": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"customize_machine_cycle": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
@@ -416,9 +303,6 @@ DEVICE_MAPPING = {
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"device_software_version": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
"expert_step": {
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
},
|
||||
|
||||
@@ -7,53 +7,59 @@ DEVICE_MAPPING = {
|
||||
"default": {
|
||||
"rationale": ["off", "on"],
|
||||
"queries": [{}],
|
||||
"centralized": [
|
||||
"power", "ai_switch", "light", "appointment", "prevent_wrinkle_switch",
|
||||
"steam_switch", "damp_dry_signal", "eco_dry_switch", "bucket_clean_switch",
|
||||
"water_box", "baby_lock", "remind_sound", "steam", "prevent_wrinkle",
|
||||
"material", "sterilize", "dryness_level", "dry_temp", "intensity", "program"
|
||||
],
|
||||
"centralized": [],
|
||||
"entities": {
|
||||
Platform.SWITCH: {
|
||||
"power": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"control_status": {
|
||||
"rationale": ["pause", "start"],
|
||||
},
|
||||
"ai_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"light": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"appointment": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"prevent_wrinkle_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"steam_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"damp_dry_signal": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"eco_dry_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"bucket_clean_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"water_box": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"baby_lock": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"remind_sound": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"steam": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"power": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
}
|
||||
},
|
||||
Platform.BINARY_SENSOR: {
|
||||
"door_warn": {
|
||||
@@ -61,61 +67,68 @@ DEVICE_MAPPING = {
|
||||
}
|
||||
},
|
||||
Platform.SELECT: {
|
||||
"prevent_wrinkle": {
|
||||
"options": {
|
||||
"off": {"prevent_wrinkle": "0"},
|
||||
"low": {"prevent_wrinkle": "1"},
|
||||
"medium": {"prevent_wrinkle": "2"},
|
||||
"high": {"prevent_wrinkle": "3"}
|
||||
}
|
||||
},
|
||||
"material": {
|
||||
"options": {
|
||||
"cotton": {"material": "0"},
|
||||
"synthetic": {"material": "1"},
|
||||
"wool": {"material": "2"},
|
||||
"delicate": {"material": "3"},
|
||||
"mixed": {"material": "4"}
|
||||
}
|
||||
},
|
||||
"sterilize": {
|
||||
"options": {
|
||||
"off": {"sterilize": "0"},
|
||||
"on": {"sterilize": "1"}
|
||||
}
|
||||
},
|
||||
"dryness_level": {
|
||||
"options": {
|
||||
"extra_dry": {"dryness_level": "0"},
|
||||
"dry": {"dryness_level": "1"},
|
||||
"normal": {"dryness_level": "2"},
|
||||
"damp": {"dryness_level": "3"}
|
||||
}
|
||||
},
|
||||
"dry_temp": {
|
||||
"options": {
|
||||
"low": {"dry_temp": "0"},
|
||||
"medium": {"dry_temp": "1"},
|
||||
"high": {"dry_temp": "2"},
|
||||
"extra_high": {"dry_temp": "3"}
|
||||
}
|
||||
},
|
||||
"intensity": {
|
||||
"options": {
|
||||
"low": {"intensity": "0"},
|
||||
"medium": {"intensity": "1"},
|
||||
"high": {"intensity": "2"}
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"options": {
|
||||
"mixed_wash": {"program": "mixed_wash"},
|
||||
"cotton": {"program": "cotton"},
|
||||
"synthetic": {"program": "synthetic"},
|
||||
"fiber": {"program": "fiber"},
|
||||
"mixed_wash": {"program": "mixed_wash"},
|
||||
"jean": {"program": "jean"},
|
||||
"bedsheet": {"program": "bedsheet"},
|
||||
"outdoor": {"program": "outdoor"},
|
||||
"down_jacket": {"program": "down_jacket"},
|
||||
"plush": {"program": "plush"},
|
||||
"wool": {"program": "wool"},
|
||||
"delicate": {"program": "delicate"},
|
||||
"quick": {"program": "quick"},
|
||||
"eco": {"program": "eco"}
|
||||
"dehumidify": {"program": "dehumidify"},
|
||||
"cold_air_fresh_air": {"program": "cold_air_fresh_air"},
|
||||
"hot_air_dry": {"program": "hot_air_dry"},
|
||||
"sport_clothes": {"program": "sport_clothes"},
|
||||
"underwear": {"program": "underwear"},
|
||||
"baby_clothes": {"program": "baby_clothes"},
|
||||
"shirt": {"program": "shirt"},
|
||||
"standard": {"program": "standard"},
|
||||
"quick_dry": {"program": "quick_dry"},
|
||||
"fresh_air": {"program": "fresh_air"},
|
||||
"low_temp_dry": {"program": "low_temp_dry"},
|
||||
"eco_dry": {"program": "eco_dry"},
|
||||
"quick_dry_30": {"program": "quick_dry_30"},
|
||||
"towel": {"program": "towel"},
|
||||
"intelligent_dry": {"program": "intelligent_dry"},
|
||||
"steam_care": {"program": "steam_care"},
|
||||
"big": {"program": "big"},
|
||||
"fixed_time_dry": {"program": "fixed_time_dry"},
|
||||
"night_dry": {"program": "night_dry"},
|
||||
"bracket_dry": {"program": "bracket_dry"},
|
||||
"western_trouser": {"program": "western_trouser"},
|
||||
"dehumidification": {"program": "dehumidification"},
|
||||
"smart_dry": {"program": "smart_dry"},
|
||||
"four_piece_suit": {"program": "four_piece_suit"},
|
||||
"warm_clothes": {"program": "warm_clothes"},
|
||||
"quick_dry_20": {"program": "quick_dry_20"},
|
||||
"steam_sterilize": {"program": "steam_sterilize"},
|
||||
"enzyme": {"program": "enzyme"},
|
||||
"big_60": {"program": "big_60"},
|
||||
"steam_no_iron": {"program": "steam_no_iron"},
|
||||
"air_wash": {"program": "air_wash"},
|
||||
"bed_clothes": {"program": "bed_clothes"},
|
||||
"little_fast_dry": {"program": "little_fast_dry"},
|
||||
"small_piece_dry": {"program": "small_piece_dry"},
|
||||
"big_dry": {"program": "big_dry"},
|
||||
"wool_nurse": {"program": "wool_nurse"},
|
||||
"sun_quilt": {"program": "sun_quilt"},
|
||||
"fresh_remove_smell": {"program": "fresh_remove_smell"},
|
||||
"bucket_self_clean": {"program": "bucket_self_clean"},
|
||||
"silk": {"program": "silk"},
|
||||
"sterilize": {"program": "sterilize"},
|
||||
"heavy_duty": {"program": "heavy_duty"},
|
||||
"towel_warmer": {"program": "towel_warmer"},
|
||||
"air_fluff": {"program": "air_fluff"},
|
||||
"delicates": {"program": "delicates"},
|
||||
"time_drying_30": {"program": "time_drying_30"},
|
||||
"time_drying_60": {"program": "time_drying_60"},
|
||||
"time_drying_90": {"program": "time_drying_90"},
|
||||
"dry_softnurse": {"program": "dry_softnurse"},
|
||||
"uniforms": {"program": "uniforms"},
|
||||
"remove_electricity": {"program": "remove_electricity"}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ from homeassistant.components.switch import SwitchDeviceClass
|
||||
|
||||
DEVICE_MAPPING = {
|
||||
"default": {
|
||||
"rationale": ["off", "on"],
|
||||
"rationale": [0, 1],
|
||||
"queries": [{}],
|
||||
"centralized": [],
|
||||
"entities": {
|
||||
@@ -34,16 +34,16 @@ DEVICE_MAPPING = {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
},
|
||||
"water_lack": {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"softwater_lack": {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"wash_stage":{
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
},
|
||||
"bright_lack": {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"diy_flag": {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
@@ -63,33 +63,36 @@ DEVICE_MAPPING = {
|
||||
"options": {
|
||||
"power_off": {"work_status": "power_off" },
|
||||
"power_on": {"work_status": "power_on" },
|
||||
"cancel": {"work_status": "cancel" },
|
||||
"pause": {"operator":"pause"},
|
||||
"resume": {"operator":"start"},
|
||||
}
|
||||
},
|
||||
"wash_mode": {
|
||||
"options": {
|
||||
"neutral_gear": {"mode": "neutral_gear"},
|
||||
"auto_wash": {"mode": "auto_wash"},
|
||||
"strong_wash": {"mode": "strong_wash"},
|
||||
"standard_wash": {"mode": "standard_wash"},
|
||||
"eco_wash": {"mode": "eco_wash"},
|
||||
"glass_wash": {"mode": "glass_wash"},
|
||||
"hour_wash": {"mode": "hour_wash"},
|
||||
"fast_wash": {"mode": "fast_wash"},
|
||||
"soak_wash": {"mode": "soak_wash"},
|
||||
"90min_wash": {"mode": "90min_wash"},
|
||||
"self_clean": {"mode": "self_clean"},
|
||||
"fruit_wash": {"mode": "fruit_wash"},
|
||||
"self_define": {"mode": "self_define"},
|
||||
"germ": {"mode": "germ"},
|
||||
"bowl_wash": {"mode": "bowl_wash"},
|
||||
"kill_germ": {"mode": "kill_germ"},
|
||||
"seafood_wash": {"mode": "seafood_wash"},
|
||||
"hotpot_wash": {"mode": "hotpot_wash"},
|
||||
"quietnight_wash": {"mode": "quietnight_wash"},
|
||||
"less_wash": {"mode": "less_wash"},
|
||||
"oilnet_wash": {"mode": "oilnet_wash"}
|
||||
"neutral_gear": {"work_status": "work", "mode": "neutral_gear"},
|
||||
"auto_wash": {"work_status": "work", "mode": "auto_wash"},
|
||||
"strong_wash": {"work_status": "work", "mode": "strong_wash"},
|
||||
"standard_wash": {"work_status": "work", "mode": "standard_wash"},
|
||||
"eco_wash": {"work_status":"work","mode":"eco_wash","additional":0,"wash_region":3},
|
||||
"glass_wash": {"work_status": "work", "mode": "glass_wash"},
|
||||
"hour_wash": {"work_status": "work", "mode": "hour_wash"},
|
||||
"fast_wash": {"work_status": "work", "mode": "fast_wash"},
|
||||
"soak_wash": {"work_status": "work", "mode": "soak_wash"},
|
||||
"90min_wash": {"work_status": "work", "mode": "90min_wash"},
|
||||
"self_clean": {"work_status": "work", "mode": "self_clean"},
|
||||
"fruit_wash": {"work_status": "work", "mode": "fruit_wash"},
|
||||
"self_define": {"work_status": "work", "mode": "self_define"},
|
||||
"germ": {"work_status": "work", "mode": "germ"},
|
||||
"bowl_wash": {"work_status": "work", "mode": "bowl_wash"},
|
||||
"kill_germ": {"work_status": "work", "mode": "kill_germ"},
|
||||
"seafood_wash": {"work_status": "work", "mode": "seafood_wash"},
|
||||
"hotpot_wash": {"work_status": "work", "mode": "hotpot_wash"},
|
||||
"quietnight_wash": {"work_status": "work", "mode": "quietnight_wash"},
|
||||
"less_wash": {"work_status": "work", "mode": "less_wash"},
|
||||
"oilnet_wash": {"work_status": "work", "mode": "oilnet_wash"}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"bright": {
|
||||
@@ -109,7 +112,7 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"left_time": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.HOURS,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"air_set_hour": {
|
||||
|
||||
@@ -17,6 +17,7 @@ DEVICE_MAPPING = {
|
||||
Platform.SWITCH: {
|
||||
"bubble": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": [0, 1]
|
||||
},
|
||||
"cold_water": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from homeassistant.const import Platform, UnitOfTemperature, PRECISION_HALVES, UnitOfTime, UnitOfElectricPotential, \
|
||||
from homeassistant.const import Platform, UnitOfTemperature, UnitOfTime, UnitOfElectricPotential, \
|
||||
UnitOfVolume, UnitOfMass
|
||||
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
|
||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
@@ -42,6 +42,30 @@ DEVICE_MAPPING = {
|
||||
"wash_enable": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"water_way": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"soften": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"regeneration": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"maintenance_reminder_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"leak_water_protection": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"micro_leak_protection": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"cl_sterilization": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"holiday_mode": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
},
|
||||
Platform.BINARY_SENSOR: {
|
||||
"heat_status": {
|
||||
@@ -55,6 +79,30 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
"rtc_error": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"low_salt": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"no_salt": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"low_battery": {
|
||||
"device_class": BinarySensorDeviceClass.BATTERY,
|
||||
},
|
||||
"flowmeter_error": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"salt_level_sensor_error": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"leak_water": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"micro_leak": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
},
|
||||
"maintenance_remind": {
|
||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
@@ -83,6 +131,123 @@ DEVICE_MAPPING = {
|
||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"salt_alarm_threshold": {
|
||||
"device_class": SensorDeviceClass.WEIGHT,
|
||||
"unit_of_measurement": UnitOfMass.KILOGRAMS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"left_salt": {
|
||||
"device_class": SensorDeviceClass.POWER,
|
||||
"unit_of_measurement": "%",
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"salt_setting": {
|
||||
"device_class": SensorDeviceClass.WEIGHT,
|
||||
"unit_of_measurement": UnitOfMass.KILOGRAMS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"supply_voltage": {
|
||||
"device_class": SensorDeviceClass.VOLTAGE,
|
||||
"unit_of_measurement": UnitOfElectricPotential.VOLT,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"battery_voltage": {
|
||||
"device_class": SensorDeviceClass.VOLTAGE,
|
||||
"unit_of_measurement": UnitOfElectricPotential.VOLT,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"water_hardness": {
|
||||
"device_class": SensorDeviceClass.WATER,
|
||||
"unit_of_measurement": "mg/L",
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"water_consumption_big": {
|
||||
"device_class": SensorDeviceClass.VOLUME,
|
||||
"unit_of_measurement": UnitOfVolume.LITERS,
|
||||
"state_class": SensorStateClass.TOTAL_INCREASING
|
||||
},
|
||||
"water_consumption_today": {
|
||||
"device_class": SensorDeviceClass.VOLUME,
|
||||
"unit_of_measurement": UnitOfVolume.LITERS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"water_consumption_average": {
|
||||
"device_class": SensorDeviceClass.VOLUME,
|
||||
"unit_of_measurement": UnitOfVolume.LITERS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"soft_available_big": {
|
||||
"device_class": SensorDeviceClass.VOLUME,
|
||||
"unit_of_measurement": UnitOfVolume.LITERS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"regeneration_left_seconds": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.SECONDS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"regeneration_stages": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"regeneration_current_stages": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"regeneration_count": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"days_since_last_regeneration": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.DAYS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"days_since_last_two_regeneration": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.DAYS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"use_days": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.DAYS,
|
||||
"state_class": SensorStateClass.TOTAL_INCREASING
|
||||
},
|
||||
"flushing_days": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.DAYS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"pre_regeneration_days": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.DAYS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"remind_maintenance_days": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.DAYS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"maintenance_reminder_setting": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": UnitOfTime.DAYS,
|
||||
"state_class": SensorStateClass.MEASUREMENT
|
||||
},
|
||||
"micro_leak_protection_value": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"leak_water_protection_value": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"mixed_water_gear": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"velocity": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"error": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
"category": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3"
|
||||
"version": "v0.1.6"
|
||||
}
|
||||
@@ -67,10 +67,10 @@
|
||||
"server": "Server"
|
||||
}
|
||||
},
|
||||
"reset":{
|
||||
"reset": {
|
||||
"title": "Reset the configuration of appliance",
|
||||
"description": "Remove the old configuration and make a new configuration use template\nIf your configuration was modified, the changes will lost\nIf your appliance type or model not in template, then the new configuration won't be made",
|
||||
"data":{
|
||||
"data": {
|
||||
"check": "I know that, do it"
|
||||
}
|
||||
},
|
||||
@@ -82,7 +82,7 @@
|
||||
"title": "Option"
|
||||
}
|
||||
},
|
||||
"abort":{
|
||||
"abort": {
|
||||
"reset_success": "Reset done",
|
||||
"account_unsupport_config": "Doesn't support this operation"
|
||||
}
|
||||
@@ -91,7 +91,7 @@
|
||||
"set_attribute": {
|
||||
"name": "set the attributes",
|
||||
"description": "Set the attributes of appliance in a dict",
|
||||
"fields" : {
|
||||
"fields": {
|
||||
"device_id": {
|
||||
"name": "Appliance code",
|
||||
"description": "Appliance code (Device ID)"
|
||||
@@ -105,7 +105,7 @@
|
||||
"send_command": {
|
||||
"name": "Custom command",
|
||||
"description": "Send a custom command to appliance",
|
||||
"fields" : {
|
||||
"fields": {
|
||||
"device_id": {
|
||||
"name": "Appliance code",
|
||||
"description": "Appliance code (Device ID)"
|
||||
@@ -123,6 +123,18 @@
|
||||
},
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"softener_lack": {
|
||||
"name": "Softener Lack"
|
||||
},
|
||||
"detergent_lack": {
|
||||
"name": "Detergent Lack"
|
||||
},
|
||||
"door_opened": {
|
||||
"name": "Door Opened"
|
||||
},
|
||||
"bucket_water_overheating": {
|
||||
"name": "Bucket Water Overheating"
|
||||
},
|
||||
"air_status": {
|
||||
"name": "Air Running"
|
||||
},
|
||||
@@ -171,6 +183,27 @@
|
||||
"maintenance_remind": {
|
||||
"name": "Maintenance Remind"
|
||||
},
|
||||
"low_salt": {
|
||||
"name": "Low Salt"
|
||||
},
|
||||
"no_salt": {
|
||||
"name": "No Salt"
|
||||
},
|
||||
"low_battery": {
|
||||
"name": "Low Battery"
|
||||
},
|
||||
"flowmeter_error": {
|
||||
"name": "Flowmeter Error"
|
||||
},
|
||||
"salt_level_sensor_error": {
|
||||
"name": "Salt Level Sensor Error"
|
||||
},
|
||||
"leak_water": {
|
||||
"name": "Leak Water"
|
||||
},
|
||||
"micro_leak": {
|
||||
"name": "Micro Leak"
|
||||
},
|
||||
"rtc_error": {
|
||||
"name": "RTC Error"
|
||||
},
|
||||
@@ -375,7 +408,7 @@
|
||||
"error_type": {
|
||||
"name": "Error Type"
|
||||
},
|
||||
"fan_level": {
|
||||
"fan_setting": {
|
||||
"name": "Fan Level"
|
||||
},
|
||||
"fan_set": {
|
||||
@@ -409,7 +442,21 @@
|
||||
"name": "Middle Stair Work Status"
|
||||
},
|
||||
"mode": {
|
||||
"name": "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"
|
||||
}
|
||||
},
|
||||
"mode_state": {
|
||||
"name": "Mode State"
|
||||
@@ -480,7 +527,7 @@
|
||||
"variable_mode": {
|
||||
"name": "Variable Mode"
|
||||
},
|
||||
"water_level": {
|
||||
"water_tank_setting": {
|
||||
"name": "Water Level"
|
||||
},
|
||||
"wind_gear": {
|
||||
@@ -507,6 +554,9 @@
|
||||
"work_status": {
|
||||
"name": "Work Status"
|
||||
},
|
||||
"wash_mode": {
|
||||
"name": "Wash Mode"
|
||||
},
|
||||
"voice": {
|
||||
"name": "Voice"
|
||||
},
|
||||
@@ -548,9 +598,47 @@
|
||||
},
|
||||
"swing_vertical": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"left_gear": {
|
||||
"name": "Left Gear"
|
||||
},
|
||||
"blowing_direction": {
|
||||
"name": "Blowing Direction"
|
||||
},
|
||||
"heating_direction": {
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"bath_direction": {
|
||||
"name": "Bath Direction"
|
||||
},
|
||||
"drying_direction": {
|
||||
"name": "Drying Direction"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"mode": {
|
||||
"name": "Running Mode"
|
||||
},
|
||||
"active_oxygen": {
|
||||
"name": "Active Oxygen"
|
||||
},
|
||||
@@ -722,9 +810,6 @@
|
||||
"dehydration_time_value": {
|
||||
"name": "Dehydration Time Value"
|
||||
},
|
||||
"delay_time": {
|
||||
"name": "Delay Time"
|
||||
},
|
||||
"detergent_density_global": {
|
||||
"name": "Detergent Density Global"
|
||||
},
|
||||
@@ -836,9 +921,6 @@
|
||||
"left_flexzone_temperature": {
|
||||
"name": "Left Flexzone Temperature"
|
||||
},
|
||||
"left_salt": {
|
||||
"name": "Left Salt"
|
||||
},
|
||||
"left_time": {
|
||||
"name": "Remaining Time"
|
||||
},
|
||||
@@ -1073,9 +1155,6 @@
|
||||
"velocity": {
|
||||
"name": "Velocity"
|
||||
},
|
||||
"version": {
|
||||
"name": "Version"
|
||||
},
|
||||
"voice_level": {
|
||||
"name": "Voice Level"
|
||||
},
|
||||
@@ -1336,9 +1415,72 @@
|
||||
},
|
||||
"cur_fault_code": {
|
||||
"name": "Current Fault Code"
|
||||
},
|
||||
"left_recipe_current_step_action": {
|
||||
"name": "Left Recipe Current Step Action"
|
||||
},
|
||||
"left_recipe_id": {
|
||||
"name": "Left Recipe ID"
|
||||
},
|
||||
"left_recipe_rest_time": {
|
||||
"name": "Left Recipe Rest Time"
|
||||
},
|
||||
"left_current_temperature": {
|
||||
"name": "Left Current Temperature"
|
||||
},
|
||||
"left_status": {
|
||||
"name": "Left Status"
|
||||
},
|
||||
"eq_recipe_action": {
|
||||
"name": "Eq Recipe Action"
|
||||
},
|
||||
"gas_leakage_code": {
|
||||
"name": "Gas Leakage Code"
|
||||
},
|
||||
"left_work_time": {
|
||||
"name": "Left Work Time"
|
||||
},
|
||||
"left_recipe_current_step": {
|
||||
"name": "Left Recipe Current Step"
|
||||
},
|
||||
"left_recipe_target_steps": {
|
||||
"name": "Left Recipe Target Steps"
|
||||
},
|
||||
"left_recipe_target_time": {
|
||||
"name": "Left Recipe Target Time"
|
||||
},
|
||||
"error_type": {
|
||||
"name": "Error Type"
|
||||
},
|
||||
"drying_time": {
|
||||
"name": "Drying Time"
|
||||
},
|
||||
"bath_heating_time": {
|
||||
"name": "Bath Heating Time"
|
||||
},
|
||||
"current_temperature": {
|
||||
"name": "Current Temperature"
|
||||
},
|
||||
"bath_temperature": {
|
||||
"name": "Bath Temperature"
|
||||
},
|
||||
"main_light_brightness": {
|
||||
"name": "Main Light Brightness"
|
||||
},
|
||||
"night_light_brightness": {
|
||||
"name": "Night Light Brightness"
|
||||
},
|
||||
"blowing_speed": {
|
||||
"name": "Blowing Speed"
|
||||
},
|
||||
"delay_time": {
|
||||
"name": "Delay Time"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
"control_status": {
|
||||
"name": "Start Pause"
|
||||
},
|
||||
"add_water_flag": {
|
||||
"name": "Add Water Flag"
|
||||
},
|
||||
@@ -1546,9 +1688,6 @@
|
||||
"bucket_clean_switch": {
|
||||
"name": "Bucket Clean Switch"
|
||||
},
|
||||
"bucket_water_overheating": {
|
||||
"name": "Bucket Water Overheating"
|
||||
},
|
||||
"buzzer": {
|
||||
"name": "Buzzer"
|
||||
},
|
||||
@@ -1630,9 +1769,6 @@
|
||||
"defrost_state": {
|
||||
"name": "Defrost State"
|
||||
},
|
||||
"detergent_lack": {
|
||||
"name": "Detergent Lack"
|
||||
},
|
||||
"disinfect_on_off": {
|
||||
"name": "Disinfect On Off"
|
||||
},
|
||||
@@ -1645,9 +1781,6 @@
|
||||
"door_middlestair": {
|
||||
"name": "Door Middle Stair"
|
||||
},
|
||||
"door_opened": {
|
||||
"name": "Door Opened"
|
||||
},
|
||||
"door_upstair": {
|
||||
"name": "Door Up Stair"
|
||||
},
|
||||
@@ -1903,9 +2036,6 @@
|
||||
"soften": {
|
||||
"name": "Soften"
|
||||
},
|
||||
"softener_lack": {
|
||||
"name": "Softener Lack"
|
||||
},
|
||||
"speedy": {
|
||||
"name": "Speedy"
|
||||
},
|
||||
@@ -2134,8 +2264,50 @@
|
||||
"filter_notification": {
|
||||
"name": "Filter Notification"
|
||||
},
|
||||
"wash_mode": {
|
||||
"name": "Wash Mode"
|
||||
"left_power": {
|
||||
"name": "Left Power"
|
||||
},
|
||||
"left_dry_fire_protection": {
|
||||
"name": "Left Dry Fire Protection"
|
||||
},
|
||||
"left_lock": {
|
||||
"name": "Left Lock"
|
||||
},
|
||||
"light_lampblack_mode": {
|
||||
"name": "Light Lampblack Mode"
|
||||
},
|
||||
"blowing_direction": {
|
||||
"name": "Blowing Direction"
|
||||
},
|
||||
"function_led_enable": {
|
||||
"name": "Function LED Enable"
|
||||
},
|
||||
"smelly_trigger": {
|
||||
"name": "Smelly Trigger"
|
||||
},
|
||||
"heating_direction": {
|
||||
"name": "Heating Direction"
|
||||
},
|
||||
"light_mode": {
|
||||
"name": "Light Mode"
|
||||
},
|
||||
"wifi_led_enable": {
|
||||
"name": "WiFi LED Enable"
|
||||
},
|
||||
"bath_direction": {
|
||||
"name": "Bath Direction"
|
||||
},
|
||||
"delay_enable": {
|
||||
"name": "Delay Enable"
|
||||
},
|
||||
"digit_led_enable": {
|
||||
"name": "Digit LED Enable"
|
||||
},
|
||||
"dehumidity_trigger": {
|
||||
"name": "Dehumidity Trigger"
|
||||
},
|
||||
"drying_direction": {
|
||||
"name": "Drying Direction"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,10 +67,10 @@
|
||||
"server": "服务器"
|
||||
}
|
||||
},
|
||||
"reset":{
|
||||
"reset": {
|
||||
"title": "重置配置文件",
|
||||
"description": "移除已有的设备配置,并使用标准模板重新生成设备配置\n如果你的设备配置json文件进行过修改,重置之后修改将丢失\n如果标准模板中没有该设备类型,则不会生成设备配置",
|
||||
"data":{
|
||||
"data": {
|
||||
"check": "我知道了,重置吧"
|
||||
}
|
||||
},
|
||||
@@ -82,7 +82,7 @@
|
||||
"title": "配置"
|
||||
}
|
||||
},
|
||||
"abort":{
|
||||
"abort": {
|
||||
"reset_success": "重置完成,已尝试生成新的配置",
|
||||
"account_unsupport_config": "账户配置不支持该操作"
|
||||
}
|
||||
@@ -91,7 +91,7 @@
|
||||
"set_attribute": {
|
||||
"name": "设置属性",
|
||||
"description": "设置设备的属性值(可多属性一起设置)",
|
||||
"fields" : {
|
||||
"fields": {
|
||||
"device_id": {
|
||||
"name": "设备编码",
|
||||
"description": "设备编码(Device ID)"
|
||||
@@ -105,7 +105,7 @@
|
||||
"send_command": {
|
||||
"name": "自定义命令",
|
||||
"description": "向设备发送一个自定义命令",
|
||||
"fields" : {
|
||||
"fields": {
|
||||
"device_id": {
|
||||
"name": "设备编码",
|
||||
"description": "设备编码(Device ID)"
|
||||
@@ -171,6 +171,27 @@
|
||||
"maintenance_remind": {
|
||||
"name": "维护提醒"
|
||||
},
|
||||
"low_salt": {
|
||||
"name": "盐量不足"
|
||||
},
|
||||
"no_salt": {
|
||||
"name": "无盐"
|
||||
},
|
||||
"low_battery": {
|
||||
"name": "电池电量低"
|
||||
},
|
||||
"flowmeter_error": {
|
||||
"name": "流量计错误"
|
||||
},
|
||||
"salt_level_sensor_error": {
|
||||
"name": "盐位传感器错误"
|
||||
},
|
||||
"leak_water": {
|
||||
"name": "漏水"
|
||||
},
|
||||
"micro_leak": {
|
||||
"name": "微漏"
|
||||
},
|
||||
"rtc_error": {
|
||||
"name": "RTC 错误"
|
||||
},
|
||||
@@ -198,6 +219,18 @@
|
||||
"door_status": {
|
||||
"name": "门状态"
|
||||
},
|
||||
"softener_lack": {
|
||||
"name": "柔顺剂不足"
|
||||
},
|
||||
"detergent_lack": {
|
||||
"name": "洗涤剂不足"
|
||||
},
|
||||
"door_opened": {
|
||||
"name": "门已打开"
|
||||
},
|
||||
"bucket_water_overheating": {
|
||||
"name": "桶内水温过热"
|
||||
},
|
||||
"ele_exception": {
|
||||
"name": "电气异常"
|
||||
},
|
||||
@@ -375,7 +408,7 @@
|
||||
"error_type": {
|
||||
"name": "错误类型"
|
||||
},
|
||||
"fan_level": {
|
||||
"fan_setting": {
|
||||
"name": "风扇档位"
|
||||
},
|
||||
"fan_set": {
|
||||
@@ -409,7 +442,21 @@
|
||||
"name": "中层工作状态"
|
||||
},
|
||||
"mode": {
|
||||
"name": "模式"
|
||||
"name": "模式",
|
||||
"options": {
|
||||
"close_all": "全部关闭",
|
||||
"strong_heating": "强力加热",
|
||||
"weak_heating": "弱力加热",
|
||||
"heating": "加热",
|
||||
"bath": "浴室",
|
||||
"soft_wind": "柔风",
|
||||
"ventilation": "通风",
|
||||
"morning_ventilation": "晨间通风",
|
||||
"drying": "烘干",
|
||||
"blowing": "吹风",
|
||||
"drying_safe_power": "安全功率烘干",
|
||||
"drying_fast": "快速烘干"
|
||||
}
|
||||
},
|
||||
"mode_state": {
|
||||
"name": "模式状态"
|
||||
@@ -480,7 +527,7 @@
|
||||
"variable_mode": {
|
||||
"name": "变温模式"
|
||||
},
|
||||
"water_level": {
|
||||
"water_tank_setting": {
|
||||
"name": "水位"
|
||||
},
|
||||
"wind_gear": {
|
||||
@@ -492,6 +539,9 @@
|
||||
"work_mode": {
|
||||
"name": "工作模式"
|
||||
},
|
||||
"wash_mode": {
|
||||
"name": "洗涤模式"
|
||||
},
|
||||
"func_select": {
|
||||
"name": "功能选择"
|
||||
},
|
||||
@@ -548,9 +598,47 @@
|
||||
},
|
||||
"swing_vertical": {
|
||||
"name": "垂直摆风"
|
||||
},
|
||||
"left_cookmode": {
|
||||
"name": "左侧烹饪模式",
|
||||
"options": {
|
||||
"default": "默认",
|
||||
"order": "预约",
|
||||
"keep_temperature": "保温",
|
||||
"local_recipe": "本地食谱",
|
||||
"cloud_recipe": "云食谱",
|
||||
"order_keep_temperature": "预约保温"
|
||||
}
|
||||
},
|
||||
"left_gear": {
|
||||
"name": "左侧档位"
|
||||
},
|
||||
"blowing_direction": {
|
||||
"name": "吹风方向"
|
||||
},
|
||||
"heating_direction": {
|
||||
"name": "加热方向"
|
||||
},
|
||||
"light_mode": {
|
||||
"name": "灯光模式",
|
||||
"options": {
|
||||
"close_all": "全部关闭",
|
||||
"night_light": "夜灯",
|
||||
"main_light": "主灯",
|
||||
"all_on": "全部开启"
|
||||
}
|
||||
},
|
||||
"bath_direction": {
|
||||
"name": "浴室方向"
|
||||
},
|
||||
"drying_direction": {
|
||||
"name": "烘干方向"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"mode": {
|
||||
"name": "运行模式"
|
||||
},
|
||||
"active_oxygen": {
|
||||
"name": "活性氧"
|
||||
},
|
||||
@@ -722,9 +810,6 @@
|
||||
"dehydration_time_value": {
|
||||
"name": "脱水时间值"
|
||||
},
|
||||
"delay_time": {
|
||||
"name": "预约时间"
|
||||
},
|
||||
"detergent_density_global": {
|
||||
"name": "洗涤剂浓度全局"
|
||||
},
|
||||
@@ -755,9 +840,6 @@
|
||||
"dust_count": {
|
||||
"name": "灰尘计数"
|
||||
},
|
||||
"e_version": {
|
||||
"name": "E 版本"
|
||||
},
|
||||
"error": {
|
||||
"name": "错误"
|
||||
},
|
||||
@@ -839,9 +921,6 @@
|
||||
"left_flexzone_temperature": {
|
||||
"name": "左变温区温度"
|
||||
},
|
||||
"left_salt": {
|
||||
"name": "剩余盐量"
|
||||
},
|
||||
"left_time": {
|
||||
"name": "剩余时间"
|
||||
},
|
||||
@@ -1184,9 +1263,6 @@
|
||||
"uv_sterilize_second": {
|
||||
"name": "紫外线杀菌秒"
|
||||
},
|
||||
"version": {
|
||||
"name": "版本"
|
||||
},
|
||||
"volume": {
|
||||
"name": "音量"
|
||||
},
|
||||
@@ -1339,6 +1415,66 @@
|
||||
},
|
||||
"cur_fault_code": {
|
||||
"name": "当前故障代码"
|
||||
},
|
||||
"left_recipe_current_step_action": {
|
||||
"name": "左侧食谱当前步骤动作"
|
||||
},
|
||||
"left_recipe_id": {
|
||||
"name": "左侧食谱ID"
|
||||
},
|
||||
"left_recipe_rest_time": {
|
||||
"name": "左侧食谱剩余时间"
|
||||
},
|
||||
"left_current_temperature": {
|
||||
"name": "左侧当前温度"
|
||||
},
|
||||
"left_status": {
|
||||
"name": "左侧状态"
|
||||
},
|
||||
"eq_recipe_action": {
|
||||
"name": "等量食谱动作"
|
||||
},
|
||||
"gas_leakage_code": {
|
||||
"name": "燃气泄漏代码"
|
||||
},
|
||||
"left_work_time": {
|
||||
"name": "左侧工作时间"
|
||||
},
|
||||
"left_recipe_current_step": {
|
||||
"name": "左侧食谱当前步骤"
|
||||
},
|
||||
"left_recipe_target_steps": {
|
||||
"name": "左侧食谱目标步骤"
|
||||
},
|
||||
"left_recipe_target_time": {
|
||||
"name": "左侧食谱目标时间"
|
||||
},
|
||||
"error_type": {
|
||||
"name": "错误类型"
|
||||
},
|
||||
"drying_time": {
|
||||
"name": "烘干时间"
|
||||
},
|
||||
"bath_heating_time": {
|
||||
"name": "浴室加热时间"
|
||||
},
|
||||
"current_temperature": {
|
||||
"name": "当前温度"
|
||||
},
|
||||
"bath_temperature": {
|
||||
"name": "浴室温度"
|
||||
},
|
||||
"main_light_brightness": {
|
||||
"name": "主灯亮度"
|
||||
},
|
||||
"night_light_brightness": {
|
||||
"name": "夜灯亮度"
|
||||
},
|
||||
"blowing_speed": {
|
||||
"name": "吹风速度"
|
||||
},
|
||||
"delay_time": {
|
||||
"name": "延时时间"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
@@ -1522,6 +1658,9 @@
|
||||
"ai_switch": {
|
||||
"name": "AI开关"
|
||||
},
|
||||
"control_status": {
|
||||
"name": "启停"
|
||||
},
|
||||
"airdry_on_off": {
|
||||
"name": "风干开关"
|
||||
},
|
||||
@@ -1549,9 +1688,6 @@
|
||||
"bucket_clean_switch": {
|
||||
"name": "桶清洁开关"
|
||||
},
|
||||
"bucket_water_overheating": {
|
||||
"name": "桶内水温过热"
|
||||
},
|
||||
"buzzer": {
|
||||
"name": "蜂鸣器"
|
||||
},
|
||||
@@ -1633,9 +1769,6 @@
|
||||
"defrost_state": {
|
||||
"name": "除霜状态"
|
||||
},
|
||||
"detergent_lack": {
|
||||
"name": "洗涤剂不足"
|
||||
},
|
||||
"disinfect_on_off": {
|
||||
"name": "消毒开关"
|
||||
},
|
||||
@@ -1648,9 +1781,6 @@
|
||||
"door_middlestair": {
|
||||
"name": "中层门"
|
||||
},
|
||||
"door_opened": {
|
||||
"name": "门已打开"
|
||||
},
|
||||
"door_upstair": {
|
||||
"name": "上层门"
|
||||
},
|
||||
@@ -1906,9 +2036,6 @@
|
||||
"soften": {
|
||||
"name": "软化"
|
||||
},
|
||||
"softener_lack": {
|
||||
"name": "柔顺剂不足"
|
||||
},
|
||||
"speedy": {
|
||||
"name": "快速"
|
||||
},
|
||||
@@ -2137,8 +2264,50 @@
|
||||
"filter_notification": {
|
||||
"name": "滤网提醒"
|
||||
},
|
||||
"wash_mode": {
|
||||
"name": "洗涤模式"
|
||||
"left_power": {
|
||||
"name": "左侧电源"
|
||||
},
|
||||
"left_dry_fire_protection": {
|
||||
"name": "左侧干烧保护"
|
||||
},
|
||||
"left_lock": {
|
||||
"name": "左侧锁定"
|
||||
},
|
||||
"light_lampblack_mode": {
|
||||
"name": "灯光油烟模式"
|
||||
},
|
||||
"blowing_direction": {
|
||||
"name": "吹风方向"
|
||||
},
|
||||
"function_led_enable": {
|
||||
"name": "功能LED启用"
|
||||
},
|
||||
"smelly_trigger": {
|
||||
"name": "异味触发"
|
||||
},
|
||||
"heating_direction": {
|
||||
"name": "加热方向"
|
||||
},
|
||||
"light_mode": {
|
||||
"name": "灯光模式"
|
||||
},
|
||||
"wifi_led_enable": {
|
||||
"name": "WiFi LED启用"
|
||||
},
|
||||
"bath_direction": {
|
||||
"name": "浴室方向"
|
||||
},
|
||||
"delay_enable": {
|
||||
"name": "延时启用"
|
||||
},
|
||||
"digit_led_enable": {
|
||||
"name": "数字LED启用"
|
||||
},
|
||||
"dehumidity_trigger": {
|
||||
"name": "除湿触发"
|
||||
},
|
||||
"drying_direction": {
|
||||
"name": "烘干方向"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user