Skip to content
forked from JurajNyiri/pyatrea

Python library for communication with Atrea ventilation units

License

Notifications You must be signed in to change notification settings

radimek/pyatrea

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAtrea

Python library for communication with Atrea ventilation units

Install:

python3 -m pip install pyatrea

Usage examples:

Initiate library:

from pyatrea import pyatrea

atrea = pyatrea.Atrea("192.168.0.2","passwordOnAtreaWebsite")

Get status of your unit with human readable identifications (if available):

status = atrea.getStatus()
if(status == False):
    exit("Authentication failed")

for id, value in status.items():
    print(atrea.getTranslation(id) + ":" + value)

Get human readable warnings and errors:

status = atrea.getStatus()
params = atrea.getParams()

for warning in params['warning']:
    if status[warning] == "1":
        print(atrea.getTranslation(warning))
for alert in params['alert']:
    if status[alert] == "1":
        print(atrea.getTranslation(alert))

About

Python library for communication with Atrea ventilation units

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.5%
  • Shell 0.5%