Add Reolink push for battery info and sleep status (#131103)

Add push for battery info and sleep status
pull/131129/head^2
starkillerOG 2024-11-21 01:48:14 +01:00 committed by GitHub
parent 782cad97af
commit b8e0d92848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,7 @@ BINARY_PUSH_SENSORS = (
BINARY_SENSORS = (
ReolinkBinarySensorEntityDescription(
key="sleep",
cmd_id=145,
cmd_key="GetChannelstatus",
translation_key="sleep",
entity_category=EntityCategory.DIAGNOSTIC,

View File

@ -71,6 +71,7 @@ SENSORS = (
),
ReolinkSensorEntityDescription(
key="battery_percent",
cmd_id=252,
cmd_key="GetBatteryInfo",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
@ -81,6 +82,7 @@ SENSORS = (
),
ReolinkSensorEntityDescription(
key="battery_temperature",
cmd_id=252,
cmd_key="GetBatteryInfo",
translation_key="battery_temperature",
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
@ -93,6 +95,7 @@ SENSORS = (
),
ReolinkSensorEntityDescription(
key="battery_state",
cmd_id=252,
cmd_key="GetBatteryInfo",
translation_key="battery_state",
device_class=SensorDeviceClass.ENUM,