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

v2.0.5

Published

Control a valve over a GPIO pin as a HomeKit valve accessory.

Downloads

4

Readme

Homebridge GPIO Valve

Control a valve over a GPIO pin as a HomeKit valve accessory.

Features

  • Quick & easy configuration
  • Add as many valves as you need: just duplicate the configuration object
  • Supports timed valves with duration customizable within the Home app
  • Identify support: by default, pressing "Identify" in the Home app will open the valve for ten seconds
  • Logs each event (valve open, valve closed, identify) in the Homebridge log

Installation

sudo npm install homebridge-gpio-valve -g --unsafe-perm

Depending on how you have Node installed, you may or may not need sudo and the --unsafe-perm flag.

Configuration

| Name | Description | Valid Values | Default | |---|---|---|---| | pin | The pin to use for opening and closing the valve | The GPIO pin number of any valid pin. The selected pin should not be written to by any external applications | None | | openOnHigh | Whether or not the valve opens when the pin is high | true or false | true| | defaultDuration | The duration to open the value for when triggered. The user can change this value in the Home app | A duration in seconds no greater than 3600 (one hour) | 600 seconds (ten minutes) | | type | The type of attached valve. Affects the icon displayed for the accessory in the Home app. | As of iOS 11.3: "GENERIC_VALVE", "IRRIGATION", "SHOWER_HEAD", or "WATER_FAUCET" | "GENERIC_VALVE" | | isTimed | Whether or not the valve is on a timer | true or false | false | | supportsIdentify | Whether or not the valve opens in responce to an identify request. The user can trigger an identify request when adding the accessory to their home | true or false | true | | identifyDuration | The duration to open the valve for in responce to an identify request | Any duration in seconds. Keep this valve as short as possible; just allow the valve to open and be identified | 10 seconds | | storageDirectory | The directory for storing the user set duration. The directory is created if it does not exist | The path to any directory which is readable and writeable to Node | A subdirectory called gpio_valve within the Homebridge storage directory. Using the default Homebridge storage directory: ~/.homebridge/gpio_valve | | manufacturer | The value of the manufacturer characteristic of the information service | Any string | The author of this package | | model | The value of the model characteristic of the information service | Any string | "GPIO Valve" | | serialNumber | The value of the serial number characteristic of the information service | Any string | "None" | | firmwareRevision | The value of the firmware revision characteristic of the information service | Any string | The current version of this package |

Sample

 {
    "accessory": "GPIOValve",
    "name": "Grass",
    "pin": 11,
    "openOnHigh": false,
    "isTimed": true,
    "defaultDuration": 1200,
    "type": "IRRIGATION"
}

Known Issues

  • As of iOS 11.3, the Home app only displays a special icon for irrigation valves. All other valve types receive the same generic icon.