A Homekit-enabled IR hub to control all your IR devices.
-
It is recommended to use Ubuntu, although it may work on other opreating systems.
-
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
- Clone esp-open-sdk, and then compile it:
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk
make
-
Add generated toolchain directory (something like
/path/to/esp-open-sdk/xtensa-lx106-elf/bin
) to your PATH. -
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.
- For NodeMCU, you need to change the flash mode:
export FLASH_MODE=dout
- 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>
- 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
- 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
-
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.
Licensed under the MIT license.