Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dc): add 0xDC device attrs and docs #470

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions custom_components/midea_ac_lan/midea_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1965,6 +1965,78 @@
"name": "Start",
"icon": "mdi:motion-play-outline",
},
DCAttributes.status: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "status",
"name": "Status",
"icon": "mdi:auto-mode",
},
DCAttributes.program: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "program",
"name": "Program",
"icon": "mdi:washing-machine",
},
DCAttributes.dry_temperature: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "dry_temperature",
"name": "Dry Temperature",
"device_class": SensorDeviceClass.TEMPERATURE,
"unit": UnitOfTemperature.CELSIUS,
"state_class": SensorStateClass.MEASUREMENT,
},
DCAttributes.intensity: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "intensity",
"name": "Intensity",
"icon": "mdi:waves-arrow-up",
},
DCAttributes.dryness_level: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "dryness_level",
"name": "Dryness Level",
"icon": "mdi:spirit-level",
},
DCAttributes.error_code: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "error_code",
"name": "Error Code",
"icon": "mdi:code-block-tags",
},
DCAttributes.door_warn: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "door_warn",
"name": "Door Warn",
"icon": "mdi:alert-box",
},
DCAttributes.ai_switch: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "ai_switch",
"name": "AI Switch",
"icon": "mdi:toggle-switch",
},
DCAttributes.material: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "material",
"name": "Material",
"icon": "mdi:material-design",
},
DCAttributes.water_box: {
"type": Platform.SENSOR,
"has_entity_name": True,
"translation_key": "water_box",
"name": "Water Box",
"icon": "mdi:cup-water",
},
},
},
0xE1: {
Expand Down
21 changes: 21 additions & 0 deletions custom_components/midea_ac_lan/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,27 @@
"detergent": {
"name": "洗涤剂"
},
"intensity": {
"name": "强度"
},
"dryness_level": {
"name": "干燥档位"
},
"dry_temperature": {
"name": "干燥温度"
},
"door_warn": {
"name": "开门警告"
},
"ai_switch": {
"name": "AI开关"
},
"material": {
"name": "材质"
},
"water_box": {
"name": "水箱"
},
"energy_consumption": {
"name": "能耗"
},
Expand Down
Loading