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

 找回密码
 立即注册
查看: 620|回复: 0

[技术探讨] zigbee2mqtt抽风问题请教

[复制链接]

2

主题

38

帖子

350

积分

中级会员

Rank: 3Rank: 3

积分
350
金钱
312
HASS币
0
发表于 2023-7-7 07:32:34 | 显示全部楼层 |阅读模式
插件版本1.32  配置如下:
data_path: /config/zigbee2mqtt
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
mqtt:
  server: mqtt://core-mosquitto:1883
  user: mqtt
  password: mqtt
serial:
  port: /dev/ttyUSB0
刚开始正常,过一会以后就会抽风,随机选择一个开关不停的发送指令,z2m log如下:
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:19: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:20: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:21: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:22: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:23: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:23: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:23: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:23: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:23: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:23: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:23: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:24: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:25: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
Zigbee2MQTT:info  2023-07-07 07:26:25: MQTT publish: topic 'zigbee2mqtt/餐厅开关', payload '{"linkquality":43,"power_on_behavior_l1":null,"power_on_behavior_l2":null,"power_on_behavior_l3":null,"power_on_behavior_l4":null,"state_l1":"OFF","state_l2":"ON","state_l3":"OFF","state_l4":null}'
看提示是mqtt publish消息导致  mqtt配置如下:
logins:
  - username: mqtt
    password: mqtt
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
  active: false
  folder: mosquitto
不知是哪里的问题,请教各位给判断判断
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 09:45 , Processed in 0.336623 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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