Metadata-Version: 2.1
Name: WavinSentioModbus
Version: 0.6.3
Summary: Python API for interfacing with Wavin CCU-208
Home-page: https://github.com/wavingroup/WavinSentioModbus
Author: Wavin T&I
Author-email: support@wavin.com
License: MIT
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyserial>=3.5
Requires-Dist: pymodbus>=3.6.0

# Wavin Sentio API

Wavin sentio modbus interface usable to control the Wavin Sentio devices

## dependencies
 - PyModbus (https://pymodbus.readthedocs.io/en/latest/readme.html)

### 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
 - [x] Modbus
 - [x] Logging
 - [x] Auto detect Rooms
 - [x] Auto detect Global Peripherals
   - [x] CMV
   - [x] (DE)Humidifiers
   - [x] DHW
- [ ] Validate and Use Global Peripherals
  - [ ] CMV
  - [ ] DHW
  - [ ] (DE)Humidifiers
- [x] Room Control 
    - [x] Set Temperature
    - [x] Read Temperature

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