GitXplorerGitXplorer
z

homepi-ac

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
d65c0a3bc8801d63fdec2f8d78d436ca4f7b6dd5

Update README.md

zzwaldowski committed 7 years ago
Unverified
697ab632ea92abbcf3c0c2a4305468bbc0a724f4

Update and rename homepi-ac.service-linux to etc-systemd-system-homepi-ac.service-sample

zzwaldowski committed 7 years ago
Unverified
51d1e56b2959c24b4a733ab0a611424aeee030be

Update README.md

zzwaldowski committed 7 years ago
Unverified
9c2d5cf5e14fd564f8adf8d942bc8f376f11aac6

Rename homepi-ac.defaults-sample to etc-default-homepi-ac.defaults-sample

zzwaldowski committed 7 years ago
Unverified
5d27cb3245f4f28d4f57156305256dff3c74b289

Rename homepi-ac.defaults-linux to homepi-ac.defaults-sample

zzwaldowski committed 7 years ago
Unverified
4d4f9870a243d1fa94835315d8ab49e41f2c8096

Update README.md

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