/homebridge-updownstopblind

Homebridge plugin for Up/Down/Stop window blinds

Primary LanguageJavaScriptGNU Lesser General Public License v2.1LGPL-2.1

"Generic Up/Down/Stop window blind" Plugin

Example config.json:

    "accessories": [
        {
            "accessory": "UpDownStopBlind",
            "name": "Blind Living Room",
            "time": 10,
            "cmd_up" : "cmd2cap.py -c up -b 0x1 -C 0x23 > /dev/udp/192.168.1.12/1236",
            "cmd_down" : "cmd2cap.py -c down -b 0x1 -C 0x23 > /dev/udp/192.168.1.12/1236",
            "cmd_stop" : "cmd2cap.py -c dot -b 0x1 -C 0x23 > /dev/udp/192.168.1.12/1236"
        }   
    ]

With this plugin, you can hook any command line controllable window blind that supports up, down and stop commands up to Homebridge.

For instance, with the Heicko window blind package generator and the NodeMCU 433 Mhz gateway you can remote control any Heicko window blind in your home.

time

Window blinds take a variable time to open. This property describes the number of seconds that it takes for the blind to close fully. This is used to automatically calculate a closing percentage so that you can stop the blind at any given point.

    "accessories": [
        {
          ...
          "time": 10,
          ...
        }   
    ]

cmd_up / cmd_down / cmd_stop

These commands are executed when the window blind should go up / down / stop respectively.

    "accessories": [
        {
          ...
            "cmd_up" : "cmd2cap.py -c up -b 0x1 -C 0x23 > /dev/udp/192.168.1.12/1236",
            "cmd_down" : "cmd2cap.py -c down -b 0x1 -C 0x23 > /dev/udp/192.168.1.12/1236",
            "cmd_stop" : "cmd2cap.py -c dot -b 0x1 -C 0x23 > /dev/udp/192.168.1.12/1236"
          ...
        }   
    ]