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` | | Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` |
| Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` | | Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` |
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | | Delay Time | `timer-plus` | `number` | `startProgram.delayTime` |
| Dirty level | `liquid-spot` | `select` | `startProgram.dirtyLevel` |
| Dry Time | | `number` | `startProgram.dryTime` | | Dry Time | | `number` | `startProgram.dryTime` |
| Dry Time | `timer` | `select` | `startProgram.dryTimeMM` | | Dry Time | `timer` | `select` | `startProgram.dryTimeMM` |
| Dry level | `hair-dryer` | `select` | `startProgram.dryLevel` | | 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 Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` |
| Current Temperature | `thermometer` | `sensor` | `temp` | | Current Temperature | `thermometer` | `sensor` | `temp` |
| Current Water Used | `water` | `sensor` | `currentWaterUsed` | | Current Water Used | `water` | `sensor` | `currentWaterUsed` |
| Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` | | Dirty level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Door | | `binary_sensor` | `doorStatus` | | Door | | `binary_sensor` | `doorStatus` |
| Door Lock | | `binary_sensor` | `doorLockStatus` | | Door Lock | | `binary_sensor` | `doorLockStatus` |
| Dry level | `hair-dryer` | `sensor` | `dryLevel` | | 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` | | Auto Dose Softener | `teddy-bear` | `switch` | `startProgram.autoSoftenerStatus` |
| Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` | | Delay Status | `timer-check` | `switch` | `startProgram.delayStatus` |
| Delay Time | `timer-plus` | `number` | `startProgram.delayTime` | | Delay Time | `timer-plus` | `number` | `startProgram.delayTime` |
| Dirty level | `liquid-spot` | `select` | `startProgram.dirtyLevel` |
| Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` | | Energy Label | `lightning-bolt-circle` | `sensor` | `startProgram.energyLabel` |
| Extra Rinse 1 | `numeric-1-box-multiple-outline` | `switch` | `startProgram.extraRinse1` | | Extra Rinse 1 | `numeric-1-box-multiple-outline` | `switch` | `startProgram.extraRinse1` |
| Extra Rinse 2 | `numeric-2-box-multiple-outline` | `switch` | `startProgram.extraRinse2` | | 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 Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` |
| Current Temperature | `thermometer` | `sensor` | `temp` | | Current Temperature | `thermometer` | `sensor` | `temp` |
| Current Water Used | `water` | `sensor` | `currentWaterUsed` | | Current Water Used | `water` | `sensor` | `currentWaterUsed` |
| Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` | | Dirty level | `liquid-spot` | `sensor` | `dirtyLevel` |
| Door | | `binary_sensor` | `doorStatus` | | Door | | `binary_sensor` | `doorStatus` |
| Door Lock | | `binary_sensor` | `doorLockStatus` | | Door Lock | | `binary_sensor` | `doorLockStatus` |
| Error | `math-log` | `sensor` | `errors` | | Error | `math-log` | `sensor` | `errors` |

View file

@ -56,6 +56,13 @@ SELECTS = {
translation_key="steam_level", translation_key="steam_level",
option_list=const.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": ( "TD": (
HonConfigSelectEntityDescription( HonConfigSelectEntityDescription(

View file

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

View file

@ -1650,6 +1650,15 @@
"synthetic": "Synthetic" "synthetic": "Synthetic"
}, },
"name": "Úroveň páry" "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": { "switch": {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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