Merge pull request #22 from bjzhou/master

update device mapping
This commit is contained in:
sususweet
2025-10-09 09:47:21 +08:00
committed by GitHub
4 changed files with 47 additions and 13 deletions

View File

@@ -7,19 +7,14 @@ DEVICE_MAPPING = {
"default": { "default": {
"rationale": ["off", "on"], "rationale": ["off", "on"],
"queries": [{}], "queries": [{}],
"centralized": [ "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"
],
"entities": { "entities": {
Platform.SWITCH: { Platform.SWITCH: {
"bubble": { "bubble": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1] "rationale": [0, 1]
}, },
"cold_water": { "cold_water_master": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
}, },
"bathtub": { "bathtub": {

View File

@@ -14,9 +14,11 @@ DEVICE_MAPPING = {
"power": { "power": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
}, },
"heat_start": { "heat": {
"device_class": SwitchDeviceClass.SWITCH,
},
"antifreeze": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
"rationale": [0, 1],
}, },
"lock": { "lock": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
@@ -111,6 +113,16 @@ DEVICE_MAPPING = {
"unit_of_measurement": UnitOfTemperature.CELSIUS, "unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT "state_class": SensorStateClass.MEASUREMENT
}, },
"input_temperature_sensing": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT
},
"hot_pot_temperature": {
"device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT
},
"cool_target_temperature": { "cool_target_temperature": {
"device_class": SensorDeviceClass.TEMPERATURE, "device_class": SensorDeviceClass.TEMPERATURE,
"unit_of_measurement": UnitOfTemperature.CELSIUS, "unit_of_measurement": UnitOfTemperature.CELSIUS,
@@ -186,6 +198,9 @@ DEVICE_MAPPING = {
"unit_of_measurement": UnitOfTime.SECONDS, "unit_of_measurement": UnitOfTime.SECONDS,
"state_class": SensorStateClass.MEASUREMENT "state_class": SensorStateClass.MEASUREMENT
}, },
"heat_start": {
"device_class": SensorDeviceClass.ENUM,
},
"regeneration_stages": { "regeneration_stages": {
"device_class": SensorDeviceClass.ENUM, "device_class": SensorDeviceClass.ENUM,
}, },

View File

@@ -1475,6 +1475,12 @@
}, },
"delay_time": { "delay_time": {
"name": "Delay Time" "name": "Delay Time"
},
"input_temperature_sensing": {
"name": "Input Temperature Sensing"
},
"hot_pot_temperature": {
"name": "Hot Pot Temperature"
} }
}, },
"switch": { "switch": {
@@ -2308,6 +2314,12 @@
}, },
"drying_direction": { "drying_direction": {
"name": "Drying Direction" "name": "Drying Direction"
},
"antifreeze": {
"name": "Antifreeze"
},
"cold_water_master": {
"name": "Cold Water Master"
} }
} }
} }

View File

@@ -1475,6 +1475,12 @@
}, },
"delay_time": { "delay_time": {
"name": "延时时间" "name": "延时时间"
},
"input_temperature_sensing": {
"name": "输入温度"
},
"hot_pot_temperature": {
"name": "热水温度"
} }
}, },
"switch": { "switch": {
@@ -1707,16 +1713,16 @@
"name": "CO2检测启用" "name": "CO2检测启用"
}, },
"cold_water": { "cold_water": {
"name": "冷水" "name": "冷水"
}, },
"cold_water_ai": { "cold_water_ai": {
"name": "冷水AI" "name": "AI零冷水"
}, },
"cold_water_dot": { "cold_water_dot": {
"name": "冷水" "name": "点动零冷水"
}, },
"cold_water_pressure": { "cold_water_pressure": {
"name": "冷水压力" "name": "双增压"
}, },
"comp_state": { "comp_state": {
"name": "压缩机状态" "name": "压缩机状态"
@@ -2308,6 +2314,12 @@
}, },
"drying_direction": { "drying_direction": {
"name": "烘干方向" "name": "烘干方向"
},
"antifreeze": {
"name": "防冻模式"
},
"cold_water_master": {
"name": "单次零冷水"
} }
} }
} }