0.0.1 • Published 6 years ago

homebridge-thermostat-brizzz v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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 any thermostat info
GET /status
{
    targetHeatingCoolingState: INT_VALUE_0_TO_3,
    targetTemperature: FLOAT_VALUE,
    targetRelativeHumidity: FLOAT_VALUE,
    currentHeatingCoolingState: INT_VALUE_0_TO_2,
    currentTemperature: FLOAT_VALUE, //prev temperature
    currentRelativeHumidity: FLOAT_VALUE_AS_PERCENTAGE //prev humidity
}
  1. Set target HeatingCoolingState
GET /targetHeatingCoolingState/{INT_VALUE_0_TO_3}
OK (201)
  1. Set target temperature
GET /targetTemperature/{FLOAT_VALUE}
OK (201)
  1. Set target relative humidity
GET /targetRelativeHumidity/{FLOAT_VALUE}
OK (201)