mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-15 03:36:27 +00:00
Adding sensors for DW Machine (#30)
This commit is contained in:
parent
4eea432015
commit
20b96f2d70
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue