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-openhab2

v0.0.11

Published

A openHAB2 plugin for homekit.

Downloads

5

Readme

homebridge-openHAB2 Build Status

npm package

Homebridge plugin for openHAB2.

Prerequisites

Installation

  • Install the mdns and avahi library:

    sudo apt-get install libnss-mdns libavahi-compat-libdnssd-dev

  • Install homebridge:

    npm install -g homebridge

  • This plugin is published through NPM and should be installed "globally" by typing:

    npm install -g homebridge-openhab2 or if you have issues npm install -g --unsafe-perm homebridge-openhab2

  • Update your config.json file (usually is in your home/.homebridge/ directory, if you can't find, follow the instruction in homebridge). See config.json in this repository for a sample.

Configuration (config.json)

{
  "bridge": {
    "name": "openHAB2",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },

  "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

  "accessories": [
  ],

  "platforms": [
    {
      "platform": "openHAB2",
      "name": "openHAB2",
      "host": "192.168.0.100",
      "port": "8080",
      "sitemap": "home"
    }
  ]
}

Fields:

  • "platform" - Must be set to openHAB2
  • "name" - Name that you see in homekit
  • "host" - IP address/host of the openHAB2 server
  • "port" - Port of the openHAB2 server
  • "sitemap" - Sitemap name of your openHAB2 server

Item Configuration (home.items)

This plugins uses the same logic for items configuration of HomeKit Add-on for openHAB2.

You will need to tag your openHAB items in order to view in HomeKit.

A full list of supported accessory types can be found in the table below.

See the sample below for example items:

Switch KitchenLight "Kitchen Light" <light> (groupKitchen) [ "Switchable" ]
Color KitchenRGB "Kitchen RGB" <light> (groupKitchen) [ "Switchable" ]
Dimmer KitchenDimmer "Kitchen Dim" <light> (groupKitchen) [ "Switchable" ]

Switch KitchenLight "Kitchen Light" <light> (groupKitchen) [ "Lighting" ]
Color KitchenRGB "Kitchen RGB" <light> (groupKitchen) [ "Lighting" ]
Dimmer KitchenDimmer "Kitchen Dim" <light> (groupKitchen) [ "Lighting" ]

Color KitchenRGB "Kitchen RGB" <light> (groupKitchen) [ "Dimmable" ]
Dimmer KitchenDimmer "Kitchen Dim" <light> (groupKitchen) [ "Dimmable" ]

Release notes

Version 0.0.1

  • First release with only switch items.

Version 0.0.2

  • Refactor and update README.

Version 0.0.3

  • Update Tests.

Version 0.0.4

  • Update Tests.
  • Changed logic to include accessory, now you should tag items according to the table of supported items above.

Version 0.0.5

  • Added Lighting tag mapped to Lightbulb HomeKit type.
  • Updated README.
  • Added automatic deploy to npm for tagged version.

Version 0.0.6

  • Added Dimmable tag mapped to Lightbulb HomeKit type.
  • Updated README.
  • Refactor contexts in accessories.

Version 0.0.8

  • Updated deploy to npm.

Version 0.0.9

  • Added WindowCovering tag mapped to Window Covering HomeKit type.
  • Added ReverseWindowCovering tag mapped to Window Covering HomeKit type.

Version 0.0.10

  • Fix bug in dimmerAccessory that throws error with SSE.

Version 0.0.11

  • Added build status in README.