/homebridge-advanced-http-temperature-humidity

Plugin to display temperature and humidity via http in homebridge

Primary LanguageJavaScript

Homebridge Advanced Http Temperature Humidity

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install homebridge-advanced-http-temperature-humidity using: npm install -g homebridge-advanced-http-temperature-humidity
  3. Update your configuration file. See Example Config for a sample.

Configuration

Parameters

parameter description default required
url The url to fetch temperature (and humidity) / true
http_method The http method GET false
sendimmediately see https://github.com/request/request#http-authentication false false
username Username for http-authentication / false
password Password for http-authentication / false
name Name of the homekit accessory / true
manufacturer Name of the manufacturer of the accessory HttpTemperatureHumidity false
model Name of the model of the accessory Default false
serial Serial of the accessory 18981898 false
disableHumidity Should humidity be disabled? false false

Example Config

{
  "bridge": {
    "name": "Homebridge",
    "username": "CD:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-156"
  },

  "description": "Example",

  "platforms": [],

  "accessories": [
    {
      "accessory": "AdvancedHttpTemperatureHumidity",
      "name": "Temperature and Humidity",
      "url": "http://192.168.178.210/temp/status"
    }
  ]
}

Response

The response must be in the following format:

( ESP Easy: [espeasyip]/json?tasknr=[tasknumber]&view=sensorupdate )

{"TaskValues":
[
 {"ValueNumber":1,"Name":"Temperature","NrDecimals":1,"Value":21.7},
 {"ValueNumber":2,"Name":"Humidity","NrDecimals":0,"Value":69}
],
"TTL":60000,"TaskEnabled":"true","TaskNumber":2
}