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

[pulseaudio] Allow flexible parameters to find a given pulseaudio device #12598

Conversation

dalgwen
Copy link
Contributor

@dalgwen dalgwen commented Apr 11, 2022

Following the request of a user, who had difficulties with its pulseaudio devices and the random naming occuring (#12555) , I would like to add some (non breaking) possibilities in the way to choose a pulseaudio device corresponding to a thing description.

To identify the device on the pulseaudio server, with this PR, you can now use the description instead of the technical id (a.k.a. "name").
To filter furthermore, you can also use the parameter additionalFilters (optional regular expressions that need to match a property value of a device on the pulseaudio server).
As you can see in the related discussion, these two modifications were necessary to match an interesting use case (playing sound to airplay device with the help of the RAOP pulseaudio module as an intermediary)

Closes #12555

A snapshot is here

Signed-off-by: Gwendal Roulleau gwendal.roulleau@gmail.com

To identify the device on the pulseaudio server, you can now use the description instead of the technical id (a.k.a. "name").
To filter furthermore, you can also use the parameter additionalFilters (optional regular expressions that need to match a property value of a device on the pulseaudio server)

Closes openhab#12555

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
@dalgwen dalgwen added the enhancement An enhancement or new feature for an existing add-on label Apr 11, 2022
@dalgwen dalgwen requested a review from peuter as a code owner April 11, 2022 10:14
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 minor comments

Apply suggestions from code review

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
@dalgwen
Copy link
Contributor Author

dalgwen commented Apr 28, 2022

Thank you again @lolodomo

Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@lolodomo lolodomo merged commit ae20f93 into openhab:main Apr 28, 2022
@lolodomo lolodomo added this to the 3.3 milestone Apr 28, 2022
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
…ice (openhab#12598)

* [pulseaudio] Allow flexible parameters to find a given pulseaudio device

To identify the device on the pulseaudio server, you can now use the description instead of the technical id (a.k.a. "name").
To filter furthermore, you can also use the parameter additionalFilters (optional regular expressions that need to match a property value of a device on the pulseaudio server)

Closes openhab#12555

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
…ice (openhab#12598)

* [pulseaudio] Allow flexible parameters to find a given pulseaudio device

To identify the device on the pulseaudio server, you can now use the description instead of the technical id (a.k.a. "name").
To filter furthermore, you can also use the parameter additionalFilters (optional regular expressions that need to match a property value of a device on the pulseaudio server)

Closes openhab#12555

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
@dalgwen dalgwen deleted the 12555_pulseaudio_also_use_description_as_identifier branch December 29, 2022 22:58
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
…ice (openhab#12598)

* [pulseaudio] Allow flexible parameters to find a given pulseaudio device

To identify the device on the pulseaudio server, you can now use the description instead of the technical id (a.k.a. "name").
To filter furthermore, you can also use the parameter additionalFilters (optional regular expressions that need to match a property value of a device on the pulseaudio server)

Closes openhab#12555

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pulseaudio] Bug/Feature Request: Avoid random assignment of pulseaudio sinks to openhab things
2 participants