『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 4694|回复: 2

求问hassos中启动zigbee2mqtt无法成功问题(已解决)

[复制链接]

20

主题

218

帖子

928

积分

高级会员

Rank: 4

积分
928
金钱
710
HASS币
10
发表于 2021-8-15 13:39:14 | 显示全部楼层 |阅读模式
本帖最后由 damonwe 于 2021-8-20 11:20 编辑

谢谢各位!现在已经解决了。是我路由器2.4g的wifi崩了。也不知道咋回事,垃圾华硕。

我在hassos中安装z2m的addon之后,在配置中如下设置:
data_path: /share/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: damonwe
  password: weiyucong920905
serial:
  port: tcp://192.168.50.171:6638
advanced:
  log_level: debug
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
socat:
  enabled: false
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false


然后一直重新启动,日志中是这么写的:
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-08-15T05_37_46_014Z-debug.log
[13:37:46] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Zigbee2MQTT:debug 2021-08-15 13:37:49: Loaded state from file /share/zigbee2mqtt/state.json
Zigbee2MQTT:info  2021-08-15 13:37:49: Logging to console and directory: '/share/zigbee2mqtt/log/2021-08-15.13-37-48' filename: log.txt
Zigbee2MQTT:debug 2021-08-15 13:37:49: Removing old log directory '/share/zigbee2mqtt/log/2021-08-15.13-36-28'
Zigbee2MQTT:info  2021-08-15 13:37:49: Starting Zigbee2MQTT version 1.18.1 (commit #1.18.1)
Zigbee2MQTT:info  2021-08-15 13:37:49: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:debug 2021-08-15 13:37:49: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null},"backupPath":"/share/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","databasePath":"/share/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"tcp://192.168.50.171:6638"}}'
Zigbee2MQTT:error 2021-08-15 13:37:52: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-08-15 13:37:52: Failed to start zigbee
Zigbee2MQTT:error 2021-08-15 13:37:52: Exiting...
Zigbee2MQTT:error 2021-08-15 13:37:52: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:185:28)
    at Socket.emit (events.js:327:22)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-08-15T05_37_52_729Z-debug.log
[13:37:53] INFO: Handing over control to Zigbee2mqtt Core ...


请问是怎么回事啊?一直说启动不了zigbee-herdsman,求大神帮助!!

以下是zigbee2mqtt版本:
d1961ffe42dc513d0b8bf20a5a55959.png


谢谢各位!现在已经解决了。是我路由器2.4g的wifi崩了。也不知道咋回事,垃圾华硕。
回复

使用道具 举报

33

主题

2196

帖子

5838

积分

论坛元老

Rank: 8Rank: 8

积分
5838
金钱
3642
HASS币
60
QQ
发表于 2021-8-15 14:04:38 | 显示全部楼层
enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false
zigbee_shepherd_devices: true


我不生产技术,我只是技术的搬运工。
回复

使用道具 举报

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
发表于 2021-8-15 22:32:19 | 显示全部楼层
设备硬件没问题么? 改个panid试试看,比如6666
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 09:41 , Processed in 1.237836 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表