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
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 Distribution
Built Distribution
File details
Details for the file airscape-0.1.9.2.tar.gz
.
File metadata
- Download URL: airscape-0.1.9.2.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66812a89178f5c4ca271149aa09198c9843c6cb1b5010aeae310887b1b5562e2 |
|
MD5 | 7233a5a1e2180e2375af25ea25a4d7cf |
|
BLAKE2b-256 | fe33fddb93ef543a0200ecfbcacc5fd49776321c3d1fa2625a709bb517136a1b |
File details
Details for the file airscape-0.1.9.2-py3-none-any.whl
.
File metadata
- Download URL: airscape-0.1.9.2-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a096fa79d3b53417221add1b5df4a6277bf32de337949c779e68797684af56 |
|
MD5 | 279065f33ef7f8206154a8794d628e06 |
|
BLAKE2b-256 | 5abc064aa64d6a9346a730198ebecb9455676a7a4eda13210e5dc21ec34833fd |