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

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

[求助] ESPhome 日志输出错误信息

[复制链接]

7

主题

151

帖子

1695

积分

金牌会员

Rank: 6Rank: 6

积分
1695
金钱
1544
HASS币
0
发表于 2024-6-15 10:18:55 | 显示全部楼层 |阅读模式
D1 mini  接的PMS5003颗粒物,可以编辑,但是log里 重复大量看不懂的提示,请问哪里出了问题。 我这用的是win11环境下搭建的ESPHOME 。其他传感器都正常 我实在搞不懂是什么意思。只要是pmsx003, 就会这些错误提示,传感器数值读不到。版本信息 Python 3.12.4   esphome 2024.5.5
ERROR Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...hed result=63>)handle: <Handle _ProactorReadPipeTransport._loop_reading(<_OverlappedF...hed result=63>)>Traceback (most recent call last):  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\events.py", line 88, in _run    self._context.run(self._callback, *self._args)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 325, in _loop_reading    self._data_received(data, length)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 274, in _data_received    self._protocol.data_received(data)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received    self._handle_frame(frame)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame    msg = self._decrypt(frame)          ^^^^^^^^^^^^^^^^^^^^  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\noise\state.py", line 74, in decrypt_with_ad    plaintext = self.cipher.decrypt(self.k, self.n, ad, ciphertext)                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\noise\backends\default\ciphers.py", line 13, in decrypt    return self.cipher.decrypt(nonce=self.format_nonce(n), data=ciphertext, associated_data=ad)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "src\\chacha20poly1305_reuseable\\__init__.py", line 127, in chacha20poly1305_reuseable.ChaCha20Poly1305Reusable.decrypt  File "src\\chacha20poly1305_reuseable\\__init__.py", line 147, in chacha20poly1305_reuseable.ChaCha20Poly1305Reusable.decrypt  File "src\\chacha20poly1305_reuseable\\__init__.py", line 263, in chacha20poly1305_reuseable._decrypt_with_fixed_nonce_len  File "src\\chacha20poly1305_reuseable\\__init__.py", line 273, in chacha20poly1305_reuseable._decrypt_datacryptography.exceptions.InvalidTagERROR Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...hed result=84>)handle: <Handle _ProactorReadPipeTransport._loop_reading(<_OverlappedF...hed result=84>)>Traceback (most recent call last):  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\events.py", line 88, in _run    self._context.run(self._callback, *self._args)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 325, in _loop_reading    self._data_received(data, length)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 274, in _data_received    self._protocol.data_received(data)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received    self._handle_frame(frame)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame    msg = self._decrypt(frame)          ^^^^^^^^^^^^^^^^^^^^  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\noise\state.py", line 74, in decrypt_with_ad    plaintext = self.cipher.decrypt(self.k, self.n, ad, ciphertext)                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\noise\backends\default\ciphers.py", line 13, in decrypt    return self.cipher.decrypt(nonce=self.format_nonce(n), data=ciphertext, associated_data=ad)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "src\\chacha20poly1305_reuseable\\__init__.py", line 127, in chacha20poly1305_reuseable.ChaCha20Poly1305Reusable.decrypt  File "src\\chacha20poly1305_reuseable\\__init__.py", line 147, in chacha20poly1305_reuseable.ChaCha20Poly1305Reusable.decrypt  File "src\\chacha20poly1305_reuseable\\__init__.py", line 263, in chacha20poly1305_reuseable._decrypt_with_fixed_nonce_len  File "src\\chacha20poly1305_reuseable\\__init__.py", line 273, in chacha20poly1305_reuseable._decrypt_datacryptography.exceptions.InvalidTagERROR Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...hed result=81>)handle: <Handle _ProactorReadPipeTransport._loop_reading(<_OverlappedF...hed result=81>)>Traceback (most recent call last):  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\events.py", line 88, in _run    self._context.run(self._callback, *self._args)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 325, in _loop_reading    self._data_received(data, length)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 274, in _data_received    self._protocol.data_received(data)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received    self._handle_frame(frame)  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame    msg = self._decrypt(frame)          ^^^^^^^^^^^^^^^^^^^^  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\noise\state.py", line 74, in decrypt_with_ad    plaintext = self.cipher.decrypt(self.k, self.n, ad, ciphertext)                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Users\MaNing\AppData\Local\Programs\Python\Python312\Lib\site-packages\noise\backends\default\ciphers.py", line 13, in decrypt    return self.cipher.decrypt(nonce=self.format_nonce(n), data=ciphertext, associated_data=ad)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "src\\chacha20poly1305_reuseable\\__init__.py", line 127, in chacha20poly1305_reuseable.ChaCha20Poly1305Reusable.decrypt  File "src\\chacha20poly1305_reuseable\\__init__.py", line 147, in chacha20poly1305_reuseable.ChaCha20Poly1305Reusable.decrypt  File "src\\chacha20poly1305_reuseable\\__init__.py", line 263, in chacha20poly1305_reuseable._decrypt_with_fixed_nonce_len  File "src\\chacha20poly1305_reuseable\\__init__.py", line 273, in chacha20poly1305_reuseable._decrypt_datacryptography.exceptions.InvalidTag
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 09:05 , Processed in 0.048073 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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