Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hap-alexa

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hap-alexa

HAP-NodeJS Modules to support Amazon Alexa Integration

  • 0.0.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by700%
Maintainers
1
Weekly downloads
 
Created
Source

HAP-Alexa

HAP-Alexa is a addon to HomeBridge / HAP-NodeJS that adds Amazon Alexa control to your Homebridge devices.

This 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 run homebridge on the same machine as Kodi, this feature will not work and you will receive an error during startup. If you start homebridge first, then Kodi it should be okay.
  • Only one per machine. If you are running multiple copies of homebridge on a machine, it will not work.
  • 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

  • I have created a slack channel at (https://homebridgeteam.slack.com/messages/hap-alexa/) to troubleshoot issues.
  • To enable debug mode, please start homebridge in debug mode. ie DEBUG=* homebridge
  • For issues, please use the slack channel and post a debug log

Credits

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

Keywords

FAQs

Package last updated on 12 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc