Skip to content

max-christian/homebridge-blinds

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-blinds

homebridge-blinds is a plugin for Homebridge.

Control your http-based blinds via Homebridge!

Installation

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:

sudo npm install -g homebridge-blinds

Configuration

Add the accessory in config.json in your home directory inside .homebridge.

    {
      "accessory": "BlindsHTTP",
      "name": "Window",
      "up_url": "http://1.2.3.4/window/up",
      "down_url": "http://1.2.3.4/window/down",
      "stop_url": "http://1.2.3.4/window/stop",
      "motion_time": "<time your blind needs to move from up to down (in milliseconds)>",
      "http_method": "PUT",
      "trigger_stop_at_boundaries": false
    }

You can omit http_method, it defaults to POST.

trigger_stop_at_boundaries allows you to choose if a stop command should be fired or not when moving the blinds to position 0 or 100. Most blinds dont require this command and will stop by themself, for such blinds it is advised to set this to false.

Note

Currently the plugin only emulates the position (it saves it in a variable), because my blinds only support up and down via urls.

Feel free to contribute to make this a better plugin!

About

🌅 Homebridge Plugin to control my blinds over HTTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%