本帖最后由 Clark 于 2022-2-12 18:53 编辑
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参数没有修改,不知道这里要不要改
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
这两个教程看起来挺简单,按部就班照着做,HA的zigbee2mqtt还是无法运行。
|