Python3 library for Airzone Cloud API
Project description
Airzone Cloud
Presentation
Abstract
Allow to communicate easily with Airzone Cloud to retrieve information or to send commands (on/off, temperature, HVAC mode, ...)
Module classes
- AirzoneCloud : represent your AirzoneCloud account. Contains a list of your devices :
- Device : represent one of your Airzone webserver registered. Contains a list of its systems :
- System : represent your climate equipment (Mitsubishi, Daikin, ...). Contains a list of its zones :
- Zone : represent a zone to control
- System : represent your climate equipment (Mitsubishi, Daikin, ...). Contains a list of its zones :
- Device : represent one of your Airzone webserver registered. Contains a list of its systems :
Usage
Install
pip3 install AirzoneCloud
Start api
from AirzoneCloud import AirzoneCloud
api = AirzoneCloud("email@domain.com", "password")
Get device status
for device in api.devices:
print(
"Device name={}, status={}, id={}, mac={}, pin={}".format(
device.name, device.status, device.id, device.mac, device.pin
)
)
Output :
Device name=Home, status=activated, id=5bc8ae0c4149526af90c0000, mac=AA:BB:CC:DD:EE:FF, pin=1234
Get system status
for system in api.device[0].systems:
print(
"System name={}, mode={}, eco={}, velocity={}, airflow={}".format(
self.name,
self.mode,
self.eco,
self.velocity,
self.airflow,
)
)
Output :
System name=Home, mode=heat-both, eco=eco-a, velocity=None, airflow=None
Get all zones status (on all devices / systems)
for zone in api.all_zones:
print(
"Zone name={}, is_on={}, mode={}, current_temperature={}, target_temperature={}".format(
zone.name,
zone.is_on,
zone.mode_name,
zone.current_temperature,
zone.target_temperature,
)
)
Output :
Zone name=Baby bedroom, is_on=False, mode=heat-both, current_temperature=20.4, target_temperature=19.5 Zone name=Parents bedroom, is_on=False, mode=heat-both, current_temperature=21.1, target_temperature=17.0 Zone name=Living room, is_on=True, mode=heat-both, current_temperature=21.4, target_temperature=21.5 Zone name=Kitchen, is_on=False, mode=heat-both, current_temperature=21.2, target_temperature=19.0
Control a specific zone
zone = api.all_zones[2]
print(zone)
# start zone
zone.turn_on()
# set temperature
zone.set_temperature(18.5)
print(zone)
Output :
Zone(name=Living room, is_on=False, mode=heat-both, current_temp=21.6, target_temp=21.0) Zone(name=Living room, is_on=True, mode=heat-both, current_temp=21.6, target_temp=18.5)
HVAC mode
Available modes
- stop : Stop
- ventilate : Ventilate
- dehumidify : Dry
- heat-air : Air heating
- heat-radiant : Radiant heating
- heat-both : Combined heating
- cool-air : Air cooling
- cool-radiant : Radiant cooling
- cool-both : Combined cooling
Set HVAC mode on a system (and its sub-zones)
system = api.devices[0].systems[0]
print(system)
# set mode to heat-both
system.set_mode("heat-both")
print(system)
Output :
System(name=Home, mode=stop, eco=eco-a, velocity=None, airflow=None) System(name=Home, mode=heat-both, eco=eco-a, velocity=None, airflow=None)
API doc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file AirzoneCloud-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: AirzoneCloud-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 710752cab25bb17fa7657c2bb4920434591213ffe7080670bd3ca38340b560ca |
|
MD5 | abc4cbcaeeaf9fe923190345bc67543d |
|
BLAKE2b-256 | 09a3bfbdc0332cbc365b5c0e25f845ff9e1b3ccb45f77cca88b7e33e1ed86637 |