RVT-Monitor
BLE Device Monitor and Control Tool for Ceily/Wally devices.
Installation
pip install rvt-monitor
Or install from source:
cd rvt-monitor
pip install -e .
Usage
rvt-monitor
Opens web UI at http://127.0.0.1:8000
BLE Protocol Reference
Device Information Service (0x180A)
Standard BLE SIG service for device identification.
| Characteristic | UUID | Format | Example |
|---|---|---|---|
| Model Number | 0x2A24 | {device}-p{protocol} |
ceily-p2, wally-p2 |
| Hardware Revision | 0x2A27 | v{version} |
v0, v1 |
| Firmware Revision | 0x2A26 | semver | 2.0.0 |
Custom Services
| Service | UUID | Description |
|---|---|---|
| Control | 0000ff20-... |
Motion control |
| System Status | 501a8cf5-98a7-4370-bb97-632c84910000 |
Device state |
| Dimension | cc9762a6-bbb7-4b21-b2e2-153059030000 |
Device config |
| LED | 07ecc81b-b952-47e6-a1f1-0999577f0000 |
LED control |
| Log | cc9762a6-bbb7-4b21-b2e2-153059032200 |
Event logs |
Motion Commands
Write to MOTION_CONTROL characteristic (0x0000ff21-...):
| Command | Value | Ceily | Wally |
|---|---|---|---|
| STOP | 0x00 | Stop | Stop |
| UP/OPEN | 0x01 | Up | Open |
| DOWN/CLOSE | 0x02 | Down | Close |
Motion States
Read from SYSTEM_STATUS characteristic (byte 0):
| State | Value | Description |
|---|---|---|
| DOWN/CLOSED | 0 | At bottom/closed position |
| UP/OPENED | 1 | At top/opened position |
| MOVING_DOWN | 2 | Moving down/closing |
| MOVING_UP | 3 | Moving up/opening |
| STOP | 4 | Stopped mid-motion |
| EMERGENCY | 5 | Emergency stop |
| INIT | 255 | Initializing |
Protocol Version Detection
By Device Info Service
from bleak import BleakClient
MODEL_NUMBER_UUID = "00002a24-0000-1000-8000-00805f9b34fb"
async def detect_protocol(client: BleakClient) -> int:
"""Detect protocol version from Model Number."""
try:
data = await client.read_gatt_char(MODEL_NUMBER_UUID)
model = data.decode("utf-8").rstrip("\x00")
# Format: "ceily-p2" or "wally-p2"
if "-p" in model:
return int(model.split("-p")[1])
except Exception:
pass
return 1 # Legacy fallback
By Service Discovery
DEVICE_INFO_SERVICE = "0000180a-0000-1000-8000-00805f9b34fb"
async def detect_by_services(client: BleakClient) -> int:
"""Detect by checking for Device Info Service."""
for service in client.services:
if service.uuid.lower() == DEVICE_INFO_SERVICE:
return 2
return 1 # Legacy (no Device Info Service)
Example: Connect and Control
from bleak import BleakClient
MOTION_CONTROL_UUID = "0000ff21-0000-1000-8000-00805f9b34fb"
SYSTEM_STATUS_UUID = "501a8cf5-98a7-4370-bb97-632c84910001"
async def control_device(address: str):
async with BleakClient(address) as client:
# Read status
data = await client.read_gatt_char(SYSTEM_STATUS_UUID)
state = data[0]
print(f"Current state: {state}")
# Send UP command
await client.write_gatt_char(MOTION_CONTROL_UUID, bytes([0x01]))
Project Structure
rvt-monitor/
├── rvt_monitor/
│ ├── ble/
│ │ ├── manager.py # BLE connection management
│ │ ├── profiles.py # Protocol version profiles
│ │ ├── protocol.py # UUID definitions & parsers
│ │ └── scanner.py # Device discovery
│ ├── server/
│ │ ├── app.py # FastAPI server
│ │ └── routes/ # API endpoints
│ └── static/ # Web UI
└── pyproject.toml
Publishing to PyPI
Via Git Tag (Recommended)
# Update version in pyproject.toml first
git add pyproject.toml
git commit -m "chore(rvt-monitor): Bump version to x.y.z"
# Create and push tag
git tag rvt-monitor-vX.Y.Z
git push origin main --tags
CI/CD will automatically build and publish to PyPI.
Manual Trigger
- Go to GitHub → Actions
- Select "Publish rvt-monitor to PyPI"
- Click "Run workflow"
Related
- Firmware:
v1/common_components/- Device-side BLE implementation - OTA Tool:
ota/ota.py- Firmware deployment
Metadata
Release files for rvt-monitor 1.1.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 |
|---|---|---|---|---|
| rvt_monitor-1.1.0.tar.gz | 65.9 kB | With provenance | Details for rvt_monitor-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rvt_monitor-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for rvt_monitor-1.1.0-py3-none-any.whl |
Total release size: 148.0 kB
Release files / rvt_monitor-1.1.0.tar.gz
| Download URL | rvt_monitor-1.1.0.tar.gz |
|---|---|
| Size | 65.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd2f9418cc24e96120b2e605430f6596f86c90e0d40d512bffd53247fb7ff9af
|
|
BLAKE2b-256 checksum How to use checksums |
d6163bed7733eaa97ac1f945d8481bc2298978b426da89e6d6163819e6e14c22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 30, 2026.
Transparency logRelease files / rvt_monitor-1.1.0-py3-none-any.whl
| Download URL | rvt_monitor-1.1.0-py3-none-any.whl |
|---|---|
| Size | 82.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f45486df53c9a15acce719b3e3f5b5480be65308347a2c62b1fc9339e50f1054
|
|
BLAKE2b-256 checksum How to use checksums |
ccbdabd2e3eaedab8a52642475771814ecfd59587b93e32c4a9f851848175f77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 30, 2026.
Transparency logSecurity for rvt-monitor 1.1.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 rvt_monitor-1.1.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 May 30, 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.