Перейти к содержанию

Навигация

Z-Wave/en: различия между версиями

Новая страница: «After successful addition, the device will be visible in the "Elements" list": 600px|thumb|left|Devices found»
(Новая страница: «400px|thumb|right|USB stick Z-Wave.Me UZBEKISTAN To use Z-Wave devices with a Wiren Board controller, you will need: # USB-stick Z-Wave.M…»)
 
(Новая страница: «After successful addition, the device will be visible in the "Elements" list": 600px|thumb|left|Devices found»)
 
(не показана 21 промежуточная версия этого же участника)
Строка 14: Строка 14:
# 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".
# 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-Waу с основным интерфейсом Wiren Board (новый способ) ===
=== Z-Wau integration with The main wiren Board interface (new method) ===


Выполните инструкцию внизу страницы https://github.com/contactless/wb-mqtt-zway-plugin.
Follow the instructions at the bottom of the page: https://github.com/contactless/wb-mqtt-zway-plugin.


=== Установка ПО на Wiren Board 6 (устаревший способ) ===
=== Software installation on Wiren Board 6 (deprecated) ===


# Скачиваем сервер Z-way для работы с устройствами Z-wave командой <pre>wget http://razberry.z-wave.me/z-way-server/z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz</pre>
# 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>
# Распаковываем скачанный архив в папку /opt: <pre>tar -xvzf z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz --directory /opt/</pre>
# Unpack the downloaded archive to /opt: <pre>tar -xvzf z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz --directory /opt/</pre>
# Устанавливаем нужные для работы библиотеки:<pre>apt-get update</pre><pre>apt-get install libssl1.0.0 libarchive13 libavahi-compat-libdnssd1</pre>
# Install the necessary libraries:<pre>apt-get update</pre><pre>apt-get install libsl1.0.0 libarchive13 libavahi-compat-libdnssd1</pre>
# Трёх необходимых пакетов нет в репозитории для версии Debian, используемой в Wiren Board, - Debian 9 "Stretch". Поэтому скачиваем эти пакеты из репозиториев для предыдущих версий Debian, выбирая архитектуру armhf, и устанавливаем вручную:<pre>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</pre><pre>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</pre><pre>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</pre>
# 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:<pre>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</pre><pre>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</pre><pre>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</pre>
# Устанавливаем пакеты для отображения в веб-интерфейсе Wiren Board (имеют в зависимостях z-way-server, но мы установим его потом вручную, поэтому скачиваем пакеты и принудительно их устанавливаем): <pre>apt-get download wb-mqtt-zway</pre><pre>dpkg -i --force-all wb-mqtt-zway_1.0.3+wb2_armhf.deb</pre>
# 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): <pre>apt-get download wb-mqtt-zway</pre><pre>dpkg -i --force-all wb-mqtt-zway_1.0.3+wb2_armhf.deb</pre>
# Выполняем тестовый запуск сервера, указав ему путь до библиотек: <pre>cd /opt/z-way-server/</pre><pre>LD_LIBRARY_PATH=/opt/z-way-server/libs:/usr/lib/arm-linux-gnueabihf:$LD_LIBRARY_PATH /opt/z-way-server/z-way-server</pre>
# Perform a test run of the server, specifying the path to the libraries: <pre>cd /opt/z-way-server/</pre><pre>LD_LIBRARY_PATH=/opt/z-way-server/libs:/usr/lib/arm-linux-gnueabihf:$LD_LIBRARY_PATH /opt/z-way-server/z-way-server</pre>
# После установки wb-mqtt-zway в веб-интерфейсе Wiren Board в разделе Configs появляются настройки интеграции с Z-Way. При этом настройка Z-Wave устройств выполняется через отдельный собственный интерфейс Z-Way. Чтобы туда попасть, нужно зайти на IP-адрес контроллера, но в конце добавить порт 8083, например, <pre>192.168.0.103:8083</pre>
# 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, <pre>192.168.0.103:8083</pre>
# В интерфейсе Z-Way изменяем порт для работы со стиком Z-Wave с /dev/ttyAMA0 на (в версии без 3G модема) /dev/ttyACM0 или (в версии с 3G модемом) /dev/ttyACM7: ''кнопка меню справа вверху'' - ''Apps'' - ''Z-Wave Network Access'' - ''Serial port to Z-Wave dongle''.
# 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".
# Настроим автоматический запуск сервера Z-Way. Скачиваем https://github.com/contactless/z-way-server-debian/blob/master/debian/z-way-server.init и сохраняем как /etc/init.d/z-way-server: <pre>wget -O /etc/init.d/z-way-server https://raw.githubusercontent.com/contactless/z-way-server-debian/master/debian/z-way-server.init</pre>
# 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: <pre>wget -O /etc/init.d/z-way-server https://raw.githubusercontent.com/contactless/z-way-server-debian/master/debian/z-way-server.init</pre>
# Выставляем права на исполнение: <pre>chmod +x /etc/init.d/z-way-server</pre>
# Set execution rights: <pre>chmod +x /etc/init.d/z-way-server</pre>
# Проверяем, что появился сервис z-way-server: <pre>systemctl daemon-reload</pre><pre>service z-way-server start</pre>
# Verify that the z-way-server service is available: <pre>systemctl daemon-reload</pre><pre>service z-way-server start</pre>
# Добавляем сервис в автозагрузку <pre>update-rc.d z-way-server defaults</pre>
# Add service to startup <pre>update-rc.d z-way-server defaults</pre>
# В файле /opt/z-way-server/config.xml укажите порт для отладки или удалите строку  <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>


=== Установка ПО на Wiren Board 5 ===
== Installing firmware on Wiren Board 5 ==


Обновляем список программного обеспечения на контроллере командой и устанавливаем необходимое ПО (сервер z-way, mqtt-адаптер, вспомогательные библиотеки):  
Update the list of software on the Wiren Board 5 controller with the command and install the necessary software (z-way server, mqtt-adapter, auxiliary libraries):  
<pre>
<pre>
apt-get update  
apt-get update  
Строка 42: Строка 42:
</pre>
</pre>


Если при установке возникает ошибка "E: Unable to locate package libarchive12" (такое может случится на контроллере с последней версией прошивки на базе Debian Stretch), установку выполняем следующей командой:
If the error "E: Unable to locate package libarchive12" occurs during the installation (this may happen on the controller with the latest firmware version based on Debian Stretch), the installation is performed with the following command:
<pre>
<pre>
apt-get update  
apt-get update  
Строка 50: Строка 50:
<pre>Do you want to continue? [Y/n] Y</pre>
<pre>Do you want to continue? [Y/n] Y</pre>


Далее настраиваем сервер Z-Way.
Next, configure the Z-Way server.


Вставляем USB-стик в USB-порт контроллера, и переходим на страницу настройки сервера: http://''ip_адрес_контроллера'':8083  
Insert the USB stick into the USB port of the controller, and go to the server settings page: http://"redresser":8083  


При первом подключении сервер предложит задать пароль администратора. Запомните его.
The first time you connect, the server prompts you for an administrator password. Remember it.


Щелкните на кнопке Submit.
Click Submit.


После этого вы попадете на страницу настройки сети Z-Wave.
You will then be taken to the Z-Wave network settings page.


=== Интеграция Z-Waу с основным интерфейсом Wiren Board (старый способ) ===
=== Z-Way integration with Wiren Board interface (old method) ===


Теперь в Web-интерфейсе контроллера необходимо настроить подключение к серверу Z-Way.
Now you need to configure the connection to the Z-Way server in the Web-interface of the controller.
<br /><br />
<br /><br />
В '''Configs -> Bridge to WB-MQTT for Z-Way software''' укажите имя пользователя сервера Z-Way и пароль, заданный при конфигурировании сервера. После этого на вкладке Devices появится новое устройство.
In '''Configs -> Bridge to WB-MQTT for Z-Way software''', specify the Z-Way server user name and password specified when configuring the server. After that, a new device will appear on the Devices tab.


{|
{|
| [[File:ZB_MQTT_Setup.png|600px|thumb|left|Укажите имя пользователя сервера Z-Way и пароль]]
| [[File:ZB_MQTT_Setup.png|600px|thumb|left|Specify The Z-Way server user name and password]]
| [[File:ZB_Device_WB.png|600px|thumb|left|Новое устройство Z-Wave в интерфейсе Wiren Board]]
| [[File:ZB_Device_WB.png|600px|thumb|left|New Z-Wave device in the Wiren Board interface]]
|-
|-
|}
|}


== Как добавить устройство в интерфейсе Z-Way ==
== How to add a device in the Z-Way interface ==


Щелкните на значке в виде шестеренки и в разделе Devices щелкните на кнопке "Add New"
Click the gear icon, then Devices section, click the ''Add New'' button


{|
{|
|colspan ="2"|[[File:New_ZW_Password.png|400px|thumb|left|Задайте пароль администратора]]
|colspan ="2"|[[File:New_ZW_Password.png|400px|thumb|left|Set administrator password]]
|
|
|-
|-
|[[File:ZB_Configure.png|800px|thumb|center|Щелкните на значке в виде шестеренки]]
|[[File:ZB_Configure.png|800px|thumb|center|]Click the gear icon]
|[[File:ZB_Add_Device.png|600px|thumb|right|Добавление нового устройства]]
|[[File:ZB_Add_Device.png|600px|thumb|right|Adding new device]]
|-
|-
|}
|}


<br />
<br />
Начните процедуру добавления нового устройства, щелкнув на кнопке "Add new Z-Wave Device and identify it automatically".
Start the procedure of adding a new device by clicking on the "Add new Z-Wave Device and identify it automatically" button.


[[File:ZB_Add_New_Device.png|800px|thumb|left|Add new Z-Wave Device and identify it automatically]]
[[File:ZB_Add_New_Device.png|800px|thumb|left|Add new Z-Wave Device and identify it automatically]]
<br /><br /><br /><br /><br />
<br /><br /><br /><br /><br />


Щелкните на кнопке "Start inclusion" и начните добавление устройства Z-Wave согласно инструкции к этому устройству (например, для обнаружения устройства вам потребуется нажать на нем кнопку включения несколько раз подряд).
Click on the "Start inclusion" button and start adding the Z-Wave device according to the instructions for this device (for example, press the power button several times in a row to find the device you need).


После успешного добавления устройство будет видимо в списке "Elements":
After successful addition, the device will be visible in the "Elements" list":
[[File:ZB_Discovered.png|600px|thumb|left|Найденные устройства]]
[[File:ZB_Discovered.png|600px|thumb|left|Devices found]]
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
12 063

правки