starkillerOG / reolink_aio

Reolink NVR/camera API PyPI package
MIT License
65 stars 13 forks source link

RLC-81MA does not support PTZ #57

Closed mbo18 closed 7 months ago

mbo18 commented 7 months ago

Describe the bug I have a RLC-81MA and this is not really an issue because it works fine with HA but maybe that's something you can improve for this camera.

This camera does not support PTZ (it has two lens, one wide, one close-up) but in HA, 3 entities are available:

In the logs I have:

2024-01-28 13:58:43.310 WARNING (MainThread) [reolink_aio.api] Camera Camera1 reported to support zoom, but zoom range not available

To Reproduce Just add a RLC-81MA to HA

Expected behavior As this camera do not support PTZ, do not create the 3 entities related to PTZ

Screenshots

Capture d’écran 2024-01-28 à 14 11 17

Environment: Please provide useful information about your environment, like:

Additional context

config_entry-reolink-70e97be783cdbafac2b0e4a1b873b669.json.txt

starkillerOG commented 7 months ago

@mbo18 Your RLC-81MA is reporting that it supports Digitial Zoom:

          "supportDigitalZoom": {
            "permit": 0,
            "ver": 1
          },

Did you try enabeling those entities and did you try them out?

In the reolink app, do you have the ability to use digital zoom on the camera?

mbo18 commented 7 months ago

Yes I enabled them but it does nothing when I press them. In the Reolink app, I do not have button to zoom in or out. IMG_9543

starkillerOG commented 7 months ago

@mbo18 thanks for the feedback!

I have adjusted this in the library with this commit: https://github.com/starkillerOG/reolink_aio/commit/9e2391c9604bb44b83e277457624da0dd22e3edf. Once this makes it into HomeAssistant those buttons will not be added anymore for your RLC-81MA.

If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library or purchase Reolink products through this affiliate link.

mbo18 commented 7 months ago

Thanks!