Skip to content

Small project to send data from a temperature sensor connected to an esp8266 to a HomeKit server, running on a Raspberry Pi.

Notifications You must be signed in to change notification settings

greenywd/esp8266_homekit_temp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp8266_homekit_temp

Small project to send data from a temperature sensor to a HomeKit server, running on a Raspberry Pi. This branch supports the DHT22 Temperature and Humidity Sensor. See the schematic below on to setup the hardware side of it (I used a 10kohm resistor).

Installation (DHT22)

Firstly, this sketch includes the Adafruit DHT Library(Too lazy to write my own code atm :p). Make sure you have that installed before doing anything else.

Verify and upload the sketch to your board and take note of the IP Address displayed in the Serial Monitor. Go to http://enter_ip_address/temperature and ensure that there's json looking like

{ 
   "temperature":25, 
   "humidity":30 
}

Next, install Homebridge along with the homebridge-httptemperaturehumidity plugin. Configure the Homebridge config to include the accessory:

"accessories": [
   {
       "accessory": "HttpTemphum",
       "name": "Temperature",
       "url": "http://ESP_IP_HERE/temperature?format=json",
       "http_method": "GET"
   }
],

After starting Homebridge the current temperature and humidity should now be displayed in your Home app! (see below for images).

Installation (Analog Sensor)

To-Do

Images

Home App

Home App

Schematic

Schematic

About

Small project to send data from a temperature sensor connected to an esp8266 to a HomeKit server, running on a Raspberry Pi.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%