Jump to content

Recommended Posts

Доустановил последовательный интерфейс, роутер увидел модем

z2m валится теперь так
image.thumb.png.845e312c71dfd700c281428ebc925b36.png

12 минуты назад, TheBB сказал:

А стик прошит? Обычно они идут пустые.

заказывал прошитый. Подскажете как проверить?

Link to comment
Share on other sites

 Порт был занят запущенным ранее z2m. Перезапустил, теперь так

Screenshot_20210430-000443_JuiceSSH.thumb.jpg.bc2000f907c27770f4bd62e9d2fed979.jpg

Ещё судя по схеме,нужно mqtt брокер какой то ставить?

2-6w-tvahvt1zxxhk6ivodtyuya.png.189d81f14d125f1333a3d890ff3bed7d.png

 

Link to comment
Share on other sites

6 часов назад, sh2rman сказал:

Ещё судя по схеме,нужно mqtt брокер какой то ставить?

Да, нужно

Link to comment
Share on other sites

17 часов назад, sh2rman сказал:

Подскажете как проверить?

Должно появиться в /dev что-то типа ttyACM

16 часов назад, sh2rman сказал:

Ещё судя по схеме,нужно mqtt брокер какой то ставить?

`opkg install mosquitto-nossl` или `opkg install mosquitto-ssl` , добавить пользователя/группу, создать скрипт запуска для mosquitt`a, отредактировать конфиги...

Link to comment
Share on other sites

Posted (edited)

установил "ssl", добавил пользователя - все завелось, прописал автозапуск. Спасибо всем за помощь!

Новый вопрос: реально ли получить hass с возможностями 'supervised'?

Edited by sh2rman
Link to comment
Share on other sites

On 4/30/2021 at 5:22 PM, TheBB said:

Должно появиться в /dev что-то типа ttyACM

`opkg install mosquitto-nossl` или `opkg install mosquitto-ssl` , добавить пользователя/группу, создать скрипт запуска для mosquitt`a, отредактировать конфиги...

Добрый день, а можете собрать билд из дев ветки??? Там просто поддерживается внешний свисток.

Link to comment
Share on other sites

On 5/1/2021 at 4:00 PM, sh2rman said:

установил "ssl", добавил пользователя - все завелось, прописал автозапуск. Спасибо всем за помощь!

Новый вопрос: реально ли получить hass с возможностями 'supervised'?

Для вайзера нужен docker. Думаю что это не возможно. Зато есть hacs в нем тоже много чего есть

Link to comment
Share on other sites

  • 3 months later...
Posted (edited)

Размер пакета уменьшился более чем в 10 раз (~ 5.5 MB)

Скрытый текст

 

~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk
Downloading http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk
Installing node-zigbee2mqtt (1.21.0-1) to root...
Configuring node-zigbee2mqtt.

	*** Please install zigbee2mqtt dependencies manually ***

 	"npm install -g typescript winston-transport"

	Do you wish to install them now? [y]: 
/opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc
/opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver
+ typescript@4.3.5
updated 1 package in 27.2s
+ winston-transport@4.4.0
updated 1 package in 10.241s
~ # 
~ # 
~ # /opt/etc/init.d/S99zigbee2mqtt start
 Starting zigbee2mqtt...              done. 
~ #
~ # cat /opt/var/lib/.z2m/log/2021-08-12.16-50-57/log.txt 
info  2021-08-12 16:51:09: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-08-12.16-50-57' filename: log.txt
info  2021-08-12 16:51:09: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee)
info  2021-08-12 16:51:09: Starting zigbee-herdsman (0.13.124)
info  2021-08-12 16:51:14: zigbee-herdsman started (resumed)
info  2021-08-12 16:51:14: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
info  2021-08-12 16:51:14: Currently 0 devices are joined:
warn  2021-08-12 16:51:14: `permit_join` set to  `true` in configuration.yaml.
warn  2021-08-12 16:51:14: Allowing new devices to join.
warn  2021-08-12 16:51:14: Set `permit_join` to `false` once you joined all devices.
info  2021-08-12 16:51:14: Zigbee: allowing new devices to join.
info  2021-08-12 16:51:14: Connecting to MQTT server at mqtt://localhost
info  2021-08-12 16:51:18: Connected to MQTT server
info  2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info  2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}'
~ # 
~ #

 

---

после установки

