Control Venta Air Humidifiers that use Protocol Version 2
Project description
venta_protocol_v2_device
Small Python library to control Venta Air Humidifiers and Washers that use Protocol Version 2 (i.e., the ones using the /datastructure endpoint).
This package intentionally mirrors the public API style of
venta_protocol_v3_device
so migration/addaptation effort is kept at a minimum.
Example usage (without pip install)
import sys
sys.path.insert(0, "../../") # relative to notebook dir
import venta_protocol_v2_device
Example usage (once pip install is functioning)
from venta_protocol_v2_device import Venta_Protocol_v2_Device
d = Venta_Protocol_v2_Device("192.168.178.87")
print(d.getStatus())
print(d.toJSON())
Notebook examples
For longer, guided examples in Jupyter notebooks, see examples/notebooks:
- Basic single-device control workflow.
Supported control methods
setPower(bool)setSleepMode(bool)setAutomatic(bool)setFanSpeed(int)setTargetHum(int)setLEDStripActive(bool)setLEDStripMode(int)setLEDStripColor(str)setPowerMode(str)runUpdate(str)
Discovery
Based on analyzing sniffed UDP packets, it looks like discovery as found in protocol version 3.0 is not supported for protocol version 2.0 devices. Hence it is not included in this package. Instead use the device IP address directly:
from venta_protocol_v2_device import Venta_Protocol_v2_Device
d = Venta_Protocol_v2_Device("192.168.178.87")
If you need stable addressing, configure a DHCP reservation for the Venta device in your router or access point.
Corrections and/or Additions
Please feel free to raise issues or create pull request for corrections and/or additions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file venta_protocol_v2_device-0.1.0.tar.gz.
File metadata
- Download URL: venta_protocol_v2_device-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
350c74766e51b391816eef53987f9e340ff254d93aed901e665b0397222ab6e2
|
|
| MD5 |
0cbd42adb65d8f07d130df561333e4ff
|
|
| BLAKE2b-256 |
17bbdcb7c95e507e2f90b442dbb98af8067002513ad45d5c16075457a2276399
|
File details
Details for the file venta_protocol_v2_device-0.1.0-py3-none-any.whl.
File metadata
- Download URL: venta_protocol_v2_device-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
496a17767acb5a6313b517f31b485a8232c4c94e4d4c87617b590f4ef12e3029
|
|
| MD5 |
33c3586a7e1bc89cfbeb54765209e87e
|
|
| BLAKE2b-256 |
7e12fba21be8b787ef6a6eed0dd58363bd65846a51b5e1e4ebde37bebd3cd1b2
|