zigbee2mqtt-frontend icon indicating copy to clipboard operation
zigbee2mqtt-frontend copied to clipboard

[Bug]: Endpoint picker lists named endpoints in addition to numeric ones

Open mundschenk-at opened this issue 1 year ago • 2 comments

What happened?

When a device has multiple named endpoints, it looks like the endpoint picker (e.g. when adding to a group) first lists the numbered endpoints and then in addition the names, multiple times (probably once for each expose).

For example, a Hue Twilight has four endpoints (1, 11, 12, 242). Three of these are named in the device definition:

deviceEndpoints({endpoints: {switch: 1, back: 11, front: 12}}),

The endpoint picker lists:

  • 1
  • 11
  • 12
  • 242
  • front
  • front
  • front
  • back
  • back
  • back
  • back
  • back

The switch endpoint is named, but not used by name in the device converter, while front and back are used in philipsLight. I believe the different number comes from the fact that 11 is gradient light and so has two extra exposes (gradient and gradient_scene).

What browsers are you seeing the problem on?

Safari

Relevant stacktrace

No response

Did you download state.json.zip?

I will not attach state.json.zip

mundschenk-at avatar Oct 06 '24 14:10 mundschenk-at

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 25 '25 02:04 stale[bot]

Not stale

mundschenk-at avatar Apr 25 '25 06:04 mundschenk-at

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '25 22:06 stale[bot]