berfenger / cam2mqtt

Control IP cameras through MQTT reliably. Supports ONVIF (motion) and HTTP (reolink) control APIs.
Apache License 2.0
46 stars 3 forks source link

Add key functions 'SetPtzPreset' and 'GetAiState' #2

Open sracing opened 2 years ago

sracing commented 2 years ago

Hi, First of all - thank you for your great work here! I would like to use cam2mqtt as a module in a Home Automation application (SmarthomeNG, see [https://www.smarthomeng.de/]. What I am missing are the following functions:

Is that something you could consider to add to your code?

Regards - Marcus

berfenger commented 2 years ago

Now with the last changes, when the motion is tracked through ONVIF events (onvif: monitor_events: true), the GetAiState is called periodically to check the AI state and send people and vehicle detection events to MQTT (only if the camera supports so).