GitXplorerGitXplorer
z

homepi-ac

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
6b47603c0c76a3c82ab9261cf1f09fd1be8aaca7

Sample of needed LIRC config

zzwaldowski committed 7 years ago
Unverified
36396526d91455326ac914c15427beed2b3c84c7

Update README.md

zzwaldowski committed 7 years ago
Unverified
27340d1845ba0da7edded0d52ddd9df89fcf487a

More off-by-one problems, because I am not smart

zzwaldowski committed 7 years ago
Unverified
2e2f1cd3f9d72895408f51457fee06ba01f41b6d

Flesh out README

zzwaldowski committed 7 years ago
Unverified
271c4c41a7ca461a32606b5614b3e29c6f56d938

Better rounding

zzwaldowski committed 7 years ago
Unverified
3e5684166664fade8116703e1e2d368c5af96f94

Introduce server!

zzwaldowski committed 7 years ago

README

The README file for this repository.

HomePi AC

Investigation into the use of ANAVI Infrared pHAT to bridge a “dumb” air conditioner into HomeKit.

This code has been ported into the much more extensible Homebridge as the plugin homebridge-anavi-infrared-aircon. Prefer its use instead.

This server was designed and tested on Raspberry Pi Zero W.

Dependencies

  • Install packages. For Raspbian Stretch:
# apt install nodejs-legacy npm lirc i2c-tools libavahi-compat-libdnssd-dev
  • Enable I2C
  • Enable LIRC module overlay. Update /etc/lirc/lirc_options.conf and /etc/lirc/hardware.conf.
  • Reboot
  • Create LIRC configuration

Further reading

Commands

Get temperature

homepi-ac temperature
$ ./index.js temperature
80.96000000000001°F

Manipulate AC

homepi-ac ac -d <lirc-device-name> <power|down|up|fan|timer|mode>
./index.js ac -d LG_AKB73016012 power
(beep beep!)

HomeKit Server

homepi-ac server -d <lirc-device-name> -c <pin> -n [network-device-name] -s <serial-number> -p [port]
./index.js server -d LG_AKB73016012 -c 000-00-001 -s 000000000000
(beep beep!)

Installation

$ git clone https://github.com/zwaldowski/homepi-ac.git
$ cd homepi-ac
# mkdir /var/lib/homekit
# npm install -g --prefix /var/lib/homekit
# useradd —-system homekit
# usermod -a -G i2c homekit
# chown -R homekit /var/lib/homekit
# cp data/etc-default-homepi-ac.defaults-sample /etc/default/homepi-ac
# nano /etc/default/homepi-ac
# cp data/etc-systemd-system-homepi-ac.service-sample /etc/systemd/system/homepi-ac.service
# systemctl daemon-reload
# systemctl enable homepi-ac
# systemctl start homepi-ac
$ systemctl status homepi-ac