mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Add battery discrete level sensor to Overkiz (#141328)
This commit is contained in:
parent
a2d9eb2a5b
commit
a2f92b1e28
@ -70,6 +70,15 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
options=["full", "normal", "medium", "low", "verylow"],
|
options=["full", "normal", "medium", "low", "verylow"],
|
||||||
translation_key="battery",
|
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(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_RSSI_LEVEL,
|
key=OverkizState.CORE_RSSI_LEVEL,
|
||||||
name="RSSI level",
|
name="RSSI level",
|
||||||
|
@ -123,7 +123,9 @@
|
|||||||
"low": "Low",
|
"low": "Low",
|
||||||
"normal": "Normal",
|
"normal": "Normal",
|
||||||
"medium": "Medium",
|
"medium": "Medium",
|
||||||
"verylow": "Very low"
|
"verylow": "Very low",
|
||||||
|
"good": "Good",
|
||||||
|
"critical": "Critical"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"discrete_rssi_level": {
|
"discrete_rssi_level": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user