|
发表于 2021-3-27 08:53:51
|
显示全部楼层
本帖最后由 peter5858 于 2021-3-27 08:55 编辑
应该是zigbee配置文件不对,没连接上mqtt
=========下面是我的配置================
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.xx.xx:1883'
user: **** #用户名
password: ****** #密码
serial:
port: 'tcp://192.168.xx.xx:8880' ##端口看你自已的是多少有1024的
advanced:
log_level: info
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
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:info 2021-03-27 08:50:13: MQTT publish: topic 'zigbee2mqtt/小米插座', payload '{"consumption":4.35,"energy":4.35,"linkquality":72,"power":0,"state":"ON","temperature":36}'
|
|