1
0
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:
starkillerOG
2026-02-11 17:29:05 +01:00
committed by GitHub
parent 4019768fa1
commit bec66f49a2
2 changed files with 6 additions and 1 deletions

View File

@@ -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(

View File

@@ -85,6 +85,10 @@
'0': 1,
'null': 1,
}),
'64': dict({
'0': 1,
'null': 1,
}),
'DingDongOpt': dict({
'0': 2,
'null': 2,