Modbus with SDM630 v2 energy meter

If you want to build yourself a convertor, I used the work of @budulinek based on an Arduino: GitHub - budulinek/arduino-modbus-rtu-tcp-gateway: Arduino-based Modbus RTU to Modbus TCP/UDP gateway with web interface. Allows you to connect Modbus RTU slaves (such as sensors, energy meters, HVAC devices) to Modbus TCP/UDP masters (such as home automation systems). You can adjust settings through web interface.

Hi Leo, and you just plug that into the Raspberry or how do you do that?

Yes its just a RS485 to USB dongle Modbus - Home Assistant

Or get a RS485 to TCP e.g. from Waveshare and use Modbus - Home Assistant

No I really like the USB suggestion but I am surprised it is that easy/cheap.
Unless you recommend I go the TCP route. I can easily put the raspberry next to the SDM630.

For your information…

After updating to HA 2023.10.0, my modbus configuration reported an error :
invalid config for [modbus]: 'count:2' cannot be combined with data_type: float32`

In the release docs I saw a breaking change about modbus : close_comm_on_error
But nothing about the error above.
When reading the docs about modbus again, I saw that the option Count can only be used with data_type custom and data_type string.

So the solution is to delete this option entry for each sensor

    sensors:
      - name: sdm630_phase_1_line_to_neutral_volts
        slave: 1
        address: 0
        input_type: input
        precision: 2
        data_type: float32
        unit_of_measurement: V
        device_class: voltage
        scan_interval: 20

After a reboot HA sets a new repair notification : option ‘retry_on_empty’ is also deprecated in the modbus integration!