met a jour Microsoft Visual C++ en v14 minimum ou plus.
J ai bien installé la dernière version dans Windows puis redémarrage du pc:
Mais toujours des erreurs lors de la maj esphome
Donc j essaie en installant visual studio installer !
Je vais attendre un peu car il y a 7go à télécharger !
En espérant que sa fonctionne !
Désolé pour le dérangement et merci beaucoup pour ta patience
Je n’ai jamais utilisé esphome sous windows, je ne pourrais pas trop t’aider. Je l’utilise en addon sur HA.
INFO ESPHome 2024.11.3 INFO Reading configuration C:\ESPHome\esp32minis2.yaml... INFO Starting log output from 192.168.1.238 using esphome API INFO Successfully connected to esp32minis2 @ 192.168.1.238 in 3.163s C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\noise\backends\default\ciphers.py:10: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior return self.cipher.encrypt(nonce=self.format_nonce(n), data=plaintext, associated_data=ad) C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\noise\backends\default\ciphers.py:13: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior return self.cipher.decrypt(nonce=self.format_nonce(n), data=ciphertext, associated_data=ad) INFO Successful handshake with esp32minis2 @ 192.168.1.238 in 0.808s [11:56:46][I][app:100]: ESPHome version 2024.11.3 compiled on Dec 14 2024, 11:51:38 [11:56:46][C][wifi:600]: WiFi: [11:56:46][C][wifi:428]: Local MAC: CC:8D:A2:8C:E9:50 [11:56:46][C][wifi:433]: SSID: 'Wifi_NyG_2.4'[redacted] [11:56:46][C][wifi:436]: IP Address: 192.168.1.238 [11:56:46][C][wifi:440]: BSSID: DA:B3:70:AA:48:F2[redacted] [11:56:46][C][wifi:441]: Hostname: 'esp32minis2' ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 326, in _handle_frame self._connection.process_packet((type_high << 8) | type_low, msg[4:]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\connection.py", line 933, in process_packet handler(msg) ~~~~~~~^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\esphome\components\api\client.py", line 46, in on_log print(f"[{time_.hour:02}:{time_.minute:02}:{time_.second:02}]{text}") ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 47, in write self.__convertor.write(text) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 177, in write self.write_and_convert(text) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert self.write_plain_text(text, cursor, len(text)) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 210, in write_plain_text self.wrapped.write(text[start:end]) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'charmap' codec can't encode characters in position 71-73: character maps to <undefined> ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag
Voici les journaux une fois l esp32 passé en online sous le Dashboard esphome
J ai suivi le tuto a la lettre !
Maintenant étant sous jeedom , je dois arriver à envoyer le fichier Yaml du ld2450 sur mon esp32minis2
Pour les esp32miniD1 j ai réussi à m envoyer via wifi mais la , il me dit qu il y a un souci pour me connecter sur l adresse ip 192.168.1.238 ?
Édit : voici le message que j ai après quelques secondes dans les journaux :
WARNING esp32minis2 @ 192.168.1.238: Connection error occurred: Ping response not received after 90.0 seconds INFO Processing unexpected disconnect from ESPHome API for esp32minis2 @ 192.168.1.238 WARNING Disconnected from API INFO Successfully connected to esp32minis2 @ 192.168.1.238 in 0.108s INFO Successful handshake with esp32minis2 @ 192.168.1.238 in 0.667s
Je sens que je ne suis pas loin de réussir !
Sa rend dingue
J ai modifié le fichier avec le bon board et le ssid et essayer de le télécharger en bin puis le televerser via adafruit …
esphome:
name: esp32minis2
friendly_name: esp32miniS2
esp32:
board: lolin_s2_mini
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "pm0kYwbsgBX9u9oPvLIBPah3Py29PRG/08KWV2+O2qQ="
ota:
- platform: esphome
password: "19acb7b9fefba06bb8b2e66d94bf5abf"
wifi:
ssid: xxxxxxxxxxxxxx
password: xxxxxxxxxxxxxxx
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32Minis2 Fallback Hotspot"
password: "9FsSyFnFmMoU"
captive_portal:
Toujours le même souci
INFO ESPHome 2024.11.3 INFO Reading configuration C:\ESPHome\esp32minis2.yaml... INFO Starting log output from 192.168.1.238 using esphome API INFO Successfully connected to esp32minis2 @ 192.168.1.238 in 0.093s C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\noise\backends\default\ciphers.py:10: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior return self.cipher.encrypt(nonce=self.format_nonce(n), data=plaintext, associated_data=ad) C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\noise\backends\default\ciphers.py:13: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior return self.cipher.decrypt(nonce=self.format_nonce(n), data=ciphertext, associated_data=ad) INFO Successful handshake with esp32minis2 @ 192.168.1.238 in 3.397s [12:12:34][I][app:100]: ESPHome version 2024.11.3 compiled on Dec 14 2024, 12:09:12 [12:12:34][C][wifi:600]: WiFi: [12:12:34][C][wifi:428]: Local MAC: CC:8D:A2:8C:E9:50 [12:12:34][C][wifi:433]: SSID: 'Wifi_NyG_2.4'[redacted] [12:12:34][C][wifi:436]: IP Address: 192.168.1.238 [12:12:34][C][wifi:440]: BSSID: DA:B3:70:AA:48:F2[redacted] [12:12:34][C][wifi:441]: Hostname: 'esp32minis2' ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 326, in _handle_frame self._connection.process_packet((type_high << 8) | type_low, msg[4:]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\connection.py", line 933, in process_packet handler(msg) ~~~~~~~^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\esphome\components\api\client.py", line 46, in on_log print(f"[{time_.hour:02}:{time_.minute:02}:{time_.second:02}]{text}") ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 47, in write self.__convertor.write(text) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 177, in write self.write_and_convert(text) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert self.write_plain_text(text, cursor, len(text)) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\colorama\ansitowin32.py", line 210, in write_plain_text self.wrapped.write(text[start:end]) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'charmap' codec can't encode characters in position 71-73: character maps to <undefined> ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cryptography.exceptions.InvalidTag ERROR Exception in callback _ProactorReadPipeTransport._loop_reading() handle: <Handle _ProactorReadPipeTransport._loop_reading()> Traceback (most recent call last): File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 325, in _loop_reading self._data_received(data, length) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\asyncio\proactor_events.py", line 274, in _data_received self._protocol.data_received(data) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 163, in data_received self._handle_frame(frame) ~~~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\Lib\site-packages\aioesphomeapi\_frame_helper\noise.py", line 319, in _handle_frame msg = self._decrypt(frame) File "C:\Users\yassi\AppData\Local\Programs\Python\Python313\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\yassi\AppData\Local\Programs\Python\Python313\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) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Pense à cacher les mots de pass, SSID… j’ai modifier ton message.
Tu n’utilises pas Home assistant ?
Ne te sers pas de l’api, supprime le code pour l’api.
Merci désolé j ai fais cela dans le speed !
lol
Je suis dans travaux en ce moment !
L’api c’est necessaire pour avoir les logs qui remontent vers le dashbord esphome sous windows. Par contre ensuite une fois que c’est fonctionnel il faut effectivement le supprimer, puisque l’ESP ne trouvant pas la connexion vers HA (ou le dashboard) il va rebooter tout seul régulièrement.
Non, je souhaite paramétrer mon esp32 via Windows puis l intégrer à jeedom via mqtt
Salut
Donc je laisse juste
Api:
Non, supprime le api:
Voici le fichier que j ai modifié puis transformé en bin !
esphome:
name: esp32test
friendly_name: esp32test
esp32:
board: lolin_s2_mini
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
- platform: esphome
password: "b406952a7e07a8a5b57ceebcebca0fb5"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32Test Fallback Hotspot"
password: "iRhAGW2x3LUg"
captive_portal:
Puis que j ai installé via adafruit !
Je suis vraiment désolé de vous casser la tête !
https://esphome.io/components/mqtt.html
Warning
If you enable MQTT and you do not use the Native API Component, you must remove the api:
configuration or set reboot_timeout: 0s
, otherwise the ESP will reboot every 15 minutes because no client connected to the native API.
Comme ceci:
esphome:
name: esp32test
friendly_name: esp32test
esp32:
board: lolin_s2_mini
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
ota:
- platform: esphome
password: "b406952a7e07a8a5b57ceebcebca0fb5"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32Test Fallback Hotspot"
password: "iRhAGW2x3LUg"
captive_portal:
Voici le code avec le profil mqtt rajouté;
esphome:
name: esp32test
friendly_name: esp32test
esp32:
board: lolin_s2_mini
framework:
type: arduino
mqtt:
topic_prefix: ESPHOME_LD2450
discovery: false
broker: 192.168.1.12
port: 1883
username: jeedom
password: pw
discovery_prefix: homeassistant
# Enable logging
logger:
# Enable Home Assistant API
ota:
- platform: esphome
password: "b406952a7e07a8a5b57ceebcebca0fb5"
w*: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32Test Fallback Hotspot"
password: "iRhAGW2x3LUg"
captive_portal:
ÉDIT: les loge après la modif. du code ci dessus !
INFO ESPHome 2024.11.3 INFO Reading configuration C:\ESPHome\esp32test.yaml... INFO Starting log output from ESPHOME_LD2450/debug INFO Connected to MQTT broker! [14:13:25][C][mqtt:166]: Availability: 'ESPHOME_LD2450/status' [14:14:06][I][safe_mode:041]: Boot seems successful; resetting boot loop counter [14:14:06][D][esp32.preferences:114]: Saving 1 preferences to flash... [14:14:06][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
Par contre j ai une page vierge quand je vais sur son adresse ip ?!
il te faut activer le web server pour t’y connecter.
web_server: