Skip to content

A Homekit-enabled IR hub to control all your IR devices (air conditioners and TVs).

License

Notifications You must be signed in to change notification settings

GPL71/ESP-Homekit-IRHub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP-Homekit-IRHub

A Homekit-enabled IR hub to control all your IR devices.

Quick start (not really quick)

  1. It is recommended to use Ubuntu, although it may work on other opreating systems.

  2. Install these development tools:

sudo apt-get update

Then

sudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \
    flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \
    sed git unzip bash help2man wget bzip2 libtool-bin
  1. Clone esp-open-sdk, and then compile it:
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk
make
  1. Add generated toolchain directory (something like /path/to/esp-open-sdk/xtensa-lx106-elf/bin) to your PATH.

  2. Download esp-open-rtos:

git clone --recursive https://github.com/Superhouse/esp-open-rtos.git

Then set environment variable SDK_PATH to the esp-open-rtos directory.

  1. For NodeMCU, you need to change the flash mode:
export FLASH_MODE=dout
  1. Connect your ESP8266 to your computer, then set environment variable ESPPORT pointing to your ESP8266, for example:
export ESPPORT=/dev/ttyUSB0

And make sure you can write to it by adding your user to group dialout:

sudo usermod -a -G dialout <your_user>
  1. Clone this repository and sync all submodules:
git clone https://github.com/NN708/ESP-Homekit-IRHub.git
cd ESP-Homekit-IRHub
git submodule update --init --recursive
  1. Change to ir_hub directory:
cd ir_hub

Then you can compile it using:

make

To flash your device, use:

make erase_flash
make flash

Then debug through serial port:

make monitor

To-do

  • Store accessory information in flash, to make users able to add or delete accessories without editing source code.

  • Add more accessories, and let users download accessory configurations from online servers.

License

Licensed under the MIT license.

About

A Homekit-enabled IR hub to control all your IR devices (air conditioners and TVs).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.0%
  • Makefile 1.7%
  • C++ 1.3%