czkanec / homebridge-thermostat

Supports thermostat devices on HomeBridge Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 bellow for a sample.

Configuration

Configuration sample:

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

       "accessories": [
           {
               "accessory": "Thermostat",
               "name": "Thermostat Demo",
               "apiroute": "http://myurl.com",
               "maxTemp": 25,
               "minTemp": 15
               //optional
               "maxTemp": "26",
               "minTemp": "15",
               "username": "user",
               "password": "pass"
           }
       ],

       "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 =======
{
    targetHeatingCoolingState: INT_VALUE_0_TO_3,
    targetTemperature: FLOAT_VALUE,
    currentHeatingCoolingState: INT_VALUE_0_TO_2,
    currentTemperature: FLOAT_VALUE, //prev temperature
    currentRelativeHumidity: FLOAT_VALUE_AS_PERCENTAGE //prev humidity
}
  1. GET /targetTemperature/{FLOAT_VALUE} =======
OK (201)

About

Supports thermostat devices on HomeBridge Platform

License:Apache License 2.0


Languages

Language:JavaScript 100.0%