Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 971 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 971 Bytes

homebridge-thermostat

Supports thermostat devices on HomeBridge Platform

Installation

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

Configuration

Configuration sample:

   {
       "bridge": {
           ...
       },
       
       "description": "...",

       "accessories": [
           {
               "accessory": "Thermostat",
               "name": "Thermostat Demo",
               "apiroute": "http://myurl.com"
           }
       ],

       "platforms":[]
   }

API Expectations

The apiroute is used for two main calls: Get from the thermostat and set the target temperature. Your API should provide

  1. GET /status
{
    "targetTemperature":18,
    "temperature":"21.40",
    "humidity":"69.20"
}
  1. GET /targettemperature/{FLOAT_VALUE}