Modbus with SDM530 energy meter - unique ID is missing

After having no more error messages in the HA log I found no according entry in the device list, but an entity named “SDM530_1a”. Opening this the error message “Unique ID is missing” is displayed. I already double-checked my configuration with other similar modbus scripts in this community…

What is my mistake?

# MODBUS serial connection
  - name: SDM530
    type: serial
    baudrate: 9600
    bytesize: 8
    method: rtu
    parity: N
    port: /dev/ttyUSB0
    stopbits: 1
      - name: SDM530_1_Ph1_Power
        slave: 1
        address: 12
        input_type: input
        count: 2
        precision: 2
        data_type: float32
        unit_of_measurement: W
        device_class: power

Kind regards,

You just need to add a unique_id to your definition.

E.g., this is one of mine:

  - name: Iammeter_3_modbus
    type: tcp
    port: 502
      - name: Iammeter_3_modbus_Voltage_A
        unique_id: {insert a unique reference number or id here}
1 Like