pour connecter mon compteur de gaz à HA, j’utilise:
un émetteur d’impulsion ELSTER IN-Z62
il est est relié à un ESP32 OLIMEX POE
l’ESP 32 est relié en ethernet à un switch PO. le cable fait 50m de long
J’ai d’abord fait une première config de la carte ESP32, en WIFI : OK, le système la trouve, mais pas de sensor dans ESPHome
Ensuite, je lui ai flashé un autre code pour qu’il se connecte uniquement à l’ethernet, et c’est là que ça coince. Impossible de le trouver sur le réseau. Les lumières orange et jaune sont allumées, mais ne clignotent pas. Les logs montrent bien que l’ethernet ne fonctionne pas.
Quelles sont les solutions à cette combinaison?
HA est installé sur un NAS Synology
Merci pour votre aide
voici le code yaml:
esphome:
name: compteur-gaz
friendly_name: Compteur Gaz
esp32:
board: esp32-poe-iso
framework:
type: arduino
###############################################
# 🔐 SÉCURITÉ (Vos clés conservées)
###############################################
api:
encryption:
key: "0dqqCuJNs6DQS5bq2EfS/hUCcEqywRRhDdC7KnauDnI="
ota:
- platform: esphome
password: "5ad6818491043cb4d0be349dc3b329a8"
logger:
level: INFO
###############################################
# 🌐 ETHERNET – OLIMEX ESP32-POE-ISO (CONFIG PRÉCISE)
###############################################
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN # Adapté pour la version ISO
phy_addr: 0
power_pin: GPIO12
# Ajout du serveur web pour diagnostic facile
web_server:
port: 80
###############################################
# ⛽ GAZ – ELSTER IN-Z62
###############################################
sensor:
- platform: pulse_meter
pin:
number: GPIO32
mode: INPUT_PULLUP
name: "Débit Gaz Instantané"
unit_of_measurement: "m³/h"
icon: mdi:fire
internal_filter: 100ms
accuracy_decimals: 3
filters:
- multiply: 0.6 # (60 min / h × 0.01 m³)
total:
name: "Index Gaz Total"
unit_of_measurement: "m³"
icon: mdi:gas-burner
accuracy_decimals: 2
filters:
- multiply: 0.01
tu as vérifié l’ip éventuellement via ton routeur, une appli android ( wifiman ), windows (advanced ip scanner ) ? genre ton routeur serait fixé sur un matériel sur la même ip que tu mets dans l’esp
oui, j’ai vérifié en fixant une IP, j’ai ce message dans les logs:
INFO ESPHome 2025.12.5INFO Reading configuration /config/compteur-gaz.yml…
WARNING GPIO0 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/#why-am-i-getting-a-warning-about-strapping-pinsWARNING GPIO12 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/#why-am-i-getting-a-warning-about-strapping-pinsINFO Starting log output from 192.168.1.100 using esphome APIINFO Successfully resolved compteur-gaz @ 192.168.1.100 in 0.000s
WARNING Can't connect to ESPHome API for compteur-gaz @ 192.168.1.100:
Timeout while connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.100', port=6053))] (TimeoutAPIError)
INFO Trying to connect to compteur-gaz @ 192.168.1.100 in the background
quand j’enlève l’IP, il inidque ceci
INFO ESPHome 2025.12.5
INFO Reading configuration /config/compteur-gaz.yml...
WARNING GPIO0 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/#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO12 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/#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from compteur-gaz.local using esphome API
WARNING Can't connect to ESPHome API for compteur-gaz.local: Timeout while resolving IP address for ['compteur-gaz.local'] (ResolveTimeoutAPIError)
INFO Trying to connect to compteur-gaz.local in the background
J’ai un peu cherché, visiblement il y a eu plusieurs version de cette carte et bien entendu la configuration n’est pas la même selon la version… (ce serait trop simple)
Pour les dernières version, il semblerait que cette configuration soit la bonne :
INFO ESPHome 2025.12.5
INFO Reading configuration /config/compteur-gaz.yml...
WARNING GPIO0 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/#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO12 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/#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from compteur-gaz.local using esphome API
WARNING Can't connect to ESPHome API for compteur-gaz.local: Timeout while resolving IP address for ['compteur-gaz.local'] (ResolveTimeoutAPIError)
INFO Trying to connect to compteur-gaz.local in the background