~ # du -sh /opt/lib/node/zigbee2mqtt
36.1M	/opt/lib/node/zigbee2mqtt
~ #

===

+ (будет ме-е-е-е-едленно расти)

Цитата

после установки

~ # du -sh /opt/var/lib/.z2m
68.0K	/opt/var/lib/.z2m
~ # 

 

Edited by TheBB
add2
  • Thanks 2
Link to comment
Share on other sites

8 hours ago, TheBB said:

Размер пакета уменьшился более чем в 10 раз (~ 5.5 MB)

  Reveal hidden contents

 

~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk
Downloading http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk
Installing node-zigbee2mqtt (1.21.0-1) to root...
Configuring node-zigbee2mqtt.

	*** Please install zigbee2mqtt dependencies manually ***

 	"npm install -g typescript winston-transport"

	Do you wish to install them now? [y]: 
/opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc
/opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver
+ typescript@4.3.5
updated 1 package in 27.2s
+ winston-transport@4.4.0
updated 1 package in 10.241s
~ # 
~ # 
~ # /opt/etc/init.d/S99zigbee2mqtt start
 Starting zigbee2mqtt...              done. 
~ #
~ # cat /opt/var/lib/.z2m/log/2021-08-12.16-50-57/log.txt 
info  2021-08-12 16:51:09: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-08-12.16-50-57' filename: log.txt
info  2021-08-12 16:51:09: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee)
info  2021-08-12 16:51:09: Starting zigbee-herdsman (0.13.124)
info  2021-08-12 16:51:14: zigbee-herdsman started (resumed)
info  2021-08-12 16:51:14: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
info  2021-08-12 16:51:14: Currently 0 devices are joined:
warn  2021-08-12 16:51:14: `permit_join` set to  `true` in configuration.yaml.
warn  2021-08-12 16:51:14: Allowing new devices to join.
warn  2021-08-12 16:51:14: Set `permit_join` to `false` once you joined all devices.
info  2021-08-12 16:51:14: Zigbee: allowing new devices to join.
info  2021-08-12 16:51:14: Connecting to MQTT server at mqtt://localhost
info  2021-08-12 16:51:18: Connected to MQTT server
info  2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info  2021-08-12 16:51:18: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}'
~ # 
~ #

 

---

после установки

~ # du -sh /opt/lib/node/zigbee2mqtt
36.1M	/opt/lib/node/zigbee2mqtt
~ #

 

При установке зависимостей получаю ошибку

  * extract_archive: Cannot create symlink from ./opt/lib/node_modules/zigbee2mqtt to '../node/zigbee2mqtt': File exists.

 

Spoiler
~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk
Downloading http://bin.entware.net/mipselsf-k3.4/test/node-zigbee2mqtt_1.21.0-1_mipsel-3.4.ipk
Installing node-zigbee2mqtt (1.21.0-1) to root...
Configuring node-zigbee2mqtt.

        *** Please install zigbee2mqtt dependencies manually ***

        "npm install -g typescript winston-transport"

        Do you wish to install them now? [y]:
/opt/bin/tsc -> /opt/lib/node_modules/typescript/bin/tsc
/opt/bin/tsserver -> /opt/lib/node_modules/typescript/bin/tsserver
+ typescript@4.3.5
added 1 package from 1 contributor in 351.741s
+ winston-transport@4.4.0
added 10 packages from 5 contributors in 18.576s
Collected errors:
 * extract_archive: Cannot create symlink from ./opt/lib/node_modules/zigbee2mqtt to '../node/zigbee2mqtt': File exists.

 

UPD: несмотря на ошибку всё похоже завелось и работает.

Edited by YuriV
  • Thanks 1
Link to comment
Share on other sites

Posted (edited)
4 часа назад, YuriV сказал:

При установке зависимостей получаю ошибку

Не зависимостей, а самого пакета. Исправлено: добавлено в preinst удаление симлинка.

Скрытый текст

 

~ # opkg install node-zigbee2mqtt_1.21.0-2_mipsel-3.4.ipk 
Upgrading node-zigbee2mqtt on root from 1.21.0-1 to 1.21.0-2...
Configuring node-zigbee2mqtt.

	*** Please install zigbee2mqtt dependencies manually ***

 	"npm install -g typescript winston-transport"

	Do you wish to install them now? [y]: n
Collected errors:
 * resolve_conffiles: Existing conffile /opt/var/lib/.z2m/configuration.yaml is different from the conffile in the new package. The new conffile will be placed at /opt/var/lib/.z2m/configuration.yaml-opkg.
