QUII Helper 📹
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
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. |
| 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.
Compatibility 🔍
The tested device is Tantos Marilyn Wi-Fi s, used with vHome 2.2:
snapshots, MP4 capture, RTSP, door opening in auto mode, and incoming-call
history on the tested account/backend.
LAN playback and cloud-key bootstrap were also checked on a physical Raspberry
Pi (Linux ARM64). See the compatibility guide for validation scope and limits.
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 platform coverage and how to report another device.
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.
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=2
The port/channel/stream above are defaults; select the correct channel/stream
for your device. 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 |
| 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.- The package is pre-
1.0; experimental APIs and firmware compatibility have explicit limits. See the Security Policy and Changelog.
Metadata
Release files for quii-helper 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quii_helper-0.2.0.tar.gz | 452.5 kB | With provenance | Details for quii_helper-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quii_helper-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for quii_helper-0.2.0-py3-none-any.whl |
Total release size: 818.8 kB
Release files / quii_helper-0.2.0.tar.gz
| Download URL | quii_helper-0.2.0.tar.gz |
|---|---|
| Size | 452.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36522312d7ccfef458568257bc7ee008d0d90f932a4341a42890636328486533
|
|
BLAKE2b-256 checksum How to use checksums |
41bff3bb30eb9604a0e30b78a258b59e3d971b7b475e9d10f00be4428e98caf2
|
| 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 23, 2026.
Transparency logRelease files / quii_helper-0.2.0-py3-none-any.whl
| Download URL | quii_helper-0.2.0-py3-none-any.whl |
|---|---|
| Size | 366.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf253970a7bfaee33c37ae55acf45358b70ddb9ed09d3bc98c5dd281ecc59f48
|
|
BLAKE2b-256 checksum How to use checksums |
d679574414d60a81a71936fccc79f9e46ce4c2c6c4aa538b3a34d1939e6d3fea
|
| 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 23, 2026.
Transparency logSecurity for quii-helper 0.2.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.
Attestation for quii_helper-0.2.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 23, 2026.
Transparency logA 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.