fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
551 stars 102 forks source link

Zoom/Focus position Set options #481

Open diamant-x opened 2 years ago

diamant-x commented 2 years ago

Describe the bug As of now, the API only exposes the 'FocusInc' and 'FocusDec', with an unknown parameter which is speed (which doesn't seem to have any documentation on how to use it), and that it is not very reliable to set up focus.

To Reproduce Try to control the zoom in/out or the focus in/out to a specific location is very difficult, nearly impossible.

Expected behavior Implement/Expose the underlying python APIs for: https://github.com/fwestenberg/reolink/blob/f8fa947ccc04648b9e060e43ae7b3dea32fcb232/reolink/camera_api.py#L1042 https://github.com/fwestenberg/reolink/blob/f8fa947ccc04648b9e060e43ae7b3dea32fcb232/reolink/camera_api.py#L1062

Thanks!

lienbacher commented 2 years ago

I'd like to chime in here. I am using an E1 Zoom in a birdhouse camera, and it would be extremely handy to be able to set a known focus position.