We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 336af8e commit 87cd382Copy full SHA for 87cd382
reolinkapi/mixins/ptz.py
@@ -51,8 +51,8 @@ def _send_noparm_operation(self, operation: str) -> Dict:
51
return self._execute_command('PtzCtrl', data)
52
53
def _send_set_preset(self, enable: float, preset: float = 1, name: str = 'pos1') -> Dict:
54
- data = [{"cmd": "SetPtzPreset", "action": 0, "param": {
55
- "channel": 0, "enable": enable, "id": preset, "name": name}}]
+ data = [{"cmd": "SetPtzPreset", "action": 0, "param": { "PtzPreset": {
+ "channel": 0, "enable": enable, "id": preset, "name": name}}}]
56
57
58
def go_to_preset(self, speed: float = 60, index: float = 1) -> Dict:
0 commit comments