user2684 / imou_life

Home Assistant custom component for controlling Imou devices
MIT License
119 stars 20 forks source link

Add an ability to call a PTZ preset point #75

Open Brix1330 opened 11 months ago

Brix1330 commented 11 months 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 11 months 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 10 months ago

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

user2684 commented 10 months ago

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

Brix1330 commented 10 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 10 months ago

Perfect, noted and added to the roadmap. THanks

mguyard commented 2 weeks ago

Hi,

Also very interrested by this feature