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-blinds-wired

v1.0.4

Published

HomeKit support for non-smart motorized blinds through wired connection.

Downloads

15

Readme

homebridge-blinds-wired: Native HomeKit support for non-smart motorized blinds through wires

Homebridge Blinds Wired

Downloads Version

HomeKit support for non-smart motorized blinds through wires.

homebridge-blinds-wired is a Homebridge plugin that allows you to raise, lower, and stop your window blinds by wires. It makes a HomeKit window covering accessory available to you that can report status and be controlled entirely through wires. These days, there is a decent selection of window blinds available on the market with native HomeKit support. However, there are also blinds systems, such as Somfy, which don't have any meaningful HomeKit support. Add to that the proprietary remote protocols and you're in for a challenge in trying to make window blinds part of your HomeKit smart home.

Installation

If you are new to Homebridge, please first read the Homebridge documentation and installation instructions before proceeding.

If you have installed the Homebridge Config UI, you can intall this plugin by going to the Plugins tab and searching for homebridge-blinds-wired and installing it.

If you prefer to install homebridge-blinds-wired from the command line, you can do so by executing:

sudo npm install -g homebridge-blinds-wired

Dependencies

Make sure rpi-gpio is installed...

npm install rpi-gpio

check with: npm list

Configuration

I strongly recommend using the Homebridge Config UI rather than editing your config.json directly. It does a good job of showing you all the options and always generating a valid configuration so you don't get stuck on typos or looking for stray commas in your config.json.

For those that prefer configuring things directly, add the accessory in config.json in your home directory inside .homebridge.

   "platforms": [
     {
       "platform": "Blinds Wired",

       "blinds": [
         {
            "name": "Livingroom Curtains",
            "upPin": 11,
            "downPin": 13,
            "stopPin": 99,
            "pulseDuration": 200,
            "activeLow": "true",
            "transitionInterval": 15,
            "manufacturer": "Somfy",
            "model": "DCT",
            "serial": "1234-5678"
         }
      ]
    }
  ]

Options

  • upPin, downPin and stopPin should point to the Rpi GIOs.
  • Setting a stopPin command in conjunction with a transitionInterval will allow you to simulate partially opening or closing your blinds, enabling scenarios such as asking HomeKit to open the blind to a certain percentage (e.g. Hey Siri, set the blinds to 30%). In case of Somfy DCT, stop is realised by pulsing both upPin and downPin, in this case you should use a value of 99 for stopPin
  • pulseDuration is the value in miliseconds needed to trigger pins, 200ms is a good value for Somfy DCT.
  • activeLow is the relay board active low? in this case use true, else... false
  • transitionInterval is an optional setting that allows you to simulate a blind transition movement between open and closed. If it takes 15 seconds for the blinds to open, enter 15 here and homebridge-blinds-wired will simulate the time it takes to complete that transition in HomeKit. The default is 10 seconds.
  • manufacturer, model, and serial are optional settings to allow you to further identify your blinds in HomeKit.

Notes

This plugin doesn't query nor have direct knowledge of the actual position of your blinds. Instead, it emulates the position based on your most recent request to raise / lower the blinds (i.e. it remembers what you last asked it to do and reports that back to HomeKit). Some blinds, such as Somfy, don't support querying their specific state. That said, if you do wish to use a specific position, you can do so. It's passed as the last argument to the up and down script configuration options. How you choose to handle it, is up to you. What your plugin should output is the position it wants to HomeKit (e.g. 100 if the blind is fully open).

Additionally, if you specify transitionInterval and stopPin you'll magically get the ability to move the blind a precise amount. For instance, if you try to open the blind to 20%, homebridge-blinds-wired will pulsen the upPin and then use transitionInterval to figure out how many seconds to allow the blinds to move before pulsing the stopPin. The result, if you have transitionInterval correctly calculated for your blinds, should be relatively precise placement of your blinds at home - something that many popular blinds (e.g. Somfy), can't do natively!

Plugin Development

License