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
modbus:
  - name: SDM530
    type: serial
    baudrate: 9600
    bytesize: 8
    method: rtu
    parity: N
    port: /dev/ttyUSB0
    stopbits: 1
    sensors:
      - 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,
Peter

You just need to add a unique_id to your definition.

E.g., this is one of mine:

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