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
Hashes for airscape-0.1.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138b84f8af9add81cacc195fb4248507759c2d45a5889ef39422bb11b1e922d4 |
|
MD5 | 61f5a200ace786dde19ef896638d8e0e |
|
BLAKE2b-256 | 4f27a341f94b510b067c4a11c98b7bd8a5906a4d57c98282c34e4096ef9f9be7 |