Add Reolink push for battery info and sleep status (#131103)
Add push for battery info and sleep statuspull/131129/head^2
parent
782cad97af
commit
b8e0d92848
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue