Skip to main content

QUII Helper 📹

PyPI Python License: MIT

Use QUII / Qualvision cameras and video intercoms from Python, without running the original mobile app. Capture images and video, serve RTSP, inspect device information, and explicitly open a connected door.

Available on PyPI.

Features · Compatibility · Quick Start · RTSP · Documentation · Safety · Support

Features ✨

Feature What you can do
LAN-only playback (default) Connect by IP with a saved key/auth pair, without client-side cloud requests or fallback.
Snapshots Capture a JPEG with Camera.snapshot().
Recording Save an MP4 clip with Camera.save_video().
RTSP Forward the live H.264 preview to a player such as VLC.
LAN talk (experimental) Explicitly send sound or start/stop computer conversation while video continues.
Archive downloads (experimental) Download original archived JPEGs or H.264 MP4 with supported audio.
Stream-key bootstrap Explicitly fetch/save a cloud key/auth pair, then reuse it for LAN-only playback.
Device inspection Read supported cloud and local device information.
LAN discovery Find devices exposing Qualvision-compatible services.
Call history Read incoming-call cloud history with experimental get_call_events().
Door control Send an explicit local opening command with Camera.open_door().

Call history is not a live ringing subscription. Available device fields and local commands depend on firmware; an unsupported query does not imply that video capture is unsupported.

Version 0.3.0 adds experimental receive-only audio: Camera.listen_audio() returns encoded frames, and serve_rtsp(audio=True) forwards G.711 sound alongside video through one camera connection. Both were tested with Tantos on a Raspberry Pi. RTSP remains video-only by default. MP4 recording also includes available G.711 sound as AAC; without supported audio it remains video-only.

Version 0.4.0 includes experimental LAN talk via Camera.talk(): send application-supplied PCM and receive encoded audio using panel preview plus generic talk 65535. Shared-preview speech transmission and reception were confirmed on Tantos panel 2 using a Raspberry Pi and a file-backed audio adapter. For a PC microphone/headphones bridge, see session.start_talk() / stop_talk() on the handle from serve_rtsp(), and python -m examples.converse --channel 2. Video and conversation share one preview; stopping talk leaves video running. The optional audio extra is needed only for explicit PC audio. Vimar talk and physical PC duplex quality remain unverified. No RTSP backchannel or echo cancellation is provided; use headphones.

Version 0.4.0 also adds experimental archived JPEG/MP4 downloads with Camera.download_record(entry). This LAN-only API returns bytes using a saved key/auth pair, without preview or cloud access. Video supports H.264 with optional G.711 audio and requires FFmpeg; private temporary files are cleaned automatically. Archived H.264 + G.711 video downloads were verified on Tantos/Pi, including owner-reviewed image and sound; archived JPEG downloads remain unverified. See archive compatibility for the validation scope.

Compatibility 🔍

  • Tantos Marilyn Wi-Fi s with vHome 2.2: snapshots, MP4 capture, RTSP, door opening in auto mode, and incoming-call history on the tested backend. Shared-preview speech/reply and archived-video image/sound were also confirmed.
  • Vimar K40955, firmware V401R001B002, with vEye Pro 1.9.4.0.2: saved-key LAN RTSP, confirmed by a user on 2026-10-25. Other features on this model remain unverified.

Tantos LAN playback and cloud-key bootstrap were also checked on a physical Raspberry Pi (Linux ARM64). A saved key worked for about four days but no longer worked by day six; explicitly fetching a new key restored LAN playback. This is not a fixed expiry guarantee; see the compatibility notes.

Related devices may return the HTTP header Server: Qualvision -HTTPServer or expose TCP port 34567. These are discovery hints, not proof of support. See Compatibility for per-device evidence, platform coverage, limitations, and reporting another device. A working video stream does not establish support for door control, call history, or two-way audio.

Quick Start 🚀

1. Install

Use Python 3.10 or newer, preferably in a virtual environment:

python -m pip install quii-helper

To upgrade, use python -m pip install --upgrade quii-helper.

2. Configure Your Application

Camera defaults to LAN-only playback: use the camera's IP and a saved stream key/auth pair, with no cloud requests or automatic fallback.

There are two separate setup phases:

  • No saved key yet? Complete the first-run cloud setup in step 3.
  • Already have a saved key for this camera? Skip cloud setup and go straight to step 4: LAN-only playback.

Prepare an application directory and run the following code from there:

my-camera-app/
  app.py
  .env
  data/
    stream_credentials.json  # Created in step 3; keep private.

3. First Run: Cloud Setup And Key Save

Local IP/channel/stream settings alone cannot obtain a key. Before running the cloud code below, fill all 10 required variables in .env:

CLOUD_ACCOUNT="<mobile-app-login>"
CLOUD_PASSWORD="<mobile-app-password>"
DEVICE_ID="<your-camera-device-id>"
CLOUD_CLIENT_UUID="<generate-once-with-command-below>"
CLOUD_AUTH_URL="<auth-url-for-your-app-and-region>"
CLOUD_SERVICE_URL="<service-discovery-base-url-from-your-app>"
CAMERA_OEM="<oem-from-your-app>"
CAMERA_APP_ID=<numeric-app-id>
CAMERA_CLIENT_TYPE=<numeric-client-type>
IP_REGION_ID=<numeric-region-id>

Replace every <...> placeholder with your own value before running anything. The last three values must be positive integers, not the placeholder text. Generate CLOUD_CLIENT_UUID once and keep it between runs:

python -c "import uuid; print(uuid.uuid4().hex)"

Copy the printed value into CLOUD_CLIENT_UUID in .env.

Find the other values using Setup And APK Extraction and cloud discovery. CLOUD_SERVICE_URL is required by shared validation even though key acquisition does not perform discovery. CLOUD_AUTH_VERSION is additionally needed if your app uses a versioned auth header. TLS verification defaults to enabled; see TLS troubleshooting if a vendor certificate fails.

With these settings already known, this call needs cloud access but no camera IP, APK assets, FFmpeg, AUTH_CODE, or STREAM_KEY. It obtains the matching key/auth pair for you. Put this code in app.py and run python app.py once:

from quii_helper import Camera, load_config

cloud_camera = Camera(config=load_config(), connection_mode="cloud")
credentials = cloud_camera.fetch_stream_credentials()
credentials.save("data/stream_credentials.json")

This saves data/stream_credentials.json without starting a preview or changing .env. A failure here must be resolved before proceeding. Re-running this code contacts cloud again and replaces the file; do not include it in normal LAN startup. The library never fetches or renews a key automatically. Saved keys can stop working. If a previously working LAN session stops receiving media, check connectivity and settings, then explicitly repeat bootstrap if needed; loading an old file or increasing a timeout does not renew its key.

4. Later Runs: LAN-Only Playback

Keep the saved JSON for this camera. For this phase, .env only needs the following local settings; replace the example IP with the camera's LAN IP:

CAMERA_CONNECTION_MODE=lan
CAMERA_DEVICE_HOST=192.0.2.10
CAMERA_STREAM_PORT=34567
CAMERA_CHANNEL=1
CAMERA_STREAM=low

The values above are defaults. Set CAMERA_CHANNEL to the panel you want and CAMERA_STREAM=high for the main, higher-quality stream, or low for lower bandwidth. Numeric ids still work: 1 = high, 2 = low; other ids and exact resolutions depend on firmware. main.py and the media examples honor these settings; explicit Camera(..., stream_quality="high") overrides them. LAN playback uses live_play_payload="path", live_inner=False, and live_newcn=False; other values produce a UserWarning and are ignored, preserving compatibility with older examples. These advanced compatibility options do not select the panel or quality. You can remove cloud settings from this application's .env; if retained, they are not used for this LAN connection. No cloud account or APK assets are needed. The saved file supplies the device id and key/auth pair; do not copy them into .env for this example.

For JPEG/MP4, install FFmpeg on PATH as described in Media Prerequisites. RTSP does not need FFmpeg. Run from the directory containing .env and the saved JSON: replace the bootstrap code in app.py with the following, then run python app.py. Do not keep the cloud-fetch code in this script:

from quii_helper import Camera, CameraStreamCredentials, load_config

saved = CameraStreamCredentials.load("data/stream_credentials.json")
camera = Camera(
    config=load_config(),
    connection_mode="lan",
    device_id=saved.device_id,
    stream_key=saved.stream_key,
    auth_code=saved.auth_code,
)

print(camera.snapshot())
print(camera.save_video(duration_seconds=15))

Both methods return a pathlib.Path. Default output goes to ./data/ with timestamped names. Connection setup and file rendering add time to the media collection window. See the API reference for timeouts, output paths, and capture results.

RTSP Streaming 📡

Use the same saved file for a local live stream:

