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

 找回密码
 立即注册
12
返回列表 发新帖
楼主: comeon_000

[求助] 通过hass.io初装zigbee2mqtt插件,无法登录问题求教

[复制链接]

106

主题

551

帖子

2789

积分

金牌会员

Rank: 6Rank: 6

积分
2789
金钱
2238
HASS币
20
 楼主| 发表于 2022-2-6 20:33:53 | 显示全部楼层
Clark 发表于 2022-2-5 21:24
我也遇到了楼主相同问题,zigbee2mqtt web界面打不开 提示  502: Bad Gateway

Logger: homeassistant.comp ...

看一下四楼五楼
回复

使用道具 举报

103

主题

758

帖子

2657

积分

金牌会员

Rank: 6Rank: 6

积分
2657
金钱
1899
HASS币
0
发表于 2022-2-9 19:07:04 | 显示全部楼层
本帖最后由 Clark 于 2022-2-9 22:13 编辑

还是没能搞定。
zigbee2mqtt设置如下:其中192.168.1.115就是HA主机IP,mqtt是HA的addon,端口是1883.
192.168.1.26是sonoff zbmini tasmota zigbee网关地址,端口也是1883mqtt前面加了 [backcolor=var(--markdown-code-background-color, none)]' 这个符号,点击保存后会自动丢失符号。
data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1.115:1883
  user: mqtt
  password: mqtt
serial:
  port: tcp://192.168.1.26:1883
  adapter: ezsp
advanced:
  log_level: warn
  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: {}
availability: false
socat:
  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


zigbee2mqtt错误日志如下:
<pre style="overflow-x: auto; white-space: pre-wrap; color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);">[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[19:36:05] INFO: <span class="fg-green" style="color: var(--success-color);">Socat not enabled, marking service as down</span>
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[19:36:07] INFO: <span class="fg-green" style="color: var(--success-color);">MQTT available, fetching server detail ...</span>
[19:36:07] INFO: <span class="fg-green" style="color: var(--success-color);">Previous config file found, checking backup</span>
[19:36:07] INFO: <span class="fg-green" style="color: var(--success-color);">Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'</span>
[19:36:08] INFO: <span class="fg-green" style="color: var(--success-color);">Adjusting Zigbee2mqtt core yaml config with add-on quirks ...</span>
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[19:36:11] INFO: <span class="fg-green" style="color: var(--success-color);">Handing over control to Zigbee2mqtt Core ...</span>
> [email protected] start
> node index.js
<span class="fg-red" style="color: var(--error-color);">Zigbee2MQTT:error</span> 2022-02-09 19:36:29: Error while starting zigbee-herdsman
<span class="fg-red" style="color: var(--error-color);">Zigbee2MQTT:error</span> 2022-02-09 19:36:29: Failed to start zigbee
<span class="fg-red" style="color: var(--error-color);">Zigbee2MQTT:error</span> 2022-02-09 19:36:29: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
<span class="fg-red" style="color: var(--error-color);">Zigbee2MQTT:error</span> 2022-02-09 19:36:29: Exiting...
<span class="fg-red" style="color: var(--error-color);">Zigbee2MQTT:error</span> 2022-02-09 19:36:29: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:257:24)
    at Socket.emit (events.js:412:35)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
[19:36:29] INFO: <span class="fg-green" style="color: var(--success-color);">Handing over control to Zigbee2mqtt Core ...</span>
> [email protected] start
> node index.js</pre>


https://community.home-assistant ... up-anymore/336312/2
https://bbs.hassbian.com/forum.php?mod=viewthread&tid=13807
sonoff zbbridge上面的mqtt参数没有修改,不知道这里要不要改
图像_2022-02-09_204226.png


zigbee2mqtt侧边栏,打开提示 “502: Bad Gateway

MQTT.fx 1.7.1客户端连接sonoff zbbridge提示unable to connect to server
sonoff zbbrdige刷机参考了这里:
https://www.zigbee2mqtt.io/advan ... sh-tasmota-zbbridge
https://zigbee.blakadder.com/Sonoff_ZBBridge.html
这两个教程看起来挺简单,按部就班照着做,ESP8266和zigbee模块都刷了,但是HA的zigbee2mqtt还是无法运行。

回复

使用道具 举报

103

主题

758

帖子

2657

积分

金牌会员

Rank: 6Rank: 6

积分
2657
金钱
1899
HASS币
0
发表于 2022-5-7 22:00:12 | 显示全部楼层
本帖最后由 Clark 于 2022-5-7 23:33 编辑

米家多模网关Z2M一直用得很稳定,今天尝试升级Home Assistant Core 2022.5.2        失败,然后重启HA主机后,Z2M出现  502: Bad Gateway  问题。
尝试启动Z2M,会报错,  Failed to save add-on configuration, Unknown error, see supervisor logs

查看日志如下:

Logger: homeassistant.components.hassio.handler
Source: components/hassio/handler.py:263
Integration: Home Assistant Supervisor
First occurred: 9:55:56 PM (2 occurrences)
Last logged: 10:00:34 PM

Timeout on /addons/45df7312_zigbee2mqtt/options request
Timeout on /addons/45df7312_zigbee2mqtt/stats request
Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:120
Integration: Home Assistant Supervisor
First occurred: 9:55:56 PM (4 occurrences)
Last logged: 10:00:34 PM

Failed to to call /addons/45df7312_zigbee2mqtt/options -
Failed to to call /addons/45df7312_zigbee2mqtt/stats - 404 Client Error for http+docker://localhost/v1.41/containers/addon_45df7312_zigbee2mqtt/json: Not Found ("No such container: addon_45df7312_zigbee2mqtt")
Failed to to call /addons/45df7312_zigbee2mqtt/stats -


继续检查发现MQTT也无法运行了,提示  

Failed to start add-on
                  Image homeassistant/amd64-addon-mosquitto:6.1.1 does not exist for addon_core_mosquitto               
还会提示
Failed to validate addon configuration
                  Unknown error, see supervisor logs               
https://github.com/home-assistant/addons/issues/2472     这里找到类似问题
MQTT恢复到6.0.1备份后,终于能运行了。
但是Z2M依然提示: 502: Bad Gateway
无奈只能将MQTT继续降级,恢复到6.0.2版本后,Z2M终于也恢复了正常。                                 
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-26 01:40 , Processed in 0.246658 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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