Giter VIP home page Giter VIP logo

homebridge-http-dimmer's Introduction

Homebridge-http-plugin

homebridge-http-dimmer is a Homebridge plugin with which you can configure HomeKit lightbulbs which forward any requests to an http server. This can be used when you have an automated equipment which can be controlled via http requests (You have a wifi enable Arduino, which is triggered with http requests).

Example plugin configuration:

{
    "accessory":"HTTP-DIMMER",
    "name":"happy light",
    "onUrl": "http://10.0.0.9/dimmerOn",
    "offUrl": "http://10.0.0.9/dimmerOff",
    "statusUrl": "http://10.0.0.9/getDimmerState",
    "statusPollingInterval":5,
    "setBrightnessUrl": "http://10.0.0.9/setBrightness?brightness=",
    "getBrightnessUrl":"http://10.0.0.9/getBrightness"
}

Configuration options

name 		: <string> name of the accessory. This is displayed on HomeKit
onUrl 		: <string> url to turn on the accessory
offUrl		: <string> url to turn off the accessory
statusUrl	: <string> returns the status of the accessory (return 1 as body if ON and 0 if OFF)
statusPollingInterval	: <integer> number of seconds to poll status
setBrightnessUrl : <string> url, to whose end brightness will be appended
getBrightnessURl : <string> url which will return the value of brightness in the body

I'm using this project along with nodemcu, so this is the response for statusUrl : server.send(200, "text/plain", "1");. For brightness also, this will be similar.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.