Add dirt level select entity

This commit is contained in:
Andre Basche 2023-07-10 00:48:57 +02:00
parent 35a07932e6
commit 9dc98953a2
23 changed files with 185 additions and 3 deletions

View File

@ -424,6 +424,7 @@ For every device exists a button under diagnostics which can be used to log all
| Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` |
| Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` |
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` |
| Dirty level | `liquid-spot` | `select` | `startProgram.dirtyLevel` |
| Dry Time | | `number` | `startProgram.dryTime` |
| Dry Time | `timer` | `select` | `startProgram.dryTimeMM` |
| Dry level | `hair-dryer` | `select` | `startProgram.dryLevel` |
@ -459,7 +460,7 @@ For every device exists a button under diagnostics which can be used to log all
| Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` |
| Current Temperature | `thermometer` | `sensor` | `temp` |
| Current Water Used | `water` | `sensor` | `currentWaterUsed` |
| Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Dirty level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Door | | `binary_sensor` | `doorStatus` |
| Door Lock | | `binary_sensor` | `doorLockStatus` |
| Dry level | `hair-dryer` | `sensor` | `dryLevel` |
@ -496,6 +497,7 @@ For every device exists a button under diagnostics which can be used to log all
| Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` |
| Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` |
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` |
| Dirty level | `liquid-spot` | `select` | `startProgram.dirtyLevel` |
| Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` |
| Extra Rinse 1 | `numeric-1-box-multiple-outline` | `switch` | `startProgram.extraRinse1` |
| Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `startProgram.extraRinse2` |
@ -523,7 +525,7 @@ For every device exists a button under diagnostics which can be used to log all
| Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` |
| Current Temperature | `thermometer` | `sensor` | `temp` |
| Current Water Used | `water` | `sensor` | `currentWaterUsed` |
| Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Dirty level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Door | | `binary_sensor` | `doorStatus` |
| Door Lock | | `binary_sensor` | `doorLockStatus` |
| Error | `math-log` | `sensor` | `errors` |

View File

@ -56,6 +56,13 @@ SELECTS = {
translation_key="steam_level",
option_list=const.STEAM_LEVEL,
),
HonConfigSelectEntityDescription(
key="startProgram.dirtyLevel",
name="Dirty level",
icon="mdi:liquid-spot",
translation_key="dirt_level",
option_list=const.DIRTY_LEVEL,
),
),
"TD": (
HonConfigSelectEntityDescription(

View File

@ -157,7 +157,7 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
),
HonSensorEntityDescription(
key="dirtyLevel",
name="Dirt level",
name="Dirty level",
icon="mdi:liquid-spot",
device_class=SensorDeviceClass.ENUM,
translation_key="dirt_level",

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "Úroveň páry"
},
"dirt_level": {
"state": {
"little": "Málo",
"normal": "Normální",
"very": "Velmi",
"unknown": "unknown"
},
"name": "Míra znečištění"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetik"
},
"name": "Dampfstufe"
},
"dirt_level": {
"state": {
"little": "Wenig",
"normal": "Normal",
"very": "Sehr",
"unknown": "unknown"
},
"name": "Verschmutzungsgrad"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Συνθετικά"
},
"name": "Επίπεδο ατμού"
},
"dirt_level": {
"state": {
"little": "Λίγη",
"normal": "Κανονική",
"very": "Πολύ",
"unknown": "unknown"
},
"name": "Επίπεδο βρωμιάς"
}
},
"switch": {

View File

@ -1677,6 +1677,15 @@
"synthetic": "Synthetic"
},
"name": "Steam Level"
},
"dirt_level": {
"state": {
"little": "Little",
"normal": "Normal",
"very": "Very",
"unknown": "unknown"
},
"name": "Dirt level"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "Nivel de vapor"
},
"dirt_level": {
"state": {
"little": "Poco",
"normal": "Normal",
"very": "Mucho",
"unknown": "unknown"
},
"name": "Nivel de suciedad"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "Niveau de vapeur"
},
"dirt_level": {
"state": {
"little": "Faible",
"normal": "Normal",
"very": "Élevé",
"unknown": "unknown"
},
"name": "Niveau de saleté"
}
},
"switch": {

View File

@ -771,6 +771,15 @@
"synthetic": "מְלָאכוּתִי"
},
"name": "מפלס קיטור"
},
"dirt_level": {
"state": {
"little": "קטן",
"normal": "נוֹרמָלִי",
"very": "מאוד",
"unknown": "unknown"
},
"name": "רמת עפר"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Sintetika"
},
"name": "Razina pare"
},
"dirt_level": {
"state": {
"little": "Neznatno",
"normal": "Uobičajeno",
"very": "Izuzetno",
"unknown": "unknown"
},
"name": "Stupanj zaprljanosti"
}
},
"switch": {

View File

@ -1655,6 +1655,15 @@
"synthetic": "Sintetici"
},
"name": "Livello vapore"
},
"dirt_level": {
"state": {
"little": "Poco",
"normal": "Normale",
"very": "Molto",
"unknown": "unknown"
},
"name": "Livello di sporco"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "Stoomniveau"
},
"dirt_level": {
"state": {
"little": "Weinig",
"normal": "Normaal",
"very": "Heel",
"unknown": "unknown"
},
"name": "Vuilheid"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Syntetyczne"
},
"name": "Poziom pary"
},
"dirt_level": {
"state": {
"little": "Niskie",
"normal": "Standardowe",
"very": "Wysokie",
"unknown": "unknown"
},
"name": "Stopień zabrudzenia"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Sintéticos"
},
"name": "Nível de vapor"
},
"dirt_level": {
"state": {
"little": "Pouco",
"normal": "Normal",
"very": "Muito",
"unknown": "unknown"
},
"name": "Nível de sujidade"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "Nivel abur"
},
"dirt_level": {
"state": {
"little": "Puțin",
"normal": "Normal",
"very": "Foarte",
"unknown": "unknown"
},
"name": "Nivel de murdărie"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Синтетика"
},
"name": "Уровень пара"
},
"dirt_level": {
"state": {
"little": "Мало",
"normal": "Нормально",
"very": "Очень",
"unknown": "unknown"
},
"name": "Уровень загрязнения"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "Úroveň nastavenia pary"
},
"dirt_level": {
"state": {
"little": "Málo",
"normal": "Normálne",
"very": "Veľa",
"unknown": "unknown"
},
"name": "Úroveň znečistenia"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Sintetika"
},
"name": "Količina pare"
},
"dirt_level": {
"state": {
"little": "Malo",
"normal": "Normalno",
"very": "Zelo",
"unknown": "unknown"
},
"name": "Stopnja umazanije"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Sintetika"
},
"name": "Nivo pare"
},
"dirt_level": {
"state": {
"little": "Malo",
"normal": "Normalno",
"very": "Veoma",
"unknown": "unknown"
},
"name": "Nivo zaprljanosti"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "Buhar Seviyesi"
},
"dirt_level": {
"state": {
"little": "Az",
"normal": "Normal",
"very": "Çok",
"unknown": "unknown"
},
"name": "Kir seviyesi"
}
},
"switch": {

View File

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic"
},
"name": "蒸汽档位"
},
"dirt_level": {
"state": {
"little": "少量",
"normal": "正常",
"very": "非常",
"unknown": "unknown"
},
"name": "脏污程度"
}
},
"switch": {

View File

@ -129,6 +129,7 @@ SELECT = {
"steam_level": STEAM_LEVEL,
"mode": AP_MACH_MODE,
"diffuser": AP_DIFFUSER_LEVEL,
"dirt_level": DIRTY_LEVEL,
}
PROGRAMS = {
@ -291,6 +292,7 @@ NAMES = {
"diffuser": "AP.TITLES.DIFFUSER",
"mode": "CUBE90_GLOBAL.GENERAL.MODE",
"steam_level": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.STEAM_LEVEL",
"dirt_level": "WASHING_CMD&CTRL.PROGRAM_CYCLE_DETAIL_MAIN_OPTIONS.DIRTY_LEVEL",
},
"sensor": {
"dry_levels": "WASHING_CMD&CTRL.DRAWER_CYCLE_DRYING.TAB_LEVEL",