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

[yamahamusiccast] Add discovery information #16231

Merged
merged 3 commits into from Jan 19, 2024

Conversation

florian-h05
Copy link
Contributor

Seems like Yamaha is using uppercase YAMAHA CORPORATION for the manufacturer info of non-MusicCast devices and normal case Yamaha Corporation for MusicCast devices.

Signed-off-by: Florian Hotze florianh_dev@icloud.com

Seems like Yamaha is using uppercase `YAMAHA CORPORATION` for the manufacturer info of non-MusicCast devices and normal case `Yamaha Corporation` for MusicCast devices.
@florian-h05 florian-h05 requested a review from a team January 7, 2024 12:13
<match-properties>
<match-property>
<name>manufacturer</name>
<regex>(?i).*Yamaha.*</regex>
Copy link
Contributor

Choose a reason for hiding this comment

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

As I understand, (?i) turns on case-insensitive mode. So if you keep it, you will catch value containing either Yamaha or YAMAHA.
Exactly the same result as in the "Yamaha Receiver" binding.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, I will fix that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have just commited that @lolodomo .

…ption

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Jan 14, 2024
# channel types

channel-type.yamahareceiver.surroundProgram.state.option.Neo:6 Music = Neo:6 Music
channel-type.yamahareceiver.surroundProgram.state.option.Neo:6 Cinema = Neo:6 Cinema
Copy link
Contributor

Choose a reason for hiding this comment

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

Please take care, there is a problem with Neo:6, the entries are doubled now.
To be honest, I don't know if the \ is required or not. Maybe @jlaur or @wborn can confirm ?

Copy link
Member

Choose a reason for hiding this comment

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

Yes see #11828

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Sorry, I did not check what the i18n plugin generated - I should probably don't trust it without checking what it does.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
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 4870083 into openhab:main Jan 19, 2024
3 checks passed
@lolodomo lolodomo added this to the 4.2 milestone Jan 19, 2024
@lolodomo lolodomo added the enhancement An enhancement or new feature for an existing add-on label Jan 19, 2024
@florian-h05 florian-h05 deleted the yamahamusiccast-discovery-info branch January 19, 2024 19:46
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Jan 27, 2024
* [yamahamusiccast] Add discovery information

Seems like Yamaha is using uppercase `YAMAHA CORPORATION` for the manufacturer info of non-MusicCast devices and normal case `Yamaha Corporation` for MusicCast devices.

* [yamaha] Fix REGEXes for Yamaha binding suggestion and improve description

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
* [yamahamusiccast] Add discovery information

Seems like Yamaha is using uppercase `YAMAHA CORPORATION` for the manufacturer info of non-MusicCast devices and normal case `Yamaha Corporation` for MusicCast devices.

* [yamaha] Fix REGEXes for Yamaha binding suggestion and improve description

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
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.

None yet

3 participants