Eyedro Rest API Duplicate Keys

Hello, I am using this Rest API to capture Eyedro information. I have two devices in my house on the same network. The coding here works, but I get duplicate key errors when I try to read both devices. I am very new at this. Help?

#myeyedro 200A
sensor: DUPLICATE KEY ERROR

  • platform: integration
    source: sensor.eyedro_total_power
    name: “200A Eyedro total energy”
    unique_id: eyedro_total_energy
    round: 2

rest: DUPLICATE KEY ERROR

  • resource: (my device IP)

    scan_interval: 10

    sensor:

    • name: “200A Eyedro total power”
      unique_id: eyedro_total_power
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][3] + value_json[‘data’][1][3])/1000 }}”
      unit_of_measurement: “kW”
      device_class: power
      state_class: measurement
    • name: “200A Eyedro total current”
      unique_id: eyedro_total_current
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][2] + value_json[‘data’][1][2])/1000 }}”
      unit_of_measurement: “A”
      device_class: current
      state_class: measurement
    • name: “200A Eyedro average voltage”
      unique_id: eyedro_average_voltage
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][1] + value_json[‘data’][1][1])/200 }}” #reported in tens of milivolts, but we want the average, so /2 /100 = /200
      unit_of_measurement: “V”
      device_class: voltage
      state_class: measurement
    • name: “200A Eyedro average power factor”
      unique_id: eyedro_average_pf
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][0] + value_json[‘data’][1][0])/20 }}” #reported in tenths of a percent, but we want the average, so /2 /10 = /20
      unit_of_measurement: “%”
      device_class: power_factor
      state_class: measurement

#myeyedro 100A

sensor: DUPLICATE KEY ERROR

  • platform: integration
    source: sensor.eyedro_total_power
    name: “100A Eyedro total energy”
    unique_id: eyedro_total_energy

    round: 2

rest: DUPLICATE KEY ERROR

  • resource: (my second device IP)

    scan_interval: 10

    sensor:

    • name: “100A Eyedro total power”
      unique_id: eyedro_total_power
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][3] + value_json[‘data’][1][3])/1000 }}”
      unit_of_measurement: “kW”
      device_class: power
      state_class: measurement
    • name: “100A Eyedro total current”
      unique_id: eyedro_total_current
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][2] + value_json[‘data’][1][2])/1000 }}”
      unit_of_measurement: “A”
      device_class: current
      state_class: measurement
    • name: “100A Eyedro average voltage”
      unique_id: eyedro_average_voltage
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][1] + value_json[‘data’][1][1])/200 }}” #reported in tens of milivolts, but we want the average, so /2 /100 = /200
      unit_of_measurement: “V”
      device_class: voltage
      state_class: measurement
    • name: “100A Eyedro average power factor”
      unique_id: eyedro_average_pf
      json_attributes_path: “$.response”
      value_template: “{{ (value_json[‘data’][0][0] + value_json[‘data’][1][0])/20 }}” #reported in tenths of a percent, but we want the average, so /2 /10 = /20
      unit_of_measurement: “%”
      device_class: power_factor
      state_class: measurement

Hi, did you ever get this resolved?