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

@kelcon/homebridge-zwave-direct

v1.0.0

Published

Homebridge plugin that talks directly to a OpenZWave USB stick

Downloads

13

Readme

Homebridge ZWave Direct

Homebridge plugin that communicates directly with ZWave devices via OpenZWave librariesplugin that communicates directly with ZWave devices via OpenZWave libraries

Features

Currently support the following devices:

  • BINARY_SENSOR, like motion sensors
  • BINARY_SWITCH, like mains switches
  • MULTI_LEVEL_SENSORS, for temperature, humidity, luminosity, power meters
  • SIRENs, shown as a switch

It also allow to start inclusion via a virtual Switch Accessory called Inclusion. This will instruct the ZWave stick to start inclusion of a new ZWave device. Typically such a device needs to be put in Inclusion mode (3 rapid clicks on a button)

Installation

  1. Install Homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g git+https://[email protected]/S0urceror/homebridge-zwave-direct.git
  3. Download and install OpenZWave binaries:
  4. Add the user running homebridge to the dialout group: sudo usermod -a -G dialout $HOMEBRIDGE_USER
  5. Update your configuration file. See the sample below.

Sample Configuration

Please specify to which serial device your USB stick is connected.

The config file allows to set emptyhomebridgecache to true, to flush all ZWave devices from Homekit, and redetect them. Helpful while debugging.

New in this version is the ability to specify hinted devices. In a ZWave network battery operated devices are most of time sleeping and not continuously advertising their presence and capabilities. This way they would never appear in HomeKit. This way we can specify what type of device it is and which capabilities it has. The Zwave bridge will then map the right HomeKit types to the ZWave command-classes.

"platforms": [
    {
      "platform": "zwave-direct",
      "serial": "/dev/cu.usbmodem1421",
      "emptyhomebridgecache": false,
      "hinteddevices": [{
        "nodeid": 4,
        "type": "Binary Sensor",
        "subtypes" : "temperature,luminance,batterylevel",
        "name": "Kitchen Sensor"
      },{
        "nodeid": 10,
        "type": "Binary Sensor",
        "subtypes" : "temperature,luminance,batterylevel",
        "name": "Livingroom Sensor 1"
      }
    }
]

Credits

The guys over at OpenZWave for creating the libs, nodejs client and typescript definitions. Homespun and SphtKr for additional communitytypes, this enables me to emulate a ZWave metering outlet as an Elgato Eve Energy. The Z-Wave standard, now becoming more open, is still an easy and rock solid communication protocol.