Add dishwasher salt and rinse aid nearly empty sensors (#127762)
Co-authored-by: Robert Contreras <beastie29a@users.noreply.github.com>pull/129226/head
parent
788232ca35
commit
46dd96a4b7
|
@ -36,6 +36,11 @@ COFFEE_EVENT_BEAN_CONTAINER_EMPTY = (
|
||||||
COFFEE_EVENT_WATER_TANK_EMPTY = "ConsumerProducts.CoffeeMaker.Event.WaterTankEmpty"
|
COFFEE_EVENT_WATER_TANK_EMPTY = "ConsumerProducts.CoffeeMaker.Event.WaterTankEmpty"
|
||||||
COFFEE_EVENT_DRIP_TRAY_FULL = "ConsumerProducts.CoffeeMaker.Event.DripTrayFull"
|
COFFEE_EVENT_DRIP_TRAY_FULL = "ConsumerProducts.CoffeeMaker.Event.DripTrayFull"
|
||||||
|
|
||||||
|
DISHWASHER_EVENT_SALT_NEARLY_EMPTY = "Dishcare.Dishwasher.Event.SaltNearlyEmpty"
|
||||||
|
DISHWASHER_EVENT_RINSE_AID_NEARLY_EMPTY = (
|
||||||
|
"Dishcare.Dishwasher.Event.RinseAidNearlyEmpty"
|
||||||
|
)
|
||||||
|
|
||||||
REFRIGERATION_INTERNAL_LIGHT_POWER = "Refrigeration.Common.Setting.Light.Internal.Power"
|
REFRIGERATION_INTERNAL_LIGHT_POWER = "Refrigeration.Common.Setting.Light.Internal.Power"
|
||||||
REFRIGERATION_INTERNAL_LIGHT_BRIGHTNESS = (
|
REFRIGERATION_INTERNAL_LIGHT_BRIGHTNESS = (
|
||||||
"Refrigeration.Common.Setting.Light.Internal.Brightness"
|
"Refrigeration.Common.Setting.Light.Internal.Brightness"
|
||||||
|
|
|
@ -32,6 +32,8 @@ from .const import (
|
||||||
COFFEE_EVENT_BEAN_CONTAINER_EMPTY,
|
COFFEE_EVENT_BEAN_CONTAINER_EMPTY,
|
||||||
COFFEE_EVENT_DRIP_TRAY_FULL,
|
COFFEE_EVENT_DRIP_TRAY_FULL,
|
||||||
COFFEE_EVENT_WATER_TANK_EMPTY,
|
COFFEE_EVENT_WATER_TANK_EMPTY,
|
||||||
|
DISHWASHER_EVENT_RINSE_AID_NEARLY_EMPTY,
|
||||||
|
DISHWASHER_EVENT_SALT_NEARLY_EMPTY,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
REFRIGERATION_EVENT_DOOR_ALARM_FREEZER,
|
REFRIGERATION_EVENT_DOOR_ALARM_FREEZER,
|
||||||
REFRIGERATION_EVENT_DOOR_ALARM_REFRIGERATOR,
|
REFRIGERATION_EVENT_DOOR_ALARM_REFRIGERATOR,
|
||||||
|
@ -230,6 +232,22 @@ EVENT_SENSORS = (
|
||||||
translation_key="drip_tray_full",
|
translation_key="drip_tray_full",
|
||||||
appliance_types=("CoffeeMaker",),
|
appliance_types=("CoffeeMaker",),
|
||||||
),
|
),
|
||||||
|
HomeConnectSensorEntityDescription(
|
||||||
|
key=DISHWASHER_EVENT_SALT_NEARLY_EMPTY,
|
||||||
|
device_class=SensorDeviceClass.ENUM,
|
||||||
|
options=EVENT_OPTIONS,
|
||||||
|
default_value="off",
|
||||||
|
translation_key="salt_nearly_empty",
|
||||||
|
appliance_types=("Dishwasher",),
|
||||||
|
),
|
||||||
|
HomeConnectSensorEntityDescription(
|
||||||
|
key=DISHWASHER_EVENT_RINSE_AID_NEARLY_EMPTY,
|
||||||
|
device_class=SensorDeviceClass.ENUM,
|
||||||
|
options=EVENT_OPTIONS,
|
||||||
|
default_value="off",
|
||||||
|
translation_key="rinse_aid_nearly_empty",
|
||||||
|
appliance_types=("Dishwasher",),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -343,6 +343,22 @@
|
||||||
"confirmed": "[%key:component::home_connect::common::confirmed%]",
|
"confirmed": "[%key:component::home_connect::common::confirmed%]",
|
||||||
"present": "[%key:component::home_connect::common::present%]"
|
"present": "[%key:component::home_connect::common::present%]"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"salt_nearly_empty": {
|
||||||
|
"name": "Salt nearly empty",
|
||||||
|
"state": {
|
||||||
|
"off": "[%key:common::state::off%]",
|
||||||
|
"confirmed": "[%key:component::home_connect::common::confirmed%]",
|
||||||
|
"present": "[%key:component::home_connect::common::present%]"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rinse_aid_nearly_empty": {
|
||||||
|
"name": "Rinse aid nearly empty",
|
||||||
|
"state": {
|
||||||
|
"off": "[%key:common::state::off%]",
|
||||||
|
"confirmed": "[%key:component::home_connect::common::confirmed%]",
|
||||||
|
"present": "[%key:component::home_connect::common::present%]"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"switch": {
|
"switch": {
|
||||||
|
|
Loading…
Reference in New Issue