npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hap-alexa

v0.0.17

Published

HAP-NodeJS Modules to support Amazon Alexa Integration

Downloads

17

Readme

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