1.0.4 • Published 5 years ago

homebridge-web-thermostat-fan v1.0.4

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

homebridge-web-thermostat-fan

This plugin is based on the homebridge-web-thermostat but has a slider for fan speed to be able to control AC-s with it as well.

Description

This homebridge plugin exposes a web-based thermostat to Apple's HomeKit. Using simple HTTP requests, the plugin allows you to set the thermostat mode and control the target temperature.

Installation

  1. Install homebridge
  2. Install this plugin: npm install -g homebridge-web-thermostat-fan
  3. Update your config.json file

Configuration

"accessories": [
     {
       "accessory": "ThermostatWithFan",
       "name": "Thermostat with a fan",
       "apiroute": "http://myurl.com"
     }
]

Core

KeyDescriptionDefault
accessoryMust be ThermostatWithFanN/A
nameName to appear in the Home appN/A
apirouteRoot URL of your deviceN/A

Optional fields

KeyDescriptionDefault
temperatureDisplayUnitsWhether you want °C (0) or °F (1) as your units0
currentRelativeHumidityWhether to include currentRelativeHumidity as a field in /statusfalse
maxTempUpper bound for the temperature selector in the Home app30
minTempLower bound for the temperature selector in the Home app15
temperatureThresholdsWhether you want the thermostat accessory to have heating and cooling temperature thresholdsfalse
coolingThresholdTemperatureCooling threshold temperature if thresholds are enabled30
heatingThresholdTemperatureHeating threshold temperature if thresholds are enabled20

Additional options

KeyDescriptionDefault
listenerWhether to start a listener to get real-time changes from the devicefalse
pollIntervalTime (in seconds) between device polls300
timeoutTime (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable3000
portPort for your HTTP listener (if enabled)2000
http_methodHTTP method used to communicate with the deviceGET
usernameUsername if HTTP authentication is enabledN/A
passwordPassword if HTTP authentication is enabledN/A
modelAppears under the Model field for the accessoryplugin
serialAppears under the Serial field for the accessoryapiroute
manufacturerAppears under the Manufacturer field for the accessoryauthor
firmwareAppears under the Firmware field for the accessoryversion

API Interfacing

Your API should be able to:

  1. Return JSON information when it receives /status:
{
    "targetHeatingCoolingState": INT_VALUE,
    "targetTemperature": INT_VALUE,
    "currentHeatingCoolingState": INT_VALUE,
    "currentTemperature": FLOAT_VALUE,
    "fanSpeed": INT_VALUE
}

Note: You must also include the following fields in /status if enabled in the config.json:

  • currentRelativeHumidity
  • coolingThresholdTemperature & heatingThresholdTemperature
  1. Set targetHeatingCoolingState when it receives:
/targetHeatingCoolingState/INT_VALUE
  1. Set targetTemperature when it receives:
/targetTemperature/INT_VALUE
  1. (if enabled) Set coolingThresholdTemperature when it receives:
/coolingThresholdTemperature/INT_VALUE
  1. (if enabled) heatingThresholdTemperature when it receives:
/heatingThresholdTemperature/INT_VALUE

Optional (if listener is enabled)

  1. Update targetHeatingCoolingState following a manual override by messaging the listen server:
/targetHeatingCoolingState/INT_VALUE
  1. Update targetTemperature following a manual override by messaging the listen server:
/targetTemperature/INT_VALUE
  1. (if enabled) Update coolingThresholdTemperature following a manual override by messaging the listen server:
/coolingThresholdTemperature/INT_VALUE
  1. (if enabled) Update heatingThresholdTemperature following a manual override by messaging the listen server:
/heatingThresholdTemperature/INT_VALUE

HeatingCoolingState Key

NumberName
0Off
1Heat
2Cool
3Auto

FanSpeed Key

NumberName
0Off
1Quiet
2Low
3Medium
4High
5Auto
1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago