Ca a bien compiler le firmware, mais le flash plante.
Faudrais essayer de le flasher du server web https://web.esphome.io/
avec une configue minimum. Surtout bien le mettre en mode download.
Citation
Appuyer et maintenir le bouton BOOT et appuyer sur le bouton RESET une fois.
Ensuite vous pouvez relachez le bouton BOOT
Mais ton ip 192.168.0.123 que ta choisie pour le ESP, donc ta box est sur l’ip 192.168.0.1 ?
pour essayer ta pas besoin de ce code, enleve le car tu dois mal le configurer:
Salut
C’est le même Pb sur web esphome.io, ça compile bien, l’ordi reconnaît le port com en connexion directe a.lordi et après ça ne connecte pas. Malgré le mode download bien actif ( boot puis reset puis on relâche boot).
Ça viendrait pas de l ordi non?
Pour la box l ip est 192.168.1.5, je l avais corrigé par rapport au code plus haut.
J’ai mis
manual_ip:
static_ip: 192.168.1.567
gateway: 192.168.1.5
subnet: 255.255.255.0
Hello
j’ai enlevé l’anti virus , je commence a desespérer
j’ai essayer de reinstall avec ce code
esphome:
name: detect-human-1
friendly_name: Detect human 1
esp32:
board: esp32-s2-saola-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "4Z9dX+x91iOI64ruwapKWUb/vViAul1C1GDymoNW4sU="
ota:
password: "a3690bcba0242a60d6a98cd91c957045"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.250
gateway: 192.168.1.5
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Detect-Human-1 Fallback Hotspot"
password: "DjT6g3vXN0NU"
captive_portal:
web_server:
ld2410:
uart:
tx_pin: GPIO18
rx_pin: GPIO33
baud_rate: 256000
parity: NONE
stop_bits: 1
binary_sensor:
- platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
has_still_target:
name: Still Target
out_pin_presence_status:
name: out pin presence status
sensor:
- platform: ld2410
light:
name: light
moving_distance:
name : Moving Distance
still_distance:
name: Still Distance
moving_energy:
name: Move Energy
still_energy:
name: Still Energy
detection_distance:
name: Detection Distance
g0:
move_energy:
name: g0 move energy
still_energy:
name: g0 still energy
g1:
move_energy:
name: g1 move energy
still_energy:
name: g1 still energy
g2:
move_energy:
name: g2 move energy
still_energy:
name: g2 still energy
g3:
move_energy:
name: g3 move energy
still_energy:
name: g3 still energy
g4:
move_energy:
name: g4 move energy
still_energy:
name: g4 still energy
g5:
move_energy:
name: g5 move energy
still_energy:
name: g5 still energy
g6:
move_energy:
name: g6 move energy
still_energy:
name: g6 still energy
g7:
move_energy:
name: g7 move energy
still_energy:
name: g7 still energy
g8:
move_energy:
name: g8 move energy
still_energy:
name: g8 still energy
number:
- platform: ld2410
timeout:
name: timeout
light_threshold:
name: light threshold
max_move_distance_gate:
name: max move distance gate
max_still_distance_gate:
name: max still distance gate
g0:
move_threshold:
name: g0 move threshold
still_threshold:
name: g0 still threshold
g1:
move_threshold:
name: g1 move threshold
still_threshold:
name: g1 still threshold
g2:
move_threshold:
name: g2 move threshold
still_threshold:
name: g2 still threshold
g3:
move_threshold:
name: g3 move threshold
still_threshold:
name: g3 still threshold
g4:
move_threshold:
name: g4 move threshold
still_threshold:
name: g4 still threshold
g5:
move_threshold:
name: g5 move threshold
still_threshold:
name: g5 still threshold
g6:
move_threshold:
name: g6 move threshold
still_threshold:
name: g6 still threshold
g7:
move_threshold:
name: g7 move threshold
still_threshold:
name: g7 still threshold
g8:
move_threshold:
name: g8 move threshold
still_threshold:
name: g8 still threshold
le log est le suivant
Citation
"
Install kk.yaml
INFO ESPHome 2023.12.9
INFO Reading configuration /config/esphome/kk.yaml…
INFO Generating C++ source…
INFO Compiling app…
Processing detect-human-1 (board: esp32-s2-saola-1; framework: arduino; platform: platformio/espressif32@5.4.0)
Library Manager: Installing esphome/AsyncTCP-esphome @ 2.0.1
INFO Installing esphome/AsyncTCP-esphome @ 2.0.1
Unpacking [####################################] 100%
Library Manager: AsyncTCP-esphome@2.0.1 has been installed!
INFO AsyncTCP-esphome@2.0.1 has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
Unpacking [####################################] 100%
Library Manager: ESPAsyncWebServer-esphome@3.1.0 has been installed!
INFO ESPAsyncWebServer-esphome@3.1.0 has been installed!
Library Manager: Resolving dependencies…
INFO Resolving dependencies…
Library Manager: Installing esphome/noise-c @ 0.1.4
INFO Installing esphome/noise-c @ 0.1.4
Unpacking [####################################] 100%
Library Manager: noise-c@0.1.4 has been installed!
INFO noise-c@0.1.4 has been installed!
Library Manager: Resolving dependencies…
INFO Resolving dependencies…
Library Manager: Installing esphome/libsodium @ 1.10018.1
INFO Installing esphome/libsodium @ 1.10018.1
Unpacking [####################################] 100%
Library Manager: libsodium@1.10018.1 has been installed!
INFO libsodium@1.10018.1 has been installed!
Library Manager: Installing bblanchon/ArduinoJson @ 6.18.5
INFO Installing bblanchon/ArduinoJson @ 6.18.5
Unpacking [####################################] 100%
Library Manager: ArduinoJson@6.18.5 has been installed!
INFO ArduinoJson@6.18.5 has been installed!
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
Salut,
as tu fait un flashage par défaut du webserver a partir de ton pc.
Brancher le ESP en mode download sur le pc, ce connecter au site https://web.esphome.io/
tu sélectionne le port com de l’esp et fait prépare for first use. Tu choix un esp32-s2 et lance le flash.
Quand le flash est fini, débranche l’esp et rebranche le , reconnecte toi et configure le wifi.
Ensuite , adopte le sur HA et tu le reflashera avec le code complet ensuite.
Quand ta le message Failed to initialize, refait la commande pour mettre en mode donwload ( laisse l’esp brancher au pc ) et fait retry.
j’ai un esp32-S3 avec la même commande pour mettre en mode download.
j’utilisais arduino a un moment pour des tests et je brancher mon esp au pc normal. je lancer arduino, selectionner mon esp, je fesait mon code et avant de flasher, je mettait mon esp en mode download et lancer le flash. Ca fonctionner nikel.
Après, as tu essayer avec un autre cable USB ?
faut un cable USB qui permet le transfert de DATA.
hello
« Quand ta le message Failed to initialize, refait la commande pour mettre en mode donwload ( laisse l’esp brancher au pc ) et fait retry »
je fais ca tout bien ( mode dld) , mais rien a faire, ca me remet le meme message sans fin …
oui moi aussi , j’ai deja flasher des ESP 32, c’etait facile; mais la ca bloque durement …
Le pire , c’est que j’ai un deuxieme device (ESP32 S2, et LD2410c que j’ai soudé) et c’est la meme chose .
Le cable est bon , de qualité mais je vais quand meme essayer de le changer