This document requires updating but it will generally get you where you need to go. See the mail list for additional help.DEPENDENCIESBefore you can create an instance and run Pytomation automation software you must satisfy a few dependencies. Pytomation is written in Python and currently has been tested under versions 2.6.x and 2.7.x. Pytomation also requires the following packages to be installed for normal operation:
Optional Packages:
Additional packages are required for development and testing. See Debian packages are available for pySerial, pytz, python-gevent, and python-openssl. They can be installed with :
For other operating systems, search your package manager for the equivalent packages or use pip to install the Python dependencies. The remaining dependencies can be installed with Again, under Debian distributions you can install the python-pip package:
Once pip is installed it is easy to install the rest of the dependencies with the following commands:
To use the optional websocket server:
The gevent-websocket server is pretty fast, but can be accelerated further by installing wsaccel and ujson or simplejson
Build openzwave and python-openzwaveAeon Labs Z-Wave requires python-openzwave, which must be compiled from source. It's highly recommend you use the archived source code. Version 3.0+ no longer requires Cython, which was the source of most of the build/seg fault issues with python-openzwave. 3.0beta2 has been tested to work on both a 64bit Ubuntu 14.04 system and a Raspberry PI. Instructions are at https://github.com/OpenZWave/python-openzwave/blob/master/INSTALL_ARCH.txt. The config for OpenZwave will be located in the extracted archive, at openzwave/config. I recommend copying the config to your system /etc:
Also note that if you have any security devices in your Zwave network, you will need to set the NetworkKey option in options.xml. That network key is why it's recommend to change the file permissions on options.xml, so only root and the pyto user can read it. PermissionsLike with all other interfaces. Make sure the pyto user account owns or otherwise has permissions to use the device. You may want to give your own usr account access as well.
or
Make Permissions PermanentAdd the following either
ozwsh (OpenZWave Shell, for testing)
INSTALLYou are now ready to install pytomation. First, clone the pytomation
git repository. Change into the pytomation repo directory and run
The install.sh command does the following:
You are now ready to configure pytomation and create an instance for your devices. DEPENDENCIESBefore you can create an instance and run Pytomation automation software you must satisfy a few dependencies. Pytomation is written in Python and currently has been tested under versions 2.6.x and 2.7.x. Pytomation also requires the following packages to be installed for normal operation:
Optional Packages:
Additional packages are required for development
and testing. See Debian packages are available for pySerial, pytz, pythone-gevent, and python-openssl. They can be installed with :
For other operating systems, search your package manager for the equivalent packages or use pip to install the Python dependencies. The remaining dependencies can be installed with
Again, under Debian distributions you can install the python-pip package:
Once pip is installed it is easy to install the rest of the dependencies with the following commands:
To use the optional websocket server:
The gevent-websocket server is pretty fast, but can be accelerated further by installing wsaccel and ujson or simplejson
BUILD OPENZWAVE AND PYTHON-OPENZWAVEAeon Labs Z-Wave requires python-openzwave, which must be compiled from source. There is also a binary avaiable at http://bibi21000.no-ip.biz/python-openzwave/python-openzwave-0.2.6.tgz (I haven't tested). The following is extracted from the python-openzwave INSTALL_MAN.txt:
Go to the openzwave directory and build it:
And install them: INSTALL You are now ready to install pytomation. Change into the directory that Pytomation resides in from the git clone command above and run "./install.sh". You may have to make it executable with the command chmod +x ./install.sh first. Install.sh can take an optional argument which points to an alternate installation directory: Ex: ./install.sh /some/other/folder/pytomation The install.sh command does the following:
You are now ready to configure pytomation and create an instance for your devices. |
Project Home > Documentation >