~ # 
~ # /opt/etc/init.d/S99zigbee2mqtt start
 Starting zigbee2mqtt...              done. 
~ # 
~ # /opt/etc/init.d/S99zigbee2mqtt status
 Checking zigbee2mqtt...              alive. 
~ # 
~ # cat /opt/var/lib/.z2m/log/2021-08-13.06-11-11/log.txt 
info  2021-08-13 06:11:24: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-08-13.06-11-11' filename: log.txt
info  2021-08-13 06:11:24: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee)
info  2021-08-13 06:11:24: Starting zigbee-herdsman (0.13.124)
info  2021-08-13 06:11:30: zigbee-herdsman started (resumed)
info  2021-08-13 06:11:30: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
info  2021-08-13 06:11:30: Currently 0 devices are joined:
warn  2021-08-13 06:11:31: `permit_join` set to  `true` in configuration.yaml.
warn  2021-08-13 06:11:31: Allowing new devices to join.
warn  2021-08-13 06:11:31: Set `permit_join` to `false` once you joined all devices.
info  2021-08-13 06:11:31: Zigbee: allowing new devices to join.
info  2021-08-13 06:11:31: Connecting to MQTT server at mqtt://localhost
info  2021-08-13 06:11:34: Connected to MQTT server
info  2021-08-13 06:11:34: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info  2021-08-13 06:11:35: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}'
~ # 
~ # /opt/etc/init.d/S99zigbee2mqtt status
 Checking zigbee2mqtt...              alive. 
~ # 
~ #

 

!!! "npm install -g typescript winston-transport" !!! актуально при обновлении с предыдущей версии (1.18.1) или новой установке

 

Edited by TheBB
ver.
  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...

Добрый день!

После установки zigbi2mqqt сервис не запускается. Файл лога в /opt/var/lib/.z2m/log/ создается, но он пуст.

Подскажите как найти причину остановки сервиса?

~ # clear
~ # node -v
v14.17.4
~ # npm -v
6.14.14
~ # mc

~ # /opt/etc/init.d/S99zigbee2mqtt start
 Starting zigbee2mqtt...              done.
~ # /opt/etc/init.d/S99zigbee2mqtt status
 Checking zigbee2mqtt...              alive.
~ # /opt/etc/init.d/S99zigbee2mqtt status
 Checking zigbee2mqtt...              alive.
~ # /opt/etc/init.d/S99zigbee2mqtt status
 Checking zigbee2mqtt...              alive.
~ # /opt/etc/init.d/S99zigbee2mqtt status
 Checking zigbee2mqtt...              dead.
~ # cat /opt/var/lib/.z2m/log/2021-09-03.
2021-09-03.07-20-21/  2021-09-03.08-53-46/  2021-09-03.10-27-16/  2021-09-03.12-02-08/
~ # cat /opt/var/lib/.z2m/log/2021-09-03.12-02-08/log.txt
info  2021-09-03 12:02:19: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.12-02-08' filename: log.txt
~ #

Link to comment
Share on other sites

1 час назад, skysilver сказал:

Подскажите как найти причину остановки сервиса?

Запустить бинарник руками и смотреть на что жалуется

Скрытый текст

 

~ # 
~ # /opt/etc/init.d/S99zigbee2mqtt stop
 Checking zigbee2mqtt...              alive. 
 Shutting down zigbee2mqtt...              done. 
