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

homebridge-harmony-api

v0.1.0

Published

A homebridge plugin for controlling individual Harmony Hub connected devices via: https://github.com/maddox/harmony-api

Downloads

14

Readme

homebridge-harmony-api

A homebridge plugin for controlling individual Harmony Hub devices via harmony-api.

npm version License

homebridge-harmony-api currently supports Switch, Fan, and Speaker accessory types.

Installation

This guide assumes that you already have a running [harmony-api](https://github.com/maddox/harmony-api) server.

# Install homebridge
$ npm install -g homebridge

# Install plugin
$ npm install -g homebridge-harmony-api

or add homebridge-harmony-api to your install.sh file.

Configuration

Configuration is as simple as adding a new accessories object for each device you'd like to control. Below is an example for an IR controlled air conditioner that I've taught my Harmony Hub to control. For more examples, see config.example.json.

{
  "accessory": "HarmonyDevice",
  "name": "Living Room Air Conditioner",
  "service": "Fan",
  "host": "localhost",
  "port": 8282,
  "hub_slug": "living-room",
  "device_slug": "air-conditioner",
  "commands": {
    "on": "power-toggle",
    "off": "power-toggle",
    "rotation_speed": {
      "33": "low",
      "67": "med",
      "100": "high"
    }
  }
}

Caveats

harmony-api currently conflicts with the homebridge-harmonyhub plugin. You won't be able to run them on the same host because they bind to the same port to discover harmony hubs on your network. My personal workaround for this is to link my Harmony Activities to HomeKit via my SmartThings hub and then using the [homebridge-smartthings](https://github.com/pdlove/homebridge-smartthings) plugin. In the future I'd like to add support for harmony activities to this plugin.

TODO

  • Add support for harmony hub activities
  • Investigate adding support for more HomeKit services and characteristics

Meta

You can find me on Twitter @edc1591

Hire me!

Distributed under the MIT license. See LICENSE for more information.