All Projects → ankurp → homebridge-pi-thermostat

ankurp / homebridge-pi-thermostat

Licence: other
Homebridge Plugin to make Raspberry Pi into Thermostat

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to homebridge-pi-thermostat

homebridge-mijia-camera
Homebridge plugin for the Xiaomi Mijia 1080P Smart IP Camera, also known as Mi Home Security Camera.
Stars: ✭ 35 (+6.06%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-open-sesame
Homebridge plugin for SESAME3 and SESAME4
Stars: ✭ 14 (-57.58%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Gsh
Allow Google Assistant to control your Homebridge accessories.
Stars: ✭ 190 (+475.76%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-unifi-occupancy-sensor
An occupancy sensor for Homebridge and UniFi
Stars: ✭ 71 (+115.15%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-homee
use your homee with homebridge
Stars: ✭ 14 (-57.58%)
Mutual labels:  homebridge, homebridge-plugin
Verified
Plugins Verified by Homebridge
Stars: ✭ 180 (+445.45%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-panasonic
A Homebridge plugin for Panasonic Viera TV's. Written to support the new Homekit TV accessory.
Stars: ✭ 18 (-45.45%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Weather Plus
A comprehensive weather plugin for homebridge.
Stars: ✭ 176 (+433.33%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-callmonitor
Signals incoming and outgoing calls using the call monitor facility in Fritz!Box devices via HomeKit
Stars: ✭ 25 (-24.24%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Mi Acpartner
XiaoMi AC Partner plugins for HomeBridge(https://github.com/nfarina/homebridge).
Stars: ✭ 250 (+657.58%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-pilight
Accessory plugin for Homebridge allowing to manage and control pilight devices
Stars: ✭ 16 (-51.52%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-adb
Homebridge script to control remote ADB enabled Android device
Stars: ✭ 56 (+69.7%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-vieramatic
Homebridge plugin for Panasonic™ Viera™ TVs (includes support for 2018 and later models)
Stars: ✭ 39 (+18.18%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-keylights
Yet another Homebridge plugin for Elgato Key Light and Key Light Air. https://homebridge.io
Stars: ✭ 40 (+21.21%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Mi Hygrothermograph
Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
Stars: ✭ 179 (+442.42%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Ewelink
Homebridge plugin to control eWeLink devices with original firmware.
Stars: ✭ 208 (+530.3%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Platform Wemo
Homebridge plugin to control Wemo devices.
Stars: ✭ 173 (+424.24%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Dafang
Homebridge Plugin for Xiaomi Dafang / Wyze Cam IP Camera => Hey Siri, Start Video Recording
Stars: ✭ 176 (+433.33%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Myq
🚗 myQ Liftmaster and Chamberlain Plugin for Homebridge https://github.com/nfarina/homebridge
Stars: ✭ 222 (+572.73%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-vsx
📻 A VSX and SC Plugin for homebridge
Stars: ✭ 12 (-63.64%)
Mutual labels:  homebridge, homebridge-plugin

Homebridge Pi Thermostat Plugin

This is a homebridge plugin to make a Raspberry Pi connected with a Relay Board and DHT22 Temperature and Humidity Sensor into a smart thermostat that can be controlled via the Home app on iOS using Homekit.

Raspberry Pi Thermostat showing Wiring

Guide

For those who want to create their own thermostat using Raspberry Pi, here is a blog post that goes through the details of where to buy the parts, how to assemble it and what software to install to get this to work.

Installation

  • Install nodejs and other dependencies for homebridge to work
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs libavahi-compat-libdnssd-dev
  • Install BCM2835 for temperature sensor to work
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.52.tar.gz
tar zxvf bcm2835-1.52.tar.gz
cd bcm2835-1.52
./configure && make && sudo make check && sudo make install
  • Install homebridge and this plugin
sudo npm install -g --unsafe-perm homebridge homebridge-pi-thermostat
  • Add the accessory config to your homebridge config file located at this path ~/.homebridge/config.json.
{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },
  "description": "",
  "accessories": [
    {
      "accessory": "Thermostat",
      "name": "Pi Thermostat",
      "fanRelayPin": 26,
      "heatRelayPin": 21,
      "coolRelayPin": 20,
      "temperatureSensorPin": 4,
      "minimumOnOffTime": 120000,
      "blowerTurnOffTime": 80000,
      "startDelay": 10000,
      "temperatureCheckInterval": 10000
    }
  ],
  "platforms": []
}
  • Start it up by running homebridge command.

Configuration

Relay Pins

You can change the pin to turn on and off the relay switch for the Fan, Heat and Cool setting.

"fanRelayPin": 26,
"heatRelayPin": 21,
"coolRelayPin": 20,

Temperature Sensor Pin

You also can change the pin for the DHT22 temperature sensor.

"temperatureSensorPin": 4,

Timing

The system has a minimum on off time which is in miliseconds and is the minimum time it keeps the Heat or Cool turned on and off so that it does not damage the heating or cooling system by turning on and off very quickly.

"minimumOnOffTime": 120000,

The system also has a blowerTurnOffTime which is the time it takes to turn off the blower after Heat or Cool is turned off.

"blowerTurnOffTime": 80000,

The interval for checking the temperature of the room can also be set and defaults to 10 seconds.

"temperatureCheckInterval": 10000

Screenshots

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].