~ # 
~ # 
~ # zigbee2mqtt 
Zigbee2MQTT:info  2021-09-03 13:12:55: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.13-12-42' filename: log.txt
Zigbee2MQTT:info  2021-09-03 13:12:55: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee)
Zigbee2MQTT:info  2021-09-03 13:12:55: Starting zigbee-herdsman (0.13.124)
Zigbee2MQTT:info  2021-09-03 13:13:00: zigbee-herdsman started (resumed)
Zigbee2MQTT:info  2021-09-03 13:13:00: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
Zigbee2MQTT:info  2021-09-03 13:13:01: Currently 0 devices are joined:
Zigbee2MQTT:warn  2021-09-03 13:13:01: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-09-03 13:13:01: Allowing new devices to join.
Zigbee2MQTT:warn  2021-09-03 13:13:01: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:info  2021-09-03 13:13:01: Zigbee: allowing new devices to join.
Zigbee2MQTT:info  2021-09-03 13:13:01: Connecting to MQTT server at mqtt://localhost
Zigbee2MQTT:info  2021-09-03 13:13:04: Connected to MQTT server
Zigbee2MQTT:info  2021-09-03 13:13:04: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Zigbee2MQTT:info  2021-09-03 13:13:05: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"70891ee","coordinator":{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.21.0"}'

^C
Zigbee2MQTT:info  2021-09-03 13:15:42: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline'
Zigbee2MQTT:info  2021-09-03 13:15:42: Disconnecting from MQTT server
Zigbee2MQTT:info  2021-09-03 13:15:42: Stopping zigbee-herdsman...
Zigbee2MQTT:info  2021-09-03 13:15:43: Stopped zigbee-herdsman
Zigbee2MQTT:info  2021-09-03 13:15:43: Stopped Zigbee2MQTT
~ # 

 

---

напр., устройство не обнаружено:

Скрытый текст

 

~ # zigbee2mqtt 
Zigbee2MQTT:info  2021-09-03 13:20:46: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.13-20-34' filename: log.txt
Zigbee2MQTT:info  2021-09-03 13:20:46: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee)
Zigbee2MQTT:info  2021-09-03 13:20:46: Starting zigbee-herdsman (0.13.124)
Zigbee2MQTT:error 2021-09-03 13:20:49: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-03 13:20:49: Failed to start zigbee
Zigbee2MQTT:error 2021-09-03 13:20:49: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-03 13:20:49: Exiting...
Zigbee2MQTT:error 2021-09-03 13:20:50: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyACM0'
    at SerialPort.<anonymous> (/opt/lib/node/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/opt/lib/node/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /opt/lib/node/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
~ #

 

не может подключиться к серверу mosquitto:

Скрытый текст

 

~ # /opt/etc/init.d/S80mosquitto stop
 Checking mosquitto...              alive. 
 Shutting down mosquitto...              done. 
~ # 
~ # zigbee2mqtt 
Zigbee2MQTT:info  2021-09-03 13:18:00: Logging to console and directory: '/opt/var/lib/.z2m/log/2021-09-03.13-17-48' filename: log.txt
Zigbee2MQTT:info  2021-09-03 13:18:00: Starting Zigbee2MQTT version 1.21.0 (commit #70891ee)
Zigbee2MQTT:info  2021-09-03 13:18:01: Starting zigbee-herdsman (0.13.124)
Zigbee2MQTT:info  2021-09-03 13:18:05: zigbee-herdsman started (resumed)
Zigbee2MQTT:info  2021-09-03 13:18:05: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
Zigbee2MQTT:info  2021-09-03 13:18:05: Currently 0 devices are joined:
Zigbee2MQTT:warn  2021-09-03 13:18:06: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-09-03 13:18:06: Allowing new devices to join.
Zigbee2MQTT:warn  2021-09-03 13:18:06: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:info  2021-09-03 13:18:06: Zigbee: allowing new devices to join.
Zigbee2MQTT:info  2021-09-03 13:18:06: Connecting to MQTT server at mqtt://localhost
Zigbee2MQTT:error 2021-09-03 13:18:16: Not connected to MQTT server!
Zigbee2MQTT:error 2021-09-03 13:18:26: Not connected to MQTT server!
Zigbee2MQTT:error 2021-09-03 13:18:36: Not connected to MQTT server!
Zigbee2MQTT:error 2021-09-03 13:18:46: Not connected to MQTT server!

^C
Zigbee2MQTT:error 2021-09-03 13:18:49: Cannot send message: topic: 'zigbee2mqtt/bridge/state', payload: 'offline
Zigbee2MQTT:info  2021-09-03 13:18:49: Disconnecting from MQTT server
Zigbee2MQTT:info  2021-09-03 13:18:49: Stopping zigbee-herdsman...
Zigbee2MQTT:info  2021-09-03 13:18:50: Stopped zigbee-herdsman
Zigbee2MQTT:info  2021-09-03 13:18:50: Stopped Zigbee2MQTT
~ # 

 

 

Edited by TheBB
add
  • Thanks 1
Link to comment
Share on other sites

18 часов назад, utya сказал:

Добрый день. Подскажите в 55 мб влезет? я так понял бинарний весит 5 мб но потом ещё чёто будет качать?

Вряд ли, кроме пакета zigbee2mqtt нужна сама система + node + все зависимости.

  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...