homebridge-blinds-cmd
is a plugin for Homebridge that allows you to open or close your window blinds by executing a given command line.
Control your blinds via Homebridge by executing specific command lines for opening or closing.
If you are new to Homebridge, please first read the Homebridge documentation. If you are running on a Raspberry, you will find a tutorial in the homebridge-punt Wiki.
Install homebridge:
sudo npm install -g homebridge
Install homebridge-blinds-cmd:
sudo npm install -g homebridge-blinds-cmd
Add the accessory in config.json
in your home directory inside .homebridge
.
{
"accessory": "BlindsCMD",
"manufacturer": "Somfy",
"model": "Sonesse",
"serial": "1234",
"name": "Downstairs Window Blinds",
"up_cmd": "/path/to/your/raise_blinds_script",
"down_cmd": "/path/to/your/lower_blinds_script",
"state_cmd": "/path/to/your/blinds_state_script",
}
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.
This script is based on Robin Temme's excellent homebridge-blinds plugin, and I have merely adapted and updated it to support executing a script instead of calling URLs for opening and closing blinds. Feel free to contribute to make this a better plugin!