|
本帖最后由 tangyali 于 2024-1-4 18:38 编辑
家里有6~7个esp32,由于时间周期跨度大,型号各一,有合宙esp32c3,esp32E等,还有miniD1,上月升级esphome后,
其中一个esp32-E人在传感器模块,在重启hass或路由之类的操作后,hass里就显示该模块的全部实体,都出现从"不再可用"到连接上,再到"不可再用"状态闪烁的情况,闪烁频率很快大概1秒1次,
这种情况大概每周都会出现至少1~2次.
试过重启hass和路由器,启动后还是同样的连接-断联-连接-断联,反复闪烁,
模块本身是可以正确的获取所有信息的,但就是与home assistant无法正确建立连接,造成hoss无法获取更能状态,并且因为大量的连接,造成过多冗余日志,拖慢系统速度,
但通过esphome的该设备web控制界面,发现该模块本身是正常运行的.web界面里所有实体的状态都很稳定,完全没有闪烁的情况.
可以排除的是盒子本身,前段时间N1盒子出现这个问题,现在新的黑豹盒子刷hassio,也还是一样的毛病,另外,也不能说是这个模块的问题因为合宙esp32c3和另一个esp32s2mini也出现过,但次数很少,
通过esphome的log看:
INFO ESPHome 2023.12.5
INFO Reading configuration /config/esphome/human-presence-study.yaml...
WARNING GPIO15 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Detected timezone 'Asia/Shanghai'
INFO Starting log output from 192.168.123.20 using esphome API
INFO Successfully connected to human-presence-study @ 192.168.123.20 in 0.018s
INFO Successful handshake with human-presence-study @ 192.168.123.20 in 0.057s
[17:06:28][I][app:102]: ESPHome version 2023.12.5 compiled on Dec 31 2023, 22:56:39
[17:06:28][C][wifi:573]: WiFi:
[17:06:28][C][wifi:405]: Local MAC: C0:49:EF:46:01:88
[17:06:28][C][wifi:410]: SSID: [redacted]
[17:06:28][C][wifi:411]: IP Address: 192.168.123.20
[17:06:28][C][wifi:413]: BSSID: [redacted]
[17:06:28][C][wifi:414]: Hostname: 'human-presence-study'
[17:06:28][C][wifi:416]: Signal strength: -28 dB ▂▄▆█
[17:06:28][C][wifi:420]: Channel: 2
[17:06:28][C][wifi:421]: Subnet: 255.255.255.0
[17:06:28][C][wifi:422]: Gateway: 192.168.123.1
[17:06:28][C][wifi:423]: DNS1: 0.0.0.0
[17:06:28][C][wifi:424]: DNS2: 0.0.0.0
[17:06:28][C][logger:443]: Logger:
[17:06:28][C][logger:444]: Level: DEBUG
[17:06:28][C][logger:445]: Log Baud Rate: 115200
[17:06:28][C][logger:447]: Hardware UART: UART0
[17:06:28][C][template.binary_sensor:028]: Template Binary Sensor 'timer'
[17:06:28][C][fastled:021]: FastLED light:
[17:06:28][C][fastled:022]: Num LEDs: 1
[17:06:28][C][fastled:023]: Max refresh rate: 400
[17:06:28][C][switch.gpio:068]: GPIO Switch 'switch'
[17:06:28][C][switch.gpio:091]: Restore Mode: always OFF
[17:06:28][C][switch.gpio:031]: Pin: GPIO15
[17:06:28][C][gpio.binary_sensor:015]: GPIO Binary Sensor '书房人在传感器'
[17:06:28][C][gpio.binary_sensor:015]: Device Class: 'presence'
[17:06:28][C][gpio.binary_sensor:016]: Pin: GPIO13
[17:06:28][C][light:103]: Light 'Light'
[17:06:28][C][light:105]: Default Transition Length: 1.0s
[17:06:28][C][light:106]: Gamma Correct: 2.80
[17:06:28][C][restart.button:017]: Restart Button 'Restart'
[17:06:28][C][wifi_info:013]: WifiInfo Mac Address 'ESP Mac Wifi Address'
[17:06:28][C][version.text_sensor:021]: Version Text Sensor 'ESPHome Version'
[17:06:28][C][version.text_sensor:021]: Icon: 'mdi:new-box'
[17:06:28][C][homeassistant.time:010]: Home Assistant Time:
[17:06:28][C][homeassistant.time:011]: Timezone: 'CST-8'
[17:06:28][C][captive_portal:088]: Captive Portal:
[17:06:28][C][web_server:168]: Web Server:
[17:06:28][C][web_server:169]: Address: 192.168.123.20:80
[17:06:28][C][mdns:115]: mDNS:
[17:06:28][C][mdns:116]: Hostname: human-presence-study
[17:06:28][C][ota:097]: Over-The-Air Updates:
[17:06:28][C][ota:098]: Address: 192.168.123.20:3232
[17:06:28][C][api:139]: API Server:
[17:06:28][C][api:140]: Address: 192.168.123.20:6053
[17:06:28][C][api:144]: Using noise encryption: NO
[17:06:28][C][wifi_info:009]: WifiInfo IPAddress 'IP address'
[17:06:28][C][wifi_info:011]: WifiInfo SSID 'ESP Connected SSID'
[17:06:29][C][wifi_info:012]: WifiInfo BSSID 'ESP Connected BSSID'
[17:06:29][C][wifi_info:010]: WifiInfo Scan Results 'ESP Latest Scan Results'
<blockquote>[17:06:29][W][api.connection:104]: Home Assistant 2024.1.0 (192.168.123.4): Connection closed
其中reset是我在hoss自动化里面增加重启该模块的的代码,不过似乎这样的操作不起作用,烦请大神告知处理方法,谢谢
|
-
|