Brabant
Release Brabant is the whole set. You can use it with or without Python installed. When in the configuration the option: camera_event_detection_by_python = Yes then Python and Python packages like python-zeep, onvif and zeep-async myst be installed (see the other repositories as well file look for file Readme_install_these_python_packages.txt)
IMPORTANT: There is an error in onvif-zeep-async-3.1.12. You need to manually comment some part of the code to get it working.!!
This is how:
download src package from pypi.org
unzip and adapt managers.py
zip and run pip install /storage/emulated/0/Download/onvif-zeep-async-3.1.12.zip
https://github.com/home-assistant/core/blob/dev/homeassistant/components/onvif/event.py#L65
program python-onvif-zeep-async/onvif/managers.py must have a adaption in try and except part
#Comment or delete this code block
async def (self) -> None:
"""Renew or start notify subscription."""
if self._shutdown:
return
renewal_call_at = None
try:
renewal_call_at = (
await self._renew_subscription()
)
except:
renewal_call_at = (
await self._restart_subscription()
)
finally:
self._schedule_subscription_renew(
renewal_call_at
or self._loop.time()
+ SUBSCRIPTION_RESTART_INTERVAL_ON_ERROR.total_seconds()
)
Required packages:
python-onvif-zeep-async (onvif_zeep_async-3.1.12 was used)
python-onvif-zeep (onvif_zeep-0.2.12 was used)
onvif (might come with the packages above, else use onvif-0.1.0
easydict (easydict-1.11 was used)
asyncio
logging
pytz (pytz-2023.3.post1)
zeep (zeep-4.2.1 was used)
typing
httpx (httpx-0.26.0 was used)
FOR The Python versions (see other repositories) you might want to install these as well
threading
opencv-python (opencv_python-4.9.0.80 was used; cv2 / opencv2)
io
urllib3
json
numpy (numpy-1.26.1 was used)
psutil
collections (might be standard installed in python 3.11
multiprocessing