from quii_helper import Camera, CameraStreamCredentials, load_config

saved = CameraStreamCredentials.load("data/stream_credentials.json")
camera = Camera(
    config=load_config(),
    connection_mode="lan",
    device_id=saved.device_id,
    stream_key=saved.stream_key,
    auth_code=saved.auth_code,
)

try:
    with camera.serve_rtsp(port=8554) as session:
        print(session.url)
        session.wait()
except KeyboardInterrupt:
    pass

Open rtsp://127.0.0.1:8554/live in VLC after media becomes available. The context manager stops the server on exit; session.wait() reports background failures and remains interruptible with Ctrl+C.

For a trusted LAN, pass host="0.0.0.0" and connect to the server's LAN IP, not 0.0.0.0. There is no RTSP authentication or TLS. Restrict access with a firewall/VPN and never expose this port publicly.

Prefer runnable scripts? A checkout includes examples.cloud_key_rtsp (fetch/save, then RTSP) and examples.lan_rtsp (reuse the saved file, no cloud requests). Run them with python -m examples.<name> from the repository root; they are not installed by pip.

Documentation 📚

I want to... Read
Get a key, save it, then view locally Key Bootstrap And Reuse
Set up an account, assets, and .env Setup And APK Extraction
Find methods, parameters, results, and errors Camera API Reference
Read call history Incoming Call History
View video and explicitly start/stop conversation Computer Conversation (optional audio extra)
Download archived pictures or video Archive Queries And Downloads
Open a door explicitly Door Control
Resolve a setup failure Troubleshooting
Check platforms or report a device Compatibility
Contribute or understand internals Contributing, Protocol Notes

Library imports do not read .env or change application logging. Use load_config() for file loading and see Logging to enable progress messages or diagnostics.

Safety And Limitations 🔒

  • Use only devices, accounts, and APKs you own or are authorized to access.
  • Never share .env, extracted assets, private keys, raw logs, or camera media.
  • Saved stream-credential JSON is also a secret: plaintext, not an encrypted vault. Keep it private and outside version control.
  • LAN-only describes the client's network behavior, not the camera's own Internet access. Key lifetime and reboot persistence remain unknown.
  • Keep TLS verification enabled. For vendor certificate failures, see the TLS guidance.
  • Local CGI methods need an explicit camera LAN host and authentication code; preview/cloud credentials do not automatically configure local access.
  • open_door() sends a real command. Acknowledgement is not proof of physical movement, and an uncertain outcome must not be retried automatically.
  • talk() is also active: it reserves an intercom audio connection and can interrupt a call. Run the talk example only when transmitting sound is safe.
  • The package is pre-1.0; experimental APIs and firmware compatibility have explicit limits. See the Security Policy and Changelog.

Support The Project

If quii-helper is useful to you, you can support its development on Boosty with a one-time donation. Support helps fund protocol research, device testing, documentation, and ongoing maintenance.

The project remains free and open source. Donations are optional and do not purchase features, delivery dates, or priority support. Bug reports, compatibility testing, and contributions are also welcome.

Animated cat

Metadata

Release files for quii-helper 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quii-helper 0.4.0
File Size Uploaded Provenance Actions
quii_helper-0.4.0.tar.gz 563.9 kB With provenance Details for quii_helper-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quii-helper 0.4.0
File Interpreter ABI Platform Actions
quii_helper-0.4.0-py3-none-any.whl Python 3 none any Details for quii_helper-0.4.0-py3-none-any.whl

Total release size: 975.3 kB

Release files / quii_helper-0.4.0.tar.gz

Download URL quii_helper-0.4.0.tar.gz
Size 563.9 kB
Tags Source
SHA-256 checksum
How to use checksums
20d9a82edd8538f97dea4891aa170e20203c824ec11c01a0f3f5840204537f25
BLAKE2b-256 checksum
How to use checksums
64c08d89535011935a5ec9221a05b9572b4d24e63368f32e722c4234774ee40b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / quii_helper-0.4.0-py3-none-any.whl

Download URL quii_helper-0.4.0-py3-none-any.whl
Size 411.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf30a1f8914ca1f2d81cd5eba4a84c65cf65ea0fee25db9ab3a948bff49a8293
BLAKE2b-256 checksum
How to use checksums
2537ccad705d3e78fc926e51d30a6f152524b13fec67d43036af2a658b82f9c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for quii-helper 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quii_helper-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page