homebridge-blinds-wired
v1.0.4
Published
HomeKit support for non-smart motorized blinds through wired connection.
Downloads
15
Maintainers
Readme
Homebridge Blinds Wired
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
andstopPin
should point to the Rpi GIOs.- Setting a
stopPin
command in conjunction with atransitionInterval
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 bothupPin
anddownPin
, in this case you should use a value of 99 forstopPin
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 usetrue
, 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, enter15
here andhomebridge-blinds-wired
will simulate the time it takes to complete that transition in HomeKit. The default is 10 seconds.manufacturer
,model
, andserial
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!