Git Product home page Git Product logo

haiku-fan-control's Introduction

haiku-fan-control

This project contains some simple code for controlling SenseME-enabled Haiku fans from BigAss Solutions.

This implementation is based off the protocol decoding by Bruce Pennypacker. You can see his blog posts at http://bruce.pennypacker.org/tag/haiku/.

haikuctl

Help

usage: haikuctl [-h] --address IP --name DEVICE_NAME [--device DEVICE_TYPE]
                [--state {on,off,partial}] [--level DEVICE_LEVEL]

optional arguments:
  -h, --help            show this help message and exit
  --address IP, -H IP   Address of the SenseME node
  --name DEVICE_NAME, -n DEVICE_NAME
                        Name of the fan, wall control, or light location to
                        control
  --device DEVICE_TYPE, -d DEVICE_TYPE
                        Type of device to send the command to (default: fan)
  --state {on,off,partial}, -s {on,off,partial}
                        Set device state (default: on)
  --level DEVICE_LEVEL, -l DEVICE_LEVEL
                        Set device speed/level

Note

Device level is set in increments from 0 to 15, with 0 corresponding to lowest/off and 15 corresponding to fastest/brightest.

Device name is the room location you placed the device in with the Haiku iPhone/Android app. This name is auto-uppercased within the script.

IP address is the address of the device.

This script currently does not control

  • Woosh mode,
  • enabling/disabling Auto-on,
  • Smart settings
  • Scheduling

Turn off a light in the Office

haikuctl -H 192.168.181.199 -n Office -d light -s off

Turn on a light in the Office

haikuctl -H 192.168.181.199 -n Office -d light -s on

Set the level on a light in the Office

haikuctl -H 192.168.181.199 -n Office -d light -s partial -l 8

Turn off a fan in the Office

haikuctl -H 192.168.181.199 -n Office -d fan -s off

Turn on a fan in the Office

haikuctl -H 192.168.181.199 -n Office -d fan -s on

Set the speed on a fan in the Office

haikuctl -H 192.168.181.199 -n Office -d fan -s partial -l 8

haiku-fan-control's People

Contributors

hcoyote avatar

Watchers

 avatar

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.