diff --git a/app/wyzebridge/mqtt.py b/app/wyzebridge/mqtt.py index a2ad5030..094f2bc4 100644 --- a/app/wyzebridge/mqtt.py +++ b/app/wyzebridge/mqtt.py @@ -350,6 +350,19 @@ def get_entities(base_topic: str, pan_cam: bool = False, rtsp: bool = False) -> "entity_category": "diagnostic", }, }, + "pan_tilt": { + "type": "cover", + "payload": { + "command_topic": f"{base_topic}rotary_degree/set", + "tilt_command_topic": f"{base_topic}rotary_degree/set", + "payload_open": "up", + "payload_close": "down", + "payload_stop": None, + "tilt_opened_value": 90, + "tilt_closed_value": -90, + "icon": "mdi:rotate-orbit", + }, + }, } if pan_cam: entities |= { diff --git a/app/wyzecam/tutk/tutk_protocol.py b/app/wyzecam/tutk/tutk_protocol.py index 6d4cd46a..7a1fe767 100644 --- a/app/wyzecam/tutk/tutk_protocol.py +++ b/app/wyzecam/tutk/tutk_protocol.py @@ -888,7 +888,7 @@ class K11000SetRotaryByDegree(TutkWyzeProtocolMessage): """ - def __init__(self, horizontal: int, vertical: int, speed: int = 5): + def __init__(self, horizontal: int, vertical: int = 0, speed: int = 5): super().__init__(11000) self.horizontal = horizontal self.vertical = vertical