当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

esp8266_homekit_temp

授权协议 Readme
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 姬奇思
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

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