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

Add support for Sony BRAVIA #141

Merged
merged 37 commits into from
Nov 5, 2024
Merged

Add support for Sony BRAVIA #141

merged 37 commits into from
Nov 5, 2024

Conversation

alex4108
Copy link
Contributor

Basing off the bravia integration, commands here vary compared to traditional ADB provided integration.

I took some time to write up some sources and keys against the bravia integration as listed above, using my KD-55X750H. I was able to confirm that Keyboard via ADB works here too

README.md Outdated Show resolved Hide resolved
@Nerwyn
Copy link
Owner

Nerwyn commented Sep 24, 2024

Thanks for your contribution!

To clarify, the TV does use Android TV but also has it's own separate API? Do these commands also work within it's Android TV interface and/or are for it's non Android TV UI components?

@Nerwyn
Copy link
Owner

Nerwyn commented Sep 24, 2024

Also please change the target branch to dev!

@alex4108
Copy link
Contributor Author

Thanks for your contribution!

To clarify, the TV does use Android TV but also has it's own separate API? Do these commands also work within it's Android TV interface and/or are for it's non Android TV UI components?

Clarified in #141 (comment)

@alex4108 alex4108 changed the base branch from main to dev September 25, 2024 06:56
@alex4108
Copy link
Contributor Author

alex4108 commented Sep 25, 2024

@Nerwyn I believe I've implemented all the feedback we've discussed, thanks for your review! I've added some more default sources and validated the Netflix button works as expected. Let me know if you want anything else.

Otherwise thank you for your time on this, it helped me out and the API for adding a new TV model was super easy. Keep up the good work!

Thanks!

},
},
icon: 'mdi:youtube',
}, // Past this object is untested sources.
Copy link
Owner

@Nerwyn Nerwyn Sep 25, 2024

Choose a reason for hiding this comment

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

The default source list should be alphabetical, since it uses the order in this file to display the default sources in the layout tab. While I could sort/alphabetize this in the UI editor code, I want to keep it alphabetized here for organization and ease of lookup purposes. You can just mark the untested sources with // UNTESTED

icon: 'mdi:waveform',
},
{
type: 'button',
Copy link
Owner

@Nerwyn Nerwyn Sep 25, 2024

Choose a reason for hiding this comment

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

While this does have a remote command, Netflix is really a source and should be in the other list.

@@ -3,13 +3,14 @@ export const KeyboardPlatforms = [
'Fire TV',
'Roku',
'Kodi',
'Sony BRAVIA'
Copy link
Owner

Choose a reason for hiding this comment

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

Since Sony BRAVIA is a keyboard platform, it should also be added to the switch cases in keyboard-dialog.ts as well. Android TV uses a mix of ADB and the Android TV remote API, and Fire TV uses purely ADB. Can you add it to the appropriate cases? I imagine it needs purely ADB (Fire TV) but you should do some tests.

@Nerwyn
Copy link
Owner

Nerwyn commented Sep 29, 2024

@alex4108 have you had a chance to look at the additional feedback?

@Nerwyn Nerwyn merged commit caa5e85 into Nerwyn:dev Nov 5, 2024
1 check passed
@Nerwyn
Copy link
Owner

Nerwyn commented Nov 5, 2024

@alex4108 can you try the 4.2.0 alpha? I resolved the merge conflicts and made the final fixes so the Sony BRAVIA platform should be working now.

@alex4108
Copy link
Contributor Author

alex4108 commented Nov 5, 2024

@Nerwyn with 4.2.0-alpha.001 installed by HACS I can confirm my BRAVIA card continues to work as it did on my fork! Thanks!

@Nerwyn
Copy link
Owner

Nerwyn commented Nov 5, 2024

Great! I'm working on implementing another feature for 4.2, so it'll be a few days until this is officially released.

@Nerwyn
Copy link
Owner

Nerwyn commented Nov 9, 2024

Released 4.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants