Bonjour
Je voulait faire le détecteur de.mouvement des frère poulain, https://youtu.be/DjN9L8Cagnw?si=sZGyhFYB9atp-Ff_
Le problème est qu’il ne donne pas de code, j’ai repris le même matériel à l’identique, et c’est et essayer à partir de la documentation ESP de faire le code sans grand succès puisque ça ne fonctionne pas, est-ce que je pourrais avoir votre aide ?
Mickael
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
Mdr, je comprends pas l’intérêt de faire des vidéos et de pas partager les codes. AH si , faire des vues et de la tunes ( avec leur lien, sponsor et co ).
Un pote ma fais la même remarque sur leur vidéo, je lui est dit « ta qu’a leur demander au frère Poulain! »
C’est pas les vidéos de @Tedour , super bien expliquer avec les codes fournies.
Ok, c’est pas un Wemos S2 Mini ( j’aurais pu le voir dans la YAML ). Autant pour moi, car la vidéo des frères poulain parle d’un Wemos S2 Mini.
Pour le Wemos S2 Mini c’est le GPIO 018 et 033.
Oui puis j’avais pas precisé non plus que le code fourni était pour un wemos D1.
Je vais editer mon message initial pour ceux qui passeront plus tard sur le sujet.
Bonjour
Le code est parfait ! Success…
Mais y a un souci lesp ne se connecte pas.,.elle reste rouge sur l esphome de ha .
Je n’arrive pas a m’y connecter pour récupérer le log
« INFO ESPHome 2023.12.8
INFO Reading configuration /config/esphome/detect-human-1.yaml…
INFO Starting log output from detect-human-1.local using esphome API WARNING Can’t connect to ESPHome API for detect-human-1.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError) INFO Trying to connect to detect-human-1.local in the background »
C’était un exemple, faut bien mettre ton ip de ta box ( gateway ) et une ip libre pour ton esp ( static_ip ).
Par défaut une box internet a l’ip 192.168.1.1
Pour être sur, dans ton fichier secret tu a mis le SSID et mot de passe de ta box ?
quand tu met !secret , ca va chercher les informations dans le fichier secret.yaml de ESPHome.
Dans le dashboard ESPHome en haut a droite ta secret, tu clic dessus et peut éditer le fichier.
il te faut ceci dedans:
wifi_ssid: "xxxxxxxxxxxxxxxx" #Le SSiD de ta box
wifi_password: "xxxxxxxxxxxxxxxxxxxx" #ton MDP WiFi de la box
Et lorsque je programme la carte par Wirelessly :
voici le log
"INFO ESPHome 2023.12.9
INFO Reading configuration /config/esphome/redcam.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)