mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.64k stars 162 forks source link

MQTT ptz_position does not work as expected (vertical angle) #862

Open Rijswijker opened 1 year ago

Rijswijker commented 1 year ago

I am currently trying to configure my Wyze PAN V3 camera in Home Assistant to fixed positions.

Now it partially works, I can rotate the camera 350 degrees horizontally but only 127 degrees vertically, as soon as I enter a number higher than 127 I get the error message below.

error('byte format requires -128 <= number <= 127')

[voordeur] [CONTROL] Attempting to SET: ptz_position={'vertical': 137, 'horizontal': 255}
[voordeur] [CONTROL] byte format requires -128 <= number <= 127
[voordeur] [CONTROL] Response: {'command': 'ptz_position', 'payload': {'vertical': 137, 'horizontal': 255}, 'response': error('byte format requires -128 <= number <= 127'), 'status': 'error', 'value': {'vertical': 137, 'horizontal': 255}}
[WyzeBridge] [MQTT] {'command': 'ptz_position', 'payload': {'vertical': 137, 'horizontal': 255}, 'response': error('byte format requires -128 <= number <= 127'), 'status': 'error', 'value': {'vertical': 137, 'horizontal': 255}}

Due to this error message, it is not possible to make the camera look down far enough (180 degrees) -128 is not 180 degrees down either.

Is this a bug or do i something wrong?

mrlt8 commented 1 year ago

Thanks! this should be fixed in the dev branch.