GithubHelp home page GithubHelp logo

tyler-r-smith / homebridge-alexa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from northernman54/homebridge-alexa

0.0 2.0 0.0 27 KB

Expose your homebridge controlled devices to Amazon Alexa.

JavaScript 100.00%

homebridge-alexa's Introduction

homebridge-alexa

Homebridge-Alexa is not your typical homebridge plugin, but a placeholder for my work to expose homebridge controlled accessories to Amazon Alexa. This is a version of homebridge and hap-nodejs that enables Amazon Alexa to discover accessories controlled and managed by homebridge. The discovery of homebridge devices leverages the native support of Hue devices by Alexa, and does not require a skill to be installed on Alexa.

  • Supports devices of homekit type Lightbulb, Outlet, and Switch. Others are not exposed.
  • If device supports the 'Brightness', then the ability to set brightness is included.
  • This does not have any devices or accessories that are visible from Homekit, and does not need to be added on the Home app.
  • This only works with real Amazon devices, and does not work with faux Amazon devices like Amazon AVS or AlexaPI

Installation

  • To enable this capability please install this special version of Homebridge and HAP-NodeJS.
sudo npm install -g https://github.com/NorthernMan54/homebridge

Configuration

  • add a new setting "ssdp" to the bridge section of your homebridge config.json file. Value must be 1900. i.e
 "bridge": {
    "name": "Howard",
    "username": "CC:22:3D:E3:CE:31",
    "port": 51826,
    "pin": "031-45-154",
    "ssdp": 1900
},
  • If the setting is not enabled, then your homebridge instance will not be visible to Alexa, useful when you have devices / plugins that you don't want Alexa to see. For example, Philips hue or Belkin wemo devices.

  • Ask Alexa to Discover Devices. She take about 20 seconds to discover your devices.

Voice commands supported

  • Alexa, turn on the _______
  • Alexa, turn off the _______
  • Alexa, set ______ to number percent

Known issues

  • This only works with Real Amazon Alexa devices, any RaspberryPI based devices like AlexaPI are not supported.
  • If you have hue devices and homebridge-hue, your hue devices will appear twice to Alexa. If you want to avoid this, setup a second instance of homebridge and move the homebridge-hue plugin to it, and don't enable this feature.

Troubleshooting / Issues

Credits

  • dsandor/fauxmojs - For the NodeJS UPNP/SSDP module
  • BWS Systems - For the inspiration around the Hue emulation based approach

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.