diff --git a/app/wyzebridge/wyze_control.py b/app/wyzebridge/wyze_control.py index d09c2494..56a078b0 100644 --- a/app/wyzebridge/wyze_control.py +++ b/app/wyzebridge/wyze_control.py @@ -47,6 +47,10 @@ "get_motion_tagging": ("K10290GetMotionTagging",), "set_motion_tagging_on": ("K10292SetMotionTagging", True), "set_motion_tagging_off": ("K10292SetMotionTagging", False), + "set_fps_5": ("K10052SetFPS", 5), + "set_fps_10": ("K10052SetFPS", 10), + "set_fps_15": ("K10052SetFPS", 15), + "set_fps_20": ("K10052SetFPS", 20), } diff --git a/app/wyzecam/tutk/tutk_protocol.py b/app/wyzecam/tutk/tutk_protocol.py index 0ee36ab5..bb4d0d63 100644 --- a/app/wyzecam/tutk/tutk_protocol.py +++ b/app/wyzecam/tutk/tutk_protocol.py @@ -498,6 +498,15 @@ def parse_response(self, resp_data): return resp_data == b"\x01" +class K10052SetFPS(TutkWyzeProtocolMessage): + def __init__(self, fps: int = 0): + super().__init__(10052) + self.fps = fps + + def encode(self) -> bytes: + return encode(self.code, 6, bytes([0, 0, 0, self.fps, 0, 0])) + + class K10090GetCameraTime(TutkWyzeProtocolMessage): """ A message used to get the current time on the camera.