fwestenberg / reolink_dev

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

Camera snapshot service from chosen stream source (sub/main) #161

Closed acateon closed 3 years ago

acateon commented 3 years ago

Describe the bug When the sub stream is selected for a camera, the HA snapshot service grabs a frame from the main profile. Also the entity image is from the main stream.

Additional context Snapshot from the sub stream when chosen as source in the setup would be great for external object processing speed.

RestOp commented 3 years ago

Hello,

i have the issure that i set up SUB stream in integration setting, but nothing changes, it works from MAIN stream also afetr restart of HA image

fwestenberg commented 3 years ago

For as far as I know, the snapshot has no option to choose quality. Check here, there is no parameter included. The integration use the snapshot option from the CGI api, which has only those params:

param = {"cmd": "Snap", "channel": self._channel}

Can you choose snapshot quality anywhere else, like the WebUI or Reolink Windows application?

fwestenberg commented 3 years ago

Also the command /cgi-bin/api.cgi?cmd=onvifSnapPic&channel=0 has no quality option. I'm closing this issue, please inform me if you find out how to do this.