Bonjour,
Il semblerait que le buetooth ne soit pas activé par défaut sur cet esp32U équipé d’une antenne extérieure.
Pouvez-vous me dire ce qu’il faut ajouter au code en place ?
Merci d’avance,
patrickp78
Voici le code et le log actuels :
esphome:
name: esp32u-01
friendly_name: Pyranomètre
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "VmPyumxxxxxxxxxxxxxxx"
ota:
- platform: esphome
password: "e4957bxxxxxxxxxxxxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32U-01 Fallback Hotspot"
password: "xxxxxxxxxx"
captive_portal:
uart:
- id: uart_0
tx_pin: GPIO17 # vers RO RX
rx_pin: GPIO16 # vers DI TX
baud_rate: 4800
stop_bits: 1
modbus:
- id: modbus_1
uart_id: uart_0
send_wait_time: 200ms
#flow_control_pin: GPIO04
modbus_controller:
- id: modbus_controller_1
address: 1
modbus_id: modbus_1
command_throttle: 200ms
setup_priority: -10
update_interval: 30s
sensor:
- platform: modbus_controller
modbus_controller_id: modbus_controller_1
id: pyranometer
name: Pyranomètre
address: 0x00
register_type: holding # Modbus Function code 0x03
value_type: U_WORD # 16bit measure value INT16 (signed word)
accuracy_decimals: 0
icon: mdi:sun-wireless
skip_updates: 1
unit_of_measurement: "W/m²"
device_class: "irradiance"
switch:
- platform: gpio
name: "Led bleu"
id: led
pin: 2
- platform: restart
name: "Redémarrage"
web_server:
port: 80
INFO ESPHome 2026.2.4
INFO Reading configuration /config/esphome/esp32u-01.yaml...
WARNING GPIO2 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 esp32u-01.local using esphome API
INFO Successfully resolved esp32u-01.local in 0.430s
INFO Successfully connected to esp32u-01 @ 192.168.1.48 in 0.007s
INFO Successful handshake with esp32u-01 @ 192.168.1.48 in 0.471s
[14:34:32.825][I][app:215]: ESPHome version 2026.2.4 compiled on 2026-03-05 08:41:32 +0100
[14:34:32.825][I][app:222]: ESP32 Chip: ESP32 rev3.1, 2 core(s)
[14:34:32.825][W][app:231]: Set minimum_chip_revision: "3.1" to reduce binary size
[14:34:32.826][C][logger:237]: Logger:
[14:34:32.826][C][logger:237]: Max Level: DEBUG
[14:34:32.826][C][logger:237]: Initial Level: DEBUG
[14:34:32.827][C][logger:244]: Log Baud Rate: 115200
[14:34:32.827][C][logger:244]: Hardware UART: UART0
[14:34:32.827][C][logger:254]: Task Log Buffer Size: 768 bytes
[14:34:32.843][C][uart.idf:230]: UART Bus 1:
[14:34:32.844][C][uart.idf:152]: TX Pin: GPIO17
[14:34:32.844][C][uart.idf:152]: RX Pin: GPIO16
[14:34:32.855][C][uart.idf:235]: RX Buffer Size: 256
[14:34:32.855][C][uart.idf:235]: RX Full Threshold: 3
[14:34:32.855][C][uart.idf:235]: RX Timeout: 2
[14:34:32.856][C][uart.idf:241]: Baud Rate: 4800 baud
[14:34:32.856][C][uart.idf:241]: Data Bits: 8
[14:34:32.856][C][uart.idf:241]: Parity: NONE
[14:34:32.856][C][uart.idf:241]: Stop bits: 1
[14:34:32.856][C][modbus:208]: Modbus:
[14:34:32.856][C][modbus:208]: Send Wait Time: 200 ms
[14:34:32.856][C][modbus:208]: CRC Disabled: NO
[14:34:32.882][C][switch.gpio:092]: GPIO Switch 'Led bleu'
[14:34:32.882][C][switch.gpio:092]: Restore Mode: always OFF
[14:34:32.883][C][switch.gpio:152]: Pin: GPIO2
[14:34:32.883][C][modbus_controller.sensor:017]: modbus_controller.sensorModbus Controller Sensor 'Pyranomètre'
[14:34:32.883]modbus_controller.sensor State Class: ''
[14:34:32.883]modbus_controller.sensor Unit of Measurement: 'W/m²'
[14:34:32.883]modbus_controller.sensor Accuracy Decimals: 0
[14:34:32.902][C][modbus_controller.sensor:163]: modbus_controller.sensor Device Class: 'irradiance'
[14:34:32.902][C][modbus_controller.sensor:157]: modbus_controller.sensor Icon: 'mdi:sun-wireless'
[14:34:32.927][C][restart:092]: Restart Switch 'Redémarrage'
[14:34:32.927][C][restart:092]: Restore Mode: always OFF
[14:34:32.935][C][restart:157]: Icon: 'mdi:restart'
[14:34:32.950][C][captive_portal:134]: Captive Portal:
[14:34:32.951][C][wifi:1450]: WiFi:
[14:34:32.951][C][wifi:1450]: Local MAC: A4:F0:0F:65:E3:44
[14:34:32.951][C][wifi:1450]: Connected: YES
[14:34:32.992][C][wifi:1202]: IP Address: 192.168.1.48
[14:34:32.992][C][wifi:1213]: SSID: [redacted]
[14:34:32.992][C][wifi:1213]: BSSID: [redacted]
[14:34:32.992][C][wifi:1213]: Hostname: 'esp32u-01'
[14:34:32.992][C][wifi:1213]: Signal strength: -68 dB ▂▄▆█
[14:34:32.992][C][wifi:1213]: Channel: 1
[14:34:32.992][C][wifi:1213]: Subnet: 255.255.255.0
[14:34:32.992][C][wifi:1213]: Gateway: 192.168.1.1
[14:34:32.992][C][wifi:1213]: DNS1: 192.168.1.1
[14:34:32.992][C][wifi:1213]: DNS2: 0.0.0.0
[14:34:32.993][C][web_server:424]: Web Server:
[14:34:32.993][C][web_server:424]: Address: esp32u-01.local:80
[14:34:32.994][C][esphome.ota:075]: Over-The-Air updates:
[14:34:32.994][C][esphome.ota:075]: Address: esp32u-01.local:3232
[14:34:32.994][C][esphome.ota:075]: Version: 2
[14:34:32.994][C][esphome.ota:082]: Password configured
[14:34:32.995][C][safe_mode:022]: Safe Mode:
[14:34:32.995][C][safe_mode:022]: Successful after: 60s
[14:34:32.995][C][safe_mode:022]: Invoke after: 10 attempts
[14:34:32.995][C][safe_mode:022]: Duration: 300s
[14:34:33.005][C][safe_mode:039]: Bootloader rollback: not supported
[14:34:33.024][C][web_server.ota:238]: Web Server OTA
[14:34:33.024][C][api:237]: Server:
[14:34:33.024][C][api:237]: Address: esp32u-01.local:6053
[14:34:33.024][C][api:237]: Listen backlog: 4
[14:34:33.024][C][api:237]: Max connections: 8
[14:34:33.033][C][api:244]: Noise encryption: YES
[14:34:33.033][C][mdns:177]: mDNS:
[14:34:33.033][C][mdns:177]: Hostname: esp32u-01
[14:34:33.037][C][modbus_controller:448]: ModbusController:
[14:34:33.037][C][modbus_controller:448]: Address: 0x01
[14:34:33.037][C][modbus_controller:448]: Max Command Retries: 4
[14:34:33.037][C][modbus_controller:448]: Offline Skip Updates: 0
[14:34:33.037][C][modbus_controller:448]: Server Courtesy Response:
[14:34:33.037][C][modbus_controller:448]: Enabled: false
[14:34:33.037][C][modbus_controller:448]: Register Last Address: 0xFFFF
[14:34:33.037][C][modbus_controller:448]: Register Value: 0
[14:34:44.859][D][modbus_controller.sensor:025]: Sensor new state: 999.00
[14:34:44.907][D][sensor:118]: 'Pyranomètre' >> 999 W/m²


