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
Running
pip install virtualenv virtualenv venv .\venv\Scripts\activate pip install --no-cache-dir -r requirements.txt python test/test_sentioApi.py
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
WavinSentioModbus-0.8.0.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for WavinSentioModbus-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c8aa709b6b751653c6bf51551a9026fa0dc3430ade93aac41a7f3c2b1fb5f0 |
|
MD5 | 3f1f29fd711770d36357af60af08d6ce |
|
BLAKE2b-256 | b0a554db2bc3e01b64fb6776e36ce87be2584b371e3e019491bc4af8f60e223b |