Skip to main content

Python API for interfacing with Wavin CCU-208

Project description

Wavin Sentio API

Wavin sentio modbus interface usable to control the Wavin Sentio devices

dependencies

Install Dependencies (if required)

python -m pip install pymodbus

Usage

Some snippets on example usage:

Construct Modbus TCP

sentio_api = SentioModbus("10.0.0.10", SentioApi.ModbusType.MODBUS_TCPIP)

Construct Modbus RTU (Serial)

sentio_api = SentioModbus("/dev/ttyS5", SentioApi.ModbusType.MODBUS_RTU, 19200, 1, _loglevel=logging.DEBUG)

Connect

Connect using the python modbus library

if sentio_api.connect() == 0:
  if sentio_api.initialize() == 0:
    print("Connected to Sentio and initialized devicedata")
  else:
    print("physical connected succeeded but initialization failed, check logs")
else:
  print("Connection failed")

for more detailed usage see test folder where functional tests are executed

Run Tests

python -m unittest test.test_SentioApi

Release History

TBD

Status

  • Modbus
  • Logging
  • Auto detect Rooms
  • Auto detect Global Peripherals
    • CMV
    • (DE)Humidifiers
    • DHW
  • Validate and Use Global Peripherals
    • CMV
    • DHW
    • (DE)Humidifiers
  • Room Control
    • Set Temperature
    • Read Temperature

TODO

  • Fix Todo's in code
  • Fix automatic versioning and publishing.

Running

pip install virtualenv virtualenv venv .\venv\Scripts\activate pip install --no-cache-dir -r requirements.txt python test/test_sentioApi.py

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

wavinsentiomodbus-0.13.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

wavinsentiomodbus-0.13.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file wavinsentiomodbus-0.13.0.tar.gz.

File metadata

  • Download URL: wavinsentiomodbus-0.13.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wavinsentiomodbus-0.13.0.tar.gz
Algorithm Hash digest
SHA256 60b7faac81cd33e01d34fc348fc654dc3f4212f8c4e19f4df93a92c934c710da
MD5 c5661d046d7ff205a23915745492eed9
BLAKE2b-256 25dc94e5b27e012942bc0f1137da6e9bbf846587951a5abf2618b56a196802e5

See more details on using hashes here.

File details

Details for the file wavinsentiomodbus-0.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wavinsentiomodbus-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01d8d0f71acaa48810769d7546f7cffbb721ad237f2a9a0aa7b183a0973199a1
MD5 d16122fc0fd0259786654b53c1b9a166
BLAKE2b-256 4e8e978b700e636f2426bc50535fac040daee529afeab9440ec139be12cc9e78

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