Modbus sensor - unique id?

Hello - trying to set up some modbus sensors. all seem to be working but wondering if there is a way to give them unique ids? Just to have a name that’s not hyphenated and can still be referred to later on in the calculations (via templating).

sensor:

  • platform: modbus
    scan_interval: 60
    registers:
    • name: pdu_input_voltage
      hub: PDU
      unit_of_measurement: “V”
      register: 3036
      count: 2
      reverse_order: true
      data_type: float
      precision: 5

Thanks a lot in advance!

2 Likes

I have the same question - did you solve it?

1 Like

Have you found any solution?

1 Like

I added a feature request for this which you can vote on: Modbus sensors - Unique ID and Device support

1 Like