1.0.2 • Published 6 years ago

homebridge-http-sunscreen v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

homebridge-http-sunscreen

A switch plugin for homebridge (https://github.com/nfarina/homebridge) which integrates with HTTP(S) APIs.

A plugin for sunscreens that can be controlled with an API.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin: npm install -g homebridge-http-sunscreen
  3. Update your config.json configuration file

Configuration

NameRequiredDescription
accessoryYesHas to be HttpSunscreen
nameNoName in home app (default HTTP Sunscreen)
levelUrlYesURL to set the level of the sunscreen; no up or down URL is used, only the level where 0 is up en 100 is down => %position% should be part of the URL and wil be substituted in the code with the level!
statusUrlNoURL to check the status via the API
pollingIntervalNoThe pollinginterval in milliseconds to check the level of the sunscreen (default 3000 (3 seconds))
jsonPathNoJSON Path where the status can be found
httpMethodNoMethod for sending requests (default GET)

Configuration exampe based on Domoticz JSON API:

"accessories": [ 
       {
               "accessory": "HttpSunscreen",
               "name": "Sunscreen backyard",
               "levelUrl": "http://192.168.1.114:8081/json.htm?type=command&param=switchlight&idx=178&switchcmd=Set%20Level&level=%position%",
               "statusUrl": "http://192.168.1.114:8081/json.htm?type=devices&rid=178",
               "pollingInterval": 5000,
               "jsonPath": "result[0].Level",
               "httpMethod": "GET"
       }
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago