ESPHome : no more response from Energy meter

Hy
I have been using an esp32 board + TTL / rs485 adapter to receive input from an ORNO WE-525 energy meter. All this worked flawlessly for many months, until my sensors showed up as “unknown” with this type of logs :
[modbus_controller:040]: Modbus command to device=1 register=0x100 no response received - removed from send queue
My ESP32 board appears as Online in ESPHome, I can edit and load new yaml scripts, the wifi signal is fine, so I do not think the problem lies in the board.
Perhaps a problem occured with the ORNO energy meter itself, but this sudden loss of contact seems quite surprising.
Below are my esphome logs
Has anybody run into the same kind of problem ?
Thank you for any help !

INFO ESPHome 2024.11.1
INFO Reading configuration /config/esphome/esphome-web-528da4.yaml...
INFO Starting log output from 192.168.1.48 using esphome API
INFO Successfully connected to esp32-studio-orno @ 192.168.1.48 in 0.267s
INFO Successful handshake with esp32-studio-orno @ 192.168.1.48 in 0.284s
[18:03:51][I][app:100]: ESPHome version 2024.11.1 compiled on Nov 25 2024, 19:14:22
[18:03:51][C][wifi:600]: WiFi:
[18:03:51][C][wifi:428]:   Local MAC: C8:F0:9E:52:8D:A4
[18:03:51][C][wifi:433]:   SSID: 'TP-Link_E5FF'[redacted]
[18:03:51][C][wifi:436]:   IP Address: 192.168.1.48
[18:03:51][C][wifi:440]:   BSSID: 3C:52:A1:65:E5:FF[redacted]
[18:03:51][C][wifi:441]:   Hostname: 'esp32-studio-orno'
[18:03:51][C][wifi:443]:   Signal strength: -45 dB ▂▄▆█
[18:03:51][C][wifi:447]:   Channel: 1
[18:03:51][C][wifi:448]:   Subnet: 255.255.255.0
[18:03:51][C][wifi:449]:   Gateway: 192.168.1.1
[18:03:51][C][wifi:450]:   DNS1: 0.0.0.0
[18:03:51][C][wifi:451]:   DNS2: 0.0.0.0
[18:03:51][C][logger:185]: Logger:
[18:03:51][C][logger:186]:   Level: DEBUG
[18:03:51][C][logger:188]:   Log Baud Rate: 0
[18:03:51][C][logger:189]:   Hardware UART: UART0
[18:03:51][C][uart.arduino_esp32:151]: UART Bus 0:
[18:03:51][C][uart.arduino_esp32:152]:   TX Pin: GPIO17
[18:03:51][C][uart.arduino_esp32:153]:   RX Pin: GPIO16
[18:03:51][C][uart.arduino_esp32:155]:   RX Buffer Size: 256
[18:03:51][C][uart.arduino_esp32:157]:   Baud Rate: 9600 baud
[18:03:51][C][uart.arduino_esp32:158]:   Data Bits: 8
[18:03:51][C][uart.arduino_esp32:159]:   Parity: NONE
[18:03:51][C][uart.arduino_esp32:160]:   Stop bits: 1
[18:03:51][C][modbus:164]: Modbus:
[18:03:51][C][modbus:166]:   Send Wait Time: 250 ms
[18:03:51][C][modbus:167]:   CRC Disabled: NO
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Grid Frequency'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: 'hz'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 0
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Voltage'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: 'V'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 0
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Current'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: 'A'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 2
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Active Power'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: 'W'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 0
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Apparent Power'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: 'VA'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 0
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Power Factor'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 2
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Total Active Energy'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: 'kWh'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 3
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensorModbus Controller Sensor 'Total Reactive Energy'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  State Class: ''
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Unit of Measurement: 'kVArh'
[18:03:51][C][modbus_controller.sensor:010]: modbus_controller.sensor  Accuracy Decimals: 3
[18:03:51][C][status:034]: Status Binary Sensor 'Statut'
[18:03:51][C][status:034]:   Device Class: 'connectivity'
[18:03:51][C][restart:068]: Restart Switch 'Redémarrage'
[18:03:51][C][restart:070]:   Icon: 'mdi:restart'
[18:03:51][C][restart:091]:   Restore Mode: always OFF
[18:03:51][C][captive_portal:089]: Captive Portal:
[18:03:51][C][mdns:116]: mDNS:
[18:03:51][C][mdns:117]:   Hostname: esp32-studio-orno
[18:03:51][C][esphome.ota:073]: Over-The-Air updates:
[18:03:51][C][esphome.ota:074]:   Address: 192.168.1.48:3232
[18:03:51][C][esphome.ota:075]:   Version: 2
[18:03:51][C][esphome.ota:078]:   Password configured
[18:03:51][C][safe_mode:018]: Safe Mode:
[18:03:51][C][safe_mode:020]:   Boot considered successful after 60 seconds
[18:03:51][C][safe_mode:021]:   Invoke after 10 boot attempts
[18:03:51][C][safe_mode:023]:   Remain in safe mode for 300 seconds
[18:03:51][C][api:140]: API Server:
[18:03:51][C][api:141]:   Address: 192.168.1.48:6053
[18:03:51][C][api:143]:   Using noise encryption: YES
[18:03:51][C][wifi_signal.sensor:010]: WiFi Signal 'Signal Wifi'
[18:03:51][C][wifi_signal.sensor:010]:   Device Class: 'signal_strength'
[18:03:51][C][wifi_signal.sensor:010]:   State Class: 'measurement'
[18:03:51][C][wifi_signal.sensor:010]:   Unit of Measurement: 'dBm'
[18:03:51][C][wifi_signal.sensor:010]:   Accuracy Decimals: 0
[18:03:51][C][modbus_controller:349]: ModbusController:
[18:03:51][C][modbus_controller:350]:   Address: 0x01
[18:03:51][C][modbus_controller:351]:   Max Command Retries: 4
[18:03:51][C][modbus_controller:352]:   Offline Skip Updates: 0
[18:04:35][D][sensor:094]: 'Signal Wifi': Sending state -49.00000 dBm with 0 decimals of accuracy
[18:04:36][D][modbus_controller:040]: Modbus command to device=1 register=0x100 no response received - removed from send queue
[18:04:37][D][modbus_controller:040]: Modbus command to device=1 register=0x10A no response received - removed from send queue
[18:04:38][D][modbus_controller:040]: Modbus command to device=1 register=0x122 no response received - removed from send queue
[18:04:40][D][modbus_controller:040]: Modbus command to device=1 register=0x140 no response received - removed from send queue

Hi @Nils92 I would be interested in pulling data from my electricity meter. Would you mind sharing a link to how you got your esphome setup or point me in the right direction?

Hi
As far as I can remember, I think this video helped me get on track :

I am not using the same hardware though, just using very basic
ESP32-WROOM plus TTL - RS485 adapter.
You will need to adapt the code according to your own energy meter (address, rx and tx pin, baud rate, parity, stop bit etc.)