Python library for communicating with GlobalCache iTach IR/RF device.
- Command line interface
- REST interface
- Web interface
- Arduino I/O
pytach.py device <device> <command>
List available devices with pytach.py --help
pytach.py activity <activity> <command>
List available activities with pytach.py --help
pytach.py --web
Accessible on localhost:8099
pytach.py --arduino
Clone repoistory to you addons folder. In Home Assistant, open Add-ons and install.
Web UI will be available on host:8000
.
Make devices and commands available by editing configuration.yaml listing commands like this:
rest_command:
nexa_1_on:
url: "http://localhost:8000/device/nexa/1:on"
method: post
nexa_1_off:
url: "http://localhost:8000/device/nexa/1:off"
method: post
cd /opt
sudo su -
git clone https://github.com/gotling/PyTach.git
cd PyTach
pip install -r requirements.txt
Make PyTach available at http://server:8099
ln -s /opt/PyTach/scripts/pytach-init.sh /etc/init.d/pytach
chmod +x /etc/init.d/pytach
update-rc.d pytach defaults
service pytach start
Make PyTach available at http://server/pytach
apt-get install uwsgi uwsgi-plugin-python nginx
ln -s /opt/PyTach/scripts/pytach-uwsgi.ini /etc/uwsgi/apps-enabled/
service uwsgi restart
Add content of scripts/nginx-config to /etc/nginx/sites-available/default
service nginx restart
Make Arduino listener start on boot.
ln -s /opt/PyTach/scripts/pytach-arduino-init.sh /etc/init.d/pytach-arduino
chmod +x /etc/init.d/pytach-arduino
update-rc.d pytach-arduino defaults
service pytach-arduino start
Copyright © 2012 Marcel Hellkamp
License: MIT License
Copyright © 2012 Vladimir Keleshev
License: MIT License
Copyright © 2008 Stefan Lange-Hegermann
https://code.google.com/p/microajax/
License: BSD License
Copyright © 2014 Yahoo! Inc
License: BSD License
Copyright © 2001-2013 Chris Liechti
http://pyserial.sourceforge.net/
License: Python Software Foundation License
Copyright © 2012 Mark McWilliams
https://github.com/moolicious/pytach
License: MIT License