Skip to content

Panasonic Aquarea PA-AW-MBS-1 (no H generation) ModBus interface in python

Notifications You must be signed in to change notification settings

gianfrdp/pyModbusIntesisBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyModbusIntesisBox

This project is a python3 library for interfacing with the IntesisBox PA-AW-MBS-1 (no H generation) Modbus RTU controller using pyModbus.

Installation

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

Read/Write properties

Read

  • aquarea.poll_data()

then use

  • aqaurea.system
  • aquarea.mode
  • aquarea.tank_setpoint_temp
  • ...

Change values/modes

Simply set values properties

  • auarea.system = "On"
  • aquarea.mode = "Tank"
  • aquarea.tank_setpoint_temp = 48

and call

  • aquarea.send_cmd()

Library basic example

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

About

Panasonic Aquarea PA-AW-MBS-1 (no H generation) ModBus interface in python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages