nginx-proxy-manager-switches
nginx-proxy-manager-switches copied to clipboard
Streams with the same incoming port aren't shown
trafficstars
Version of the custom_component
v2.0.2
Describe the bug
I have 4 streams with the same incoming port that I toggle between depending on what Minecraft server I want to be accessible via a url. Currently this integration will only show one of these stream switches but it would be nice for all of them to show up. It seems the integration doesn't give a unique name to the duplicates so it doesn't create them. Ideally the fix would be to either generate the entity with a unique id with an extra number (e.g. 2, 3, 4, etc.) on the end or to use the destination address in the id. My npm stream setup is shown below.
Debug log
Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:774
integration: Switch (documentation, issues)
First occurred: February 23, 2025 at 11:26:11 AM (3 occurrences)
Last logged: February 23, 2025 at 11:26:11 AM
Platform npm_switches does not generate unique IDs. ID 01JM8E1A055NATQK7GT15WW14J Stream 25565 is already used by switch.192_168_1_14_81_stream_25565 - ignoring switch.192_168_1_14_81_stream_25565