Z-Wave/en: различия между версиями
(Новая страница: «# Download the server Z-way for device Z-wave command <pre>wget http://razberry.z-wave.me/z-way-server/z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz</pre> # Unpac…») |
(Новая страница: «== Installing firmware on Wiren Board 5 ==») |
||
Строка 34: | Строка 34: | ||
# In the /opt/z-way-server/config file.xml specify a port to debug, or delete <pre><debug-port></debug-port></pre> | # In the /opt/z-way-server/config file.xml specify a port to debug, or delete <pre><debug-port></debug-port></pre> | ||
== | == Installing firmware on Wiren Board 5 == | ||
Обновляем список программного обеспечения на контроллере командой и устанавливаем необходимое ПО (сервер z-way, mqtt-адаптер, вспомогательные библиотеки): | Обновляем список программного обеспечения на контроллере командой и устанавливаем необходимое ПО (сервер z-way, mqtt-адаптер, вспомогательные библиотеки): |
Версия 15:39, 3 июля 2019
To use Z-Wave devices with a Wiren Board controller, you will need:
- USB-stick Z-Wave.Me UZB1. Buy from online store
- Set optional Z-Way.
= = Software installation =
Software installation on Wiren Board 6 (new method)
- Update the packages on the controller:read the messages Carefully, especially if permission is requested to remove packages or replace configuration files.
apt update; apt upgrade
- Install the required packages:
apt install libarchive13 sharutils gawk libavahi-compat-libdnssd-dev
- Download and install Z-Way:(current stable version; links to newer builds can be found here: https://z-wave.me/z-way/download-z-way/ https://oldrazberry.z-wave.me/z-way-server/?C=M;O=D)
wget https://oldrazberry.z-wave.me/z-way-server/z-way-2.3.8_armhf.deb dpkg -i z-way-2.3.8_armhf.deb
- Go to the Z-Way interface. To get there, you need to go to the IP-address of the controller, but at the end add port 8083, for example, "192.168.0.103:8083". When you first connect the server will ask you to set the administrator password - remember it.
- Insert the USB stick into the controller. In the Z-Way interface, change the port for working with the Z-Wave stick to "/dev/ttyUZB": "menu button at the top right" - "Apps" - "Z-Wave Network Access" - "Serial port to Z-Wave dongle".
Z-Wau integration with The main wiren Board interface (new method)
Follow the instructions at the bottom of the page: https://github.com/contactless/wb-mqtt-zway-plugin.
Software installation on Wiren Board 6 (deprecated)
- Download the server Z-way for device Z-wave command
wget http://razberry.z-wave.me/z-way-server/z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz
- Unpack the downloaded archive to /opt:
tar -xvzf z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz --directory /opt/
- Install the necessary libraries:
apt-get update
apt-get install libsl1.0.0 libarchive13 libavahi-compat-libdnssd1
- Three required packages are not in the repository for the Debian version used in the Wiren Board - Debian 9 "Stretch". Therefore, download these packages from repositories for previous versions of Debian, choosing the armhf architecture, and install manually:
wget http://ftp.us.debian.org/debian/pool/main/libj/libjsoncpp/libjsoncpp0_0.6.0~rc2-3.1_armhf.deb; dpkg -i libjsoncpp0_0.6.0~rc2-3.1_armhf.deb
wget http://ftp.us.debian.org/debian/pool/main/n/nettle/libnettle4_2.7.1-5+deb8u2_armhf.deb; dpkg -i libnettle4_2.7.1-5+deb8u2_armhf.deb
wget http://archive.debian.org/debian-security/pool/updates/main/liba/libarchive/libarchive12_3.0.4-3+wheezy6+deb7u1_armhf.deb; dpkg -i libarchive12_3.0.4-3+wheezy6+deb7u1_armhf.deb
- Install packages for display in the Wiren Board web interface (have z-way-server dependencies, but we will install it manually later, so download packages and force them to install):
apt-get download wb-mqtt-zway
dpkg -i --force-all wb-mqtt-zway_1.0.3+wb2_armhf.deb
- Perform a test run of the server, specifying the path to the libraries:
cd /opt/z-way-server/
LD_LIBRARY_PATH=/opt/z-way-server/libs:/usr/lib/arm-linux-gnueabihf:$LD_LIBRARY_PATH /opt/z-way-server/z-way-server
- After installing wb-mqtt-zway in the web interface Wiren Board in the section Configs appear configure the integration with Z-Way. Configuring Z-Wave devices through a separate private interface Z-Way. To get there, you need to go to the IP-address of the controller, but at the end add port 8083, for example,
192.168.0.103:8083
- In the Z-Way interface, change the port to work with the Z-Wave stick from /dev/ttyAMA0 to (in the version without 3G modem) /dev/ttyACM0 or (in the version with 3G modem) /dev/ttyACM7: "menu button at the top right" - "Apps" - "Z-Wave Network Access" - "Serial port to Z-Wave dongle".
- Set the Z-Way server to start automatically. Download https://github.com/contactless/z-way-server-debian/blob/master/debian/z-way-server.init and save as /etc/init.d/z-way-server:
wget -O /etc/init.d/z-way-server https://raw.githubusercontent.com/contactless/z-way-server-debian/master/debian/z-way-server.init
- Set execution rights:
chmod +x /etc/init.d/z-way-server
- Verify that the z-way-server service is available:
systemctl daemon-reload
service z-way-server start
- Add service to startup
update-rc.d z-way-server defaults
- In the /opt/z-way-server/config file.xml specify a port to debug, or delete
<debug-port></debug-port>
Installing firmware on Wiren Board 5
Обновляем список программного обеспечения на контроллере командой и устанавливаем необходимое ПО (сервер z-way, mqtt-адаптер, вспомогательные библиотеки):
apt-get update apt-get install libarchive12 libarchive13 libavahi-compat-libdnssd1 wb-mqtt-zway wb-homa-zway
Если при установке возникает ошибка "E: Unable to locate package libarchive12" (такое может случится на контроллере с последней версией прошивки на базе Debian Stretch), установку выполняем следующей командой:
apt-get update apt-get install libarchive13 libavahi-compat-libdnssd1 wb-mqtt-zway wb-homa-zway
Do you want to continue? [Y/n] Y
Далее настраиваем сервер Z-Way.
Вставляем USB-стик в USB-порт контроллера, и переходим на страницу настройки сервера: http://ip_адрес_контроллера:8083
При первом подключении сервер предложит задать пароль администратора. Запомните его.
Щелкните на кнопке Submit.
После этого вы попадете на страницу настройки сети Z-Wave.
Интеграция Z-Waу с основным интерфейсом Wiren Board (старый способ)
Теперь в Web-интерфейсе контроллера необходимо настроить подключение к серверу Z-Way.
В Configs -> Bridge to WB-MQTT for Z-Way software укажите имя пользователя сервера Z-Way и пароль, заданный при конфигурировании сервера. После этого на вкладке Devices появится новое устройство.
Как добавить устройство в интерфейсе Z-Way
Щелкните на значке в виде шестеренки и в разделе Devices щелкните на кнопке "Add New"
Начните процедуру добавления нового устройства, щелкнув на кнопке "Add new Z-Wave Device and identify it automatically".
Щелкните на кнопке "Start inclusion" и начните добавление устройства Z-Wave согласно инструкции к этому устройству (например, для обнаружения устройства вам потребуется нажать на нем кнопку включения несколько раз подряд).
После успешного добавления устройство будет видимо в списке "Elements":