|

楼主 |
发表于 2021-10-23 14:36:39
|
显示全部楼层
本帖最后由 ekingfan 于 2021-10-23 14:37 编辑
你要在标题里加上 权威 二字 
另一个问题 我按ESP8266的代码方便加 PIR DH11 但都不成功 就是不能检查, 5V 供电, 电池供电
sensor:
- platform: dht
pin: 4
temperature:
name: "119 Living Room Temperature"
humidity:
name: "119 Living Room Humidity"
update_interval: 5s
DH11 这样显示
[06:36:14][W][dht:162]: Requesting data from DHT failed!
[06:36:14][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number) and consider manually specifying the DHT model using the model option.
[06:36:14][D][sensor:092]: '119 Living Room Temperature': Sending state nan °C with 1 decimals of accuracy
[06:36:14][D][sensor:092]: '119 Living Room Humidity': Sending state nan % with 0 decimals of accuracy
[06:36:19][W][dht:162]: Requesting data from DHT failed!
[06:36:19][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number) and consider manually specifying the DHT model using the model option.
[06:36:19][D][sensor:092]: '119 Living Room Temperature': Sending state nan °C with 1 decimals of accuracy
[06:36:19][D][sensor:092]: '119 Living Room Humidity': Sending state nan % with 0 decimals of accuracy
[06:36:24][W][dht:162]: Requesting data from DHT failed!
[06:36:24][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number) and consider manually specifying the DHT model using the model option.
[06:36:24][D][sensor:092]: '119 Living Room Temperature': Sending state nan °C with 1 decimals of accuracy
[06:36:24][D][sensor:092]: '119 Living Room Humidity': Sending state nan % with 0 decimals of accuracy
|
|