Skip to main content

An interface to control an AirScape Whole House Fan

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

Invocation

Import into your code and create a airscape.Fan object

import airscape
fan = airscape.Fan('192.168.1.10', 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 3 attributes to control:

  • on/off
  • speed
  • timer
>>> fan.is_on
False
>>> fan.is_on = True
>>> fan.is_on
True
>>> fan.speed
2
>>> fan.speed = 5
>>> fan.speed
5
>>> fan.add_time()

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

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

Project details


Download files

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

Source Distribution

airscape-0.1.9.4.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

airscape-0.1.9.4.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file airscape-0.1.9.4.1.tar.gz.

File metadata

  • Download URL: airscape-0.1.9.4.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for airscape-0.1.9.4.1.tar.gz
Algorithm Hash digest
SHA256 a3dcb219d4ee2ee99129d77963655bb0e24b65ebba52045a176990180043de99
MD5 7ff32e070ecbfcbf81162556e15d97d3
BLAKE2b-256 ce441ae0727c59c17ad54ddd8ef47e1041841eecba07925a6c22cd78cee11a2d

See more details on using hashes here.

File details

Details for the file airscape-0.1.9.4.1-py3-none-any.whl.

File metadata

  • Download URL: airscape-0.1.9.4.1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for airscape-0.1.9.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3f1c80f1af01f5dffb8da4c20ede2320c1c04806ad061421e45afa9ba9d7eba
MD5 791126aeccdc7b492bb2fb2fe3234714
BLAKE2b-256 d8aa6c3d4526c94bb9a8c7e8f05adbedee804684ea405f90deab7d78d2c6a1ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page