Adding sensors for DW Machine (#30)

This commit is contained in:
Jorge 2026-03-09 17:37:49 +00:00 committed by GitHub
parent 4eea432015
commit 20b96f2d70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 78 additions and 0 deletions

View file

@ -224,6 +224,24 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
on_value=1,
translation_key="door_open",
),
HonBinarySensorEntityDescription(
key="addDishStatus",
translation_key="add_dish",
icon="mdi:silverware-fork-knife",
on_value=1,
),
HonBinarySensorEntityDescription(
key="lastCycleSavingStatus",
translation_key="last_cycle_saving",
icon="mdi:leaf",
on_value=1,
),
HonBinarySensorEntityDescription(
key="tabStatus",
translation_key="detergent_tab",
icon="mdi:cube",
on_value=1,
),
),
"AC": (
HonBinarySensorEntityDescription(

View file

@ -455,6 +455,30 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
device_class=SensorDeviceClass.ENUM,
translation_key="programs_dw",
),
HonSensorEntityDescription(
key="currentElectricityUsed",
translation_key="current_electricity_used",
icon="mdi:lightning-bolt",
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.MEASUREMENT,
),
HonSensorEntityDescription(
key="currentWaterUsed",
translation_key="current_water_used",
icon="mdi:water",
native_unit_of_measurement=UnitOfVolume.LITERS,
device_class=SensorDeviceClass.VOLUME,
state_class=SensorStateClass.MEASUREMENT,
),
HonSensorEntityDescription(
key="currentCycleTime",
translation_key="current_cycle_time",
icon="mdi:timer",
native_unit_of_measurement=UnitOfTime.MINUTES,
device_class=SensorDeviceClass.DURATION,
state_class=SensorStateClass.MEASUREMENT,
),
),
"AC": (
HonSensorEntityDescription(

View file

@ -973,6 +973,15 @@
"high": "High"
},
"name": "Humidity level"
},
"current_electricity_used": {
"name": "Current Cycle Electricity"
},
"current_water_used": {
"name": "Current Cycle Water"
},
"current_cycle_time": {
"name": "Cycle Duration"
}
},
"select": {
@ -2078,6 +2087,15 @@
"filter_replacement": {
"name": "Filter replacement"
},
"add_dish": {
"name": "Add Dish"
},
"last_cycle_saving": {
"name": "Last Cycle Eco Saving"
},
"detergent_tab": {
"name": "Detergent Tab"
},
"energy_saving": {
"name": "Energy Saving Mode"
},

View file

@ -940,6 +940,15 @@
"high": "Alta"
},
"name": "Nível de humidade"
},
"current_electricity_used": {
"name": "Current Cycle Electricity"
},
"current_water_used": {
"name": "Current Cycle Water"
},
"current_cycle_time": {
"name": "Cycle Duration"
}
},
"select": {
@ -2041,6 +2050,15 @@
},
"stop_program": {
"name": "Programa Parar"
},
"add_dish": {
"name": "Porta aberta"
},
"last_cycle_saving": {
"name": "Poupança Eco Último Ciclo"
},
"detergent_tab": {
"name": "Detergente"
}
},
"number": {