mirror of
https://github.com/home-assistant/core.git
synced 2026-02-14 23:28:42 +00:00
Add Reolink PTZ patrol status (#162796)
This commit is contained in:
@@ -129,9 +129,10 @@ SWITCH_ENTITIES = (
|
||||
),
|
||||
ReolinkSwitchEntityDescription(
|
||||
key="ptz_patrol",
|
||||
cmd_key="64",
|
||||
translation_key="ptz_patrol",
|
||||
supported=lambda api, ch: api.supported(ch, "ptz_patrol"),
|
||||
value=lambda api, ch: None,
|
||||
value=lambda api, ch: api.baichuan.ptz_patrol_cruising(ch),
|
||||
method=lambda api, ch, value: api.ctrl_ptz_patrol(ch, value),
|
||||
),
|
||||
ReolinkSwitchEntityDescription(
|
||||
|
||||
@@ -85,6 +85,10 @@
|
||||
'0': 1,
|
||||
'null': 1,
|
||||
}),
|
||||
'64': dict({
|
||||
'0': 1,
|
||||
'null': 1,
|
||||
}),
|
||||
'DingDongOpt': dict({
|
||||
'0': 2,
|
||||
'null': 2,
|
||||
|
||||
Reference in New Issue
Block a user