Neanderthals Paint Mammals
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

homebridge-thermostat

0.0.43 • Public • Published

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)

install

npm i homebridge-thermostat

Downloadsweekly downloads

44

version

0.0.43

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability