Add battery discrete level sensor to Overkiz (#141328)

This commit is contained in:
Mick Vleeshouwer 2025-03-25 16:19:06 +01:00 committed by GitHub
parent a2d9eb2a5b
commit a2f92b1e28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -70,6 +70,15 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
options=["full", "normal", "medium", "low", "verylow"],
translation_key="battery",
),
OverkizSensorDescription(
key=OverkizState.CORE_BATTERY_DISCRETE_LEVEL,
name="Battery",
entity_category=EntityCategory.DIAGNOSTIC,
icon="mdi:battery",
device_class=SensorDeviceClass.ENUM,
options=["good", "medium", "low", "critical"],
translation_key="battery",
),
OverkizSensorDescription(
key=OverkizState.CORE_RSSI_LEVEL,
name="RSSI level",

View File

@ -123,7 +123,9 @@
"low": "Low",
"normal": "Normal",
"medium": "Medium",
"verylow": "Very low"
"verylow": "Very low",
"good": "Good",
"critical": "Critical"
}
},
"discrete_rssi_level": {