user2684 / imou_life

Home Assistant custom component for controlling Imou devices
MIT License
128 stars 21 forks source link

Add an ability to call a PTZ preset point #75

Open Brix1330 opened 1 year ago

Brix1330 commented 1 year ago

I would love to get this feature implemented, especially for Cruiser 4MP, so people can automate the camera's pan-and-tilt location to a saved preset. IIRC currently it's only possible to move the camera manually from HA.

I've integrated my camera with Frigate to detect humans at my gate. The default view covers both part of the main road and the gate. However, with this approach, I can only set the camera to a fixed view as automatic tracking would interfere with the Frigate detection area and with the automatic tracking turned on, someone could trick the camera to move away from the POI. If I could call a preset, when there's a human at my gate, it would switch to a preset point (number dropdown menu; just like on SmartPSS) that points towards the gate, allowing for more complex possibilities.

user2684 commented 1 year ago

Hi I think the API described herehttps://open.imoulife.com/book/en/http/device/operate/controlLocationPTZ.html seems the one which allows moving the camera to a given position. Let me add it to the development queue even if the implementation could take a while :-) Thanks

bimbopp commented 1 year ago

Hi would it still be possible to add the devicePTZInfo service?

user2684 commented 12 months ago

You mean having a service which moves to a preset position? Thanks

Brix1330 commented 12 months ago

You mean having a service which moves to a preset position? Thanks

Yes, and it would also be even better to have a GUI control (device info page) as well. Thanks.

user2684 commented 11 months ago

Perfect, noted and added to the roadmap. THanks

mguyard commented 2 months ago

Hi,

Also very interrested by this feature

mguyard commented 1 month ago

Hello,

With Imou mobile app we are able to set favorite (preset). That seems to be available in api :

With these API endpoint, preset will be easy to manage. Do you think you can implement this ?