Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3: Duplicate Sensor Names Cause Only One Sensor Output to be Displayed #122

Open
madurapa opened this issue Aug 31, 2024 · 1 comment
Open

Comments

@madurapa
Copy link

When adding sensors to the YAML configuration as shown below, only one sensor output is displayed because both sensors use the same name, Voltage.

sensor:
  - platform: pipsolar
    pipsolar_id: ${pipsolar_id}
    grid_voltage:
      id: ${name}_${inverter}_grid_voltage
      name: "Voltage"
      web_server_sorting_weight: 0.01
      accuracy_decimals: 0
      icon: mdi:flash
    ac_output_voltage:
      id: ${name}_${inverter}_ac_output_voltage
      name: "Voltage"
      web_server_sorting_weight: 1.01
      accuracy_decimals: 0
      icon: mdi:flash
@RFDarter
Copy link
Contributor

hi, that is a known issue
since the REST-API uses he name of the component to access it via GET/POST requests there is currently now way to show and access more components with the same name.

It would be possible to use the internally assigned id of the component and use that for the REST-API, but the you would need to find out that id which consists of the component name (number, binary_sensor, ..) and some "random" numbers.

or as you specified it here id: ${name}_${inverter}_ac_output_voltage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants