Non-unique node names in pipewire (audio devices)
$ pw-cli dump short Node|grep unknown
42: Node s="running" i=2/64 n="alsa_output.pci-0000:02:02.0.unknown" p="alsa:pcm:AudioPCI:0:playback"
43: Node s="suspended" o=2/64 n="alsa_input.pci-0000:02:02.0.unknown" p="alsa:pcm:AudioPCI:0:capture"
44: Node s="suspended" i=2/64 n="alsa_output.pci-0000:02:02.0.unknown" p="alsa:pcm:AudioPCI:1:playback"
42 and 44 have identical names.
acp is disabled for device otherwise unknown would be "analog-stereo" (the profile name) and device 44 would be missing as the profile disables it (it is a secondary DAC for the device).
I'm currently using the node name to select output device in my software but this breaks. Is there a better way to do this? I would love to have a single string property that would be guaranteed to be unique.