Giter VIP home page Giter VIP logo

quietcool-python's Introduction

quietcool-python

A python library for communicating with the QuietCool Wifi Smart Control.

Usage

QuietCool's wifi controller works with all the fans in your attic. One controller (the Master Hub) connects to your wifi and the others (the Remote Hubs) connect to the Master. All commands you send to any fan go through the Master Hub, which means you have to initialize the Hub class with the IP address of the Master Hub.

async def print_all_fans():
    master_hub_ip = "10.0.0.100"
    hub = await Hub.create(master_hub_ip)
    fans = await hub.get_fans()

    for fan in fans:
        print(fan.name)

One you get the Fans, all communication should really be done through those objects.

Currently, the library supports:

  • Getting all fans in a system
  • Turning them on/off
  • Getting/setting current fan speed
  • Getting/setting available fan speeds

Things this library doesn't support:

  • Setting the fan name
  • Configuring the wifi settings for the hub
  • Updating firmware
  • Reading the fan diagnostics

Tests

There aren't any. I suppose I could set up a fake CoAP server that mimics the Wifi Smart Control, but that would just be the inverse of the code that's in the library. I usually test the code by...running the house fan or the attic fans.

Disclaimer

As with all house fans, you should really make sure a window is opened before using the library.

Also, I don't have a three-speed fan, so while it should work with them, I actually have no idea if it actually does.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.