mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2026-02-27 22:26:36 +00:00
Add Water Model Support for T0xED (#94)
添加COLMO A36S 前置过滤器和美的 MRO1012-R 净热一体机及对应实体翻译
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from homeassistant.const import Platform, UnitOfTemperature, UnitOfTime, UnitOfElectricPotential, \
|
||||
from homeassistant.const import Platform, UnitOfTemperature, UnitOfPressure, UnitOfTime, UnitOfElectricPotential, \
|
||||
UnitOfVolume, UnitOfMass, PERCENTAGE
|
||||
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
|
||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
@@ -238,5 +238,185 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
"63200854": {
|
||||
"rationale": ["off", "on"],
|
||||
"queries": [{}],
|
||||
"entities": {
|
||||
Platform.SWITCH: {
|
||||
"open_close_switch": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "open_close_switch"
|
||||
},
|
||||
"leak_water_protect": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "leak_water_protection"
|
||||
},
|
||||
"start_clean": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "start_clean"
|
||||
},
|
||||
},
|
||||
Platform.SELECT: {
|
||||
"clean_interval": {
|
||||
"options": {
|
||||
"off": {"clean_interval": "0"},
|
||||
"7天": {"clean_interval": "7"},
|
||||
"15天": {"clean_interval": "15"},
|
||||
"30天": {"clean_interval": "30"}
|
||||
},
|
||||
"translation_key": "clean_interval"
|
||||
}
|
||||
},
|
||||
Platform.NUMBER: {
|
||||
"clean_water_consumption": {
|
||||
"min": 0,
|
||||
"max": 60,
|
||||
"step": 1,
|
||||
"translation_key": "clean_water_consumption"
|
||||
},
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"input_temperature_Sensing": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": UnitOfTemperature.CELSIUS,
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "input_temperature_sensing"
|
||||
},
|
||||
"input_pressure_Sensing": {
|
||||
"device_class": SensorDeviceClass.PRESSURE,
|
||||
"unit_of_measurement": "kPa",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "water_gage"
|
||||
},
|
||||
"all_water_consumption": {
|
||||
"device_class": SensorDeviceClass.VOLUME,
|
||||
"unit_of_measurement": "L",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "water_consumption_big"
|
||||
},
|
||||
"water_flow": {
|
||||
"device_class": SensorDeviceClass.VOLUME_FLOW_RATE,
|
||||
"unit_of_measurement": "L/min",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "water_flow"
|
||||
},
|
||||
"clean_water_consumption_next_remaining": {
|
||||
"device_class": SensorDeviceClass.ENUM,
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "clean_water_consumption_next_remaining"
|
||||
},
|
||||
"clean_interval_next_days_remaining": {
|
||||
"device_class": SensorDeviceClass.DURATION,
|
||||
"unit_of_measurement": "D",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "clean_interval_next_days_remaining"
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
"632009EN": {
|
||||
"rationale": ["off", "on"],
|
||||
"queries": [{}],
|
||||
"entities": {
|
||||
Platform.SWITCH: {
|
||||
"heat": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "Heat_function"
|
||||
},
|
||||
"antifreeze": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "antifreeze"
|
||||
},
|
||||
"wash": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "filter_element_flushing"
|
||||
},
|
||||
"no_obsolete_water": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "no_obsolete_water"
|
||||
},
|
||||
"save_mode": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"translation_key": "save_mode"
|
||||
}
|
||||
},
|
||||
Platform.NUMBER: {
|
||||
"quantify_21": {
|
||||
"min": 300,
|
||||
"max": 500,
|
||||
"step": 100,
|
||||
"translation_key": "quantify_21",
|
||||
"unit_of_measurement": "mL"
|
||||
},
|
||||
"quantify_22": {
|
||||
"min": 500,
|
||||
"max": 1000,
|
||||
"step": 100,
|
||||
"translation_key": "quantify_22",
|
||||
"unit_of_measurement": "mL"
|
||||
},
|
||||
"quantify_23": {
|
||||
"min": 1000,
|
||||
"max": 1500,
|
||||
"step": 100,
|
||||
"translation_key": "quantify_23",
|
||||
"unit_of_measurement": "mL"
|
||||
}
|
||||
},
|
||||
Platform.SENSOR: {
|
||||
"in_tds": {
|
||||
"device_class": SensorDeviceClass.WATER,
|
||||
"unit_of_measurement": "mg/L",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "in_tds"
|
||||
},
|
||||
"out_tds": {
|
||||
"device_class": SensorDeviceClass.WATER,
|
||||
"unit_of_measurement": "mg/L",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "out_tds"
|
||||
},
|
||||
"life_1": {
|
||||
"device_class": SensorDeviceClass.BATTERY,
|
||||
"unit_of_measurement": "%",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "life_1"
|
||||
},
|
||||
"life_2": {
|
||||
"device_class": SensorDeviceClass.BATTERY,
|
||||
"unit_of_measurement": "%",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "life_2_PCB"
|
||||
},
|
||||
"water_consumption": {
|
||||
"device_class": SensorDeviceClass.VOLUME,
|
||||
"unit_of_measurement": "mL",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "water_consumption"
|
||||
},
|
||||
"hot_pot_temperature": {
|
||||
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||
"unit_of_measurement": "°C",
|
||||
"state_class": SensorStateClass.MEASUREMENT,
|
||||
"translation_key": "hot_pot_temperature"
|
||||
},
|
||||
"heat_start": {
|
||||
"name": "1=加热中/2=保温中",
|
||||
"device_class": SensorDeviceClass.ENUM
|
||||
}
|
||||
},
|
||||
Platform.BINARY_SENSOR: {
|
||||
"out_water": {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
"translation_key": "out_water"
|
||||
},
|
||||
"out_hot_water": {
|
||||
"device_class": BinarySensorDeviceClass.RUNNING,
|
||||
"translation_key": "out_hot_water"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user