This project is a python3 library for interfacing with the IntesisBox PA-AW-MBS-1 (no H generation) Modbus RTU controller using pyModbus.
- PA-AW-MBS-1 Datasheet
- PA-AW-MBS-1 Installation Manual
- PA-AW-MBS-1 Devices Compatibility List
- PA-AW-MBS-1 Protocol Manual
git clone https://github.com/gianfrdp/pyModbusIntesisBox.git
cd pyModbusIntesisBox
python3 setup.py build
python3 setup.py install --user
or
sudo python3 setup.py install
- aquarea.poll_data()
then use
- aqaurea.system
- aquarea.mode
- aquarea.tank_setpoint_temp
- ...
Simply set values properties
- auarea.system = "On"
- aquarea.mode = "Tank"
- aquarea.tank_setpoint_temp = 48
and call
- aquarea.send_cmd()
from intesisbox.pa_aw_mbs import AquareaModbus
def main():
aquarea = AquareaModbus(port='/dev/ttyUSB0', slave=1, stopbits=1, bytesize=8, parity='N', baudrate=9600)
printf("Connecting...")
aquarea.connect()
printf("Polling data...")
aquarea.poll_data()
'''
use as needed aquarea properties, such as: aquarea.system aquarea.mode, etc
'''
printf("Disconnecting...")
aquarea.close()
if __name__ == "__main__":
main()
in examples directory there are some exapmles:
- aquarea_info.py: read only program to read and write on log all values
- aquarea.py: read/write program that sends also some values to domoticz
- aquarea.cron: sample cron file containng a year scheduling for Aquarea using aquarea.py