Code Monkey home page Code Monkey logo

gateway-hue's Introduction

IoT Gateway Application for Phillips Hue

Connect your Phillips Hue Bridge to Watson IoT.

Lights

Automatic Device Registration

Any new type of light connected to your Hue bridge will be auto-registered as a new device type in Watson IoT:

  • id is set to the modelid reported by Hue
  • deviceInfo.description is set to the type reported by Hue
  • deviceInfo.manufacturer is set to the manufacturername reported by Hue
  • deviceInfo.model is set to the modelid reported by Hue

Likewise, all devices connected to the bridge will be auto-registered by the gateway application:

  • typeId is set to the modelid reported by Hue
  • deviceId` is set to the uniqueid`` reported by Hue, with ":" replaced by "-" as the delimiter
  • deviceInfo.description is set to the type reported by Hue
  • deviceInfo.fwversion is set to the swversion reported by Hue
  • deviceInfo.manufacturer is set to the manufacturername reported by Hue
  • deviceInfo.model is set to the modelid reported by Hue

Events

State updates are published to Watson IoT every 60 seconds (althought this can easily be changed). For every light connected to your Hue bridge the gateway will relay a state event containing all the state data available from your Hue bridge:

{
  "on": true, 
  "hue": 14910, 
  "colormode": "ct", 
  "effect": "none", 
  "alert": "none", 
  "xy": [0.4596, 0.4105], 
  "reachable": true, 
  "bri": 254, 
  "ct": 369, 
  "sat": 144
}

Commands

This version of the gateway only supports publishing state events. Command control will be added in the future.

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.