Python library for communication with Atrea ventilation units
python3 -m pip install pyatrea
from pyatrea import pyatrea
atrea = pyatrea.Atrea("192.168.0.2",80,"passwordOnAtreaWebsite")
status = atrea.getStatus()
if(status == False):
exit("Authentication failed")
for id, value in status.items():
print(atrea.getTranslation(id) + ":" + value)
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))