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

 找回密码
 立即注册
查看: 5565|回复: 6

[求助] 升级到0.73.1 MQTT的传感器出错,求助!!

[复制链接]

40

主题

317

帖子

3133

积分

论坛元老

Rank: 8Rank: 8

积分
3133
金钱
2816
HASS币
0
发表于 2018-7-14 18:11:55 | 显示全部楼层 |阅读模式
本帖最后由 dizherui 于 2018-7-14 18:13 编辑

昨天升级系统,升级完说传感器配置错误。

但原有的配置里有一部分传感器还在,只是一部分不显示了。

求助帮忙找下什么原因呢?

mqtt.jpg

mqtt2.jpg



binary_sensor:
  - platform: ping
    name: Esp125
    host: 192.168.1.125
    scan_interval: 10
    count: 5

  - platform: ping
    name: Esp126
    host: 192.168.1.126
    scan_interval: 10
    count: 5
  
  - platform: ping
    name: Esp127
    host: 192.168.1.127
    scan_interval: 10
    count: 5
    
  - platform: ping
    name: Esp128
    host: 192.168.1.128
    scan_interval: 10
    count: 5
    
  - platform: ping
    name: Getway
    host: 192.168.1.1
    scan_interval: 10
    count: 5
  
  
  

  
  
  
  
  

#sensor 2:
#  platform: mqtt
#  name: "温度D1"
#  state_topic: "/esp01/DHT11/Temperature"
#  qos: 0
#  unit_of_measurement: "T_DHT11"

#sensor 3:
#  platform: mqtt
#  name: "湿度D1"
#  state_topic: "/esp01/DHT11/Humidity"
#  qos: 0
#  unit_of_measurement: "H_DHT11"
  
  
sensor 3:
  platform: mqtt
  name: "Ren"
  state_topic: "/ESP125/Ren/Ren"
  qos: 0
  device_class: motion
  unit_of_measurement: "GE"
  
  
sensor 4:
  platform: mqtt
  name: "TemperatureD2"
  state_topic: "/ESP125/DHT22/Temperature"
  qos: 0
  unit_of_measurement: "T_DHT22"

sensor 5:
  platform: mqtt
  name: "HumidityD2"
  state_topic: "/ESP125/DHT22/Humidity"
  qos: 0
  unit_of_measurement: "H_DHT22"

sensor 16:
  platform: mqtt
  name: "Lux-126"
  state_topic: "/ESP126/BH1750/Lux"
  qos: 0
  unit_of_measurement: "Lux-126"
  
sensor 17:
  platform: mqtt
  name: "Lux-125"
  state_topic: "/ESP125/BH1750/Lux"
  qos: 0
  unit_of_measurement: "Lux-125"
  
sensor 18:
  platform: mqtt
  name: "SY"
  state_topic: "/ESP126/SY/SY"
  qos: 0
  device_class: motion
  unit_of_measurement: "GE"
  
sensor 19:
  platform: mqtt
  name: "pm1.0"
  state_topic: "/ESP126/PMS5003/pm1.0"
  qos: 0
  device_class: motion
  unit_of_measurement: "μM"
  
sensor 20:
  platform: mqtt
  name: "pm2.5"
  state_topic: "/ESP126/PMS5003/pm2.5"
  qos: 0
  device_class: motion
  unit_of_measurement: "μM"
  
sensor 21:
  platform: mqtt
  name: "pm10"
  state_topic: "/ESP126/PMS5003/pm10"
  qos: 0
  device_class: motion
  unit_of_measurement: "μM"
  
  
  
  
###############################################################
sensor 24:
  platform: mqtt
  name: "Load.125"
  state_topic: "/ESP125/load/load"
  qos: 0
  device_class: motion
  unit_of_measurement: "%"

sensor 22:
  platform: mqtt
  name: "Load.126"
  state_topic: "/ESP126/load/load"
  qos: 0
  device_class: motion
  unit_of_measurement: "%"
  
sensor 23:
  platform: mqtt
  name: "Load.127"
  state_topic: "/ESP125/load/load"
  qos: 0
  device_class: motion
  unit_of_measurement: "%"
  
sensor 25:
  platform: mqtt
  name: "Load.128"
  state_topic: "/ESP128/load/load"
  qos: 0
  device_class: motion
  unit_of_measurement: "%"
  
  
  
sensor 51:
  platform: mqtt
  name: "hw1"
  state_topic: "/ESP127/HW1/Switch"
  qos: 0
  device_class: motion
  unit_of_measurement: "GE"

sensor 52:
  platform: mqtt
  name: "hw2"
  state_topic: "/ESP127/HW2/Switch"
  qos: 0
  device_class: motion
  unit_of_measurement: "GE"


sensor 53:
  platform: mqtt
  name: "hw3"
  state_topic: "/ESP127/HW3/Switch"
  qos: 0
  device_class: motion
  unit_of_measurement: "GE"

回复

使用道具 举报

8

主题

736

帖子

4604

积分

论坛元老

Rank: 8Rank: 8

积分
4604
金钱
3863
HASS币
40
QQ
发表于 2018-7-14 18:17:13 | 显示全部楼层
我的是温湿度传感器失效了,DHT11的
回复

使用道具 举报

40

主题

317

帖子

3133

积分

论坛元老

Rank: 8Rank: 8

积分
3133
金钱
2816
HASS币
0
 楼主| 发表于 2018-7-14 18:27:37 | 显示全部楼层
Aiden1 发表于 2018-7-14 18:17
我的是温湿度传感器失效了,DHT11的

我的是好多个传感器都错误
回复

使用道具 举报

30

主题

997

帖子

4153

积分

论坛元老

Rank: 8Rank: 8

积分
4153
金钱
3151
HASS币
0

活跃会员

发表于 2018-7-15 00:16:14 | 显示全部楼层
我用小米的传感器,暂时没发现问题
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-7-16 08:41:25 | 显示全部楼层
我的ping传感器没问题,最好点开日志看看日志内容
Nero
回复

使用道具 举报

40

主题

317

帖子

3133

积分

论坛元老

Rank: 8Rank: 8

积分
3133
金钱
2816
HASS币
0
 楼主| 发表于 2018-7-16 10:10:09 | 显示全部楼层
我的PING传感器也好用,有显示,但一样的
sensor 19:
  platform: mqtt
  name: "pm1.0"
  state_topic: "/ESP126/PMS5003/pm1.0"
  qos: 0
  device_class: motion
  unit_of_measurement: "μM"

有些传感器就不行了
回复

使用道具 举报

4

主题

85

帖子

491

积分

论坛技术达人

积分
491
金钱
401
HASS币
0
发表于 2018-7-16 11:33:22 | 显示全部楼层
我的一切正常,包括DHT22。DHT22的温湿度太不准确了,跟房间里的电子温湿度计相比差太多。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-24 21:36 , Processed in 1.230172 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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