Skip to main content

An interface to control AirScape Whole House Fans

Project description

AirScape WHF interface

AirScape has a collection of connected whole house fans. They can be controlled via their app, but also have a published API. This project is an interface to control their fans locally via the REST API on the fan.

API is documented here


Import into your code and create a airscape.Fan object

import airscape
fan = airscape.Fan('', 5)

Constructor takes 2 arguments. The IP or hostname (if you DNS registered your fan) and the timeout for communicating with the fan.

The timeout is optional and has a default value of 5.

Fan Control

The fan has 2 attributes to control:

  • on
  • speed
>>> fan.on
>>> fan.on = True
>>> fan.on
>>> fan.speed
>>> fan.speed = 5
>>> fan.speed

The speed can also be controled in incrememnts instead of setting directly

>>> fan.speed
>>> fan.speed_up()
>>> fan.speed
>>> fan.slow_down()
>>> fan.speed

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for airscape, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size airscape-0.1.8-py3-none-any.whl (16.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size airscape-0.1.8.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page