1.0.5 • Published 5 years ago

homebridge-http-lux2 v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

homebridge-http-lux2

Supports http ambient light sensor devices on the Homebridge platform. Additional hardware required. This is a modified version of the https://github.com/metbosch/homebridge-http-temperature plugin. This version only supports the light sensor. MAX lightlevel is set to 800.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-http-lux2
  3. Update your configuration file. See sample-config.json in this repository for a sample.

Configuration

Configuration sample file:

"accessories": [
    {
        "accessory": "HttpLux2",
        "name": "Ambient Light Level",
        "url": "http://192.168.0.20/api/lightlevel",
        "http_method": "GET"
    }
]

The defined endpoint will return a json looking like this

{
	"lightlevel": 450
}

This plugin acts as an interface between a web endpoint and homebridge. You will need additional hardware to expose the web endpoints with the light level information. I built my Temperature, Humidity and Light Sensor on the NodeMCU board with Arduino IDE.

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago