diff --git a/custom_components/hon/binary_sensor.py b/custom_components/hon/binary_sensor.py index 603c1bd..a3b9326 100644 --- a/custom_components/hon/binary_sensor.py +++ b/custom_components/hon/binary_sensor.py @@ -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( diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index 71883ce..06de918 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -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( diff --git a/custom_components/hon/translations/en.json b/custom_components/hon/translations/en.json index c49d382..2e63d99 100644 --- a/custom_components/hon/translations/en.json +++ b/custom_components/hon/translations/en.json @@ -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" }, diff --git a/custom_components/hon/translations/pt.json b/custom_components/hon/translations/pt.json index aeede99..1719b14 100644 --- a/custom_components/hon/translations/pt.json +++ b/custom_components/hon/translations/pt.json @@ -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": {