Skip to main content

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


Download files

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

Source Distribution

venta_protocol_v2_device-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

venta_protocol_v2_device-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file venta_protocol_v2_device-0.1.0.tar.gz.

File metadata

File hashes

Hashes for venta_protocol_v2_device-0.1.0.tar.gz
Algorithm Hash digest
SHA256 350c74766e51b391816eef53987f9e340ff254d93aed901e665b0397222ab6e2
MD5 0cbd42adb65d8f07d130df561333e4ff
BLAKE2b-256 17bbdcb7c95e507e2f90b442dbb98af8067002513ad45d5c16075457a2276399

See more details on using hashes here.

File details

Details for the file venta_protocol_v2_device-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for venta_protocol_v2_device-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 496a17767acb5a6313b517f31b485a8232c4c94e4d4c87617b590f4ef12e3029
MD5 33c3586a7e1bc89cfbeb54765209e87e
BLAKE2b-256 7e12fba21be8b787ef6a6eed0dd58363bd65846a51b5e1e4ebde37bebd3cd1b2

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