Skip to main content

Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)

Project description

python-aidot

Control AIDOT WiFi lights and cameras from Python and Home Assistant.

This is a camera-capable fork of the upstream lights-only python-aidot. It adds live WebRTC video streaming (DTLS and SDES-SRTP paths), snapshots, PTZ, camera controls, cloud recordings/thumbnails, and two-way (push-to-talk) audio, plus a Home Assistant custom component that exposes all of it.

Library install

The camera support is not published to PyPI (PyPI only has the upstream lights-only releases). Install this fork's library directly from the repo:

# lights + camera cloud/control only:
pip install "git+https://github.com/cbrightly/python-AiDot"
# add live WebRTC streaming, snapshots, and two-way audio:
pip install "python-aidot[webrtc] @ git+https://github.com/cbrightly/python-AiDot"

Home Assistant component

The custom component lives in custom_components/aidot/. Its manifest.json lists the third-party Python dependencies (aiortc, av, paho-mqtt, …) so Home Assistant installs those automatically, but the aidot library itself is not on PyPI - install it into Home Assistant's Python environment first:

# inside the HA venv / container
pip install "python-aidot[webrtc] @ git+https://github.com/cbrightly/python-AiDot"

Then copy custom_components/aidot/ into your HA config/custom_components/ folder (or add this repo to HACS as a custom repository) and restart Home Assistant.

CLI

test_camera.py exercises the camera features directly - discovery, LAN probe, WebRTC streaming, snapshots, recordings, attribute get/set, and two-way audio (--talk). Run python test_camera.py --help for the full list.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_aidot_cameras-0.5.12.tar.gz (184.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_aidot_cameras-0.5.12-py3-none-any.whl (174.5 kB view details)

Uploaded Python 3

File details

Details for the file python_aidot_cameras-0.5.12.tar.gz.

File metadata

  • Download URL: python_aidot_cameras-0.5.12.tar.gz
  • Upload date:
  • Size: 184.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for python_aidot_cameras-0.5.12.tar.gz
Algorithm Hash digest
SHA256 8aa41bd08b235c62810910937cda0c3cf7353d00b198f01d78a70a0808d15719
MD5 07e819f855c76403e5b89103968954dc
BLAKE2b-256 c1f143c89c63e4904ff02c59b05605986ee4c666a7786bc989f55d68b745b4b4

See more details on using hashes here.

File details

Details for the file python_aidot_cameras-0.5.12-py3-none-any.whl.

File metadata

File hashes

Hashes for python_aidot_cameras-0.5.12-py3-none-any.whl
Algorithm Hash digest
SHA256 1a4b9b1f49754a47c5134d7986bfe596a326f52c5fda81d4de7f0fbce1dec419
MD5 997f048302e00813bb66724788884f81
BLAKE2b-256 bdff3b79f84e6b04d3879a73866e457e1f5c617952297effb1bf34fa799681df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page