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.12.0.tar.gz (18.6 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.12.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wavinsentiomodbus-0.12.0.tar.gz
Algorithm Hash digest
SHA256 749d2209ad5a171138d6fd5b9ef9fa76074dc713fa800702b00737540ee20358
MD5 ba4bc4dffedf4c293a5d03198c4f5029
BLAKE2b-256 772bde03327aa46f24c4656f52774debc148cf8f47347a42abb6b5ec0da0da2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wavinsentiomodbus-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28f1960ddb1b8766c63e5f9e663a680a89d0a4eca7c725d01ac9f21597550023
MD5 16bd2bf1da33703e51b8359c1d0e432a
BLAKE2b-256 99e634622ce5d3e002ecae9f7dfce4f4708649f7f2690af56361749d122e773b

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