1.6.3 • Published 2 months ago

homebridge-web-boiler v1.6.3

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

homebridge-web-boiler

npm npm

Description

This homebridge plugin exposes a web-based boiler to Apple's HomeKit. Using simple HTTP requests, the plugin allows you to control your central heating as well as your hot water (if enabled in the config.json).

See the examples folder for ready-to-use NodeMCU boiler control scripts, featuring both hysteresis and OpenTherm implementations. Hysteresis maintains the temperature within a set range, while OpenTherm controls temperature more precicely by modulating the boiler's output.

Installation

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

Configuration

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

Core

KeyDescriptionDefault
accessoryMust be BoilerN/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
minStepMinimum increment value for the temperature selector in the Home app0.5
chMinLower bound for the temperature selector in the Home app15
chMaxUpper bound for the temperature selector in the Home app30
dhwWhether you want to expose hot water control as an extra accessoryfalse
dhwNameName for the extra hot water accessoryHot Water
dhwMinLower bound for the hot water in the Home app40
dhwMaxUpper bound for the hot water in the Home app50

Additional options

KeyDescriptionDefault
pollIntervalTime (in seconds) between device polls300
checkupDelayTime (in milliseconds) after setting HeatingCoolingState to update targetHeatingCoolingState and currentHeatingCoolingState2000
listenerWhether to start a listener to get real-time changes from the devicefalse
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": FLOAT_VALUE,
    "currentHeatingCoolingState": INT_VALUE,
    "currentTemperature": FLOAT_VALUE
}

Note: You must also include the following fields in /status where relevant:

  • currentRelativeHumidity (if currentRelativeHumidity is enabled)
  • dhwTargetState (if dhw is enabled)
  • dhwCurrentState (if dhw is enabled)
  • dhwTargetTemperature (if dhw is enabled)
  • dhwCurrentTemperature (if dhw is enabled)
  1. Set targetHeatingCoolingState when it receives:
/targetHeatingCoolingState?value=INT_VALUE
  1. Set targetTemperature when it receives:
/targetTemperature?value=FLOAT_VALUE
  1. Set dhwTargetState when it receives: (if dhw is enabled)
/dhwTargetState?value=INT_VALUE
  1. Set dhwTargetTemperature when it receives: (if dhw is enabled)
/dhwTargetTemperature?value=FLOAT_VALUE

Optional (if listener is enabled)

  1. Update targetHeatingCoolingState following a manual override by messaging the listen server:
/targetHeatingCoolingState?value=INT_VALUE
  1. Update targetTemperature following a manual override by messaging the listen server:
/targetTemperature?value=FLOAT_VALUE
  1. Update dhwTargetState following a manual override by messaging the listen server: (if dhw is enabled)
/dhwTargetState?value=INT_VALUE
  1. Update dhwTargetTemperature following a manual override by messaging the listen server: (if dhw is enabled)
/dhwTargetTemperature?value=FLOAT_VALUE
1.6.3

2 months ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.1.2

5 years ago