Skip to content

Commit

Permalink
PR Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alex4108 committed Sep 25, 2024
1 parent 902c686 commit 1e97b96
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This card supports several media platforms with default key and source lists. It
| [Apple TV](https://www.home-assistant.io/integrations/apple_tv) | Default keys | Default sources and slider | NA |
| [Samsung TV](https://www.home-assistant.io/integrations/samsungtv/) | Default keys | Default sources and slider | NA |
| [LG webOS](https://www.home-assistant.io/integrations/webostv/) | NA | Default keys, sources, and sliders | NA |
| [Sony BRAVIA](https://www.home-assistant.io/integrations/braviatv/#remote) | Default Keys | Default sources | NA
| [Sony BRAVIA](https://www.home-assistant.io/integrations/braviatv/) | Default Keys | Default sources | NA

## Action Timings

Expand Down
15 changes: 11 additions & 4 deletions src/models/maps/bravia/defaultKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import { IElementConfig } from '../../interfaces';

/**
* This is the list of most common commands from the Android TV Remote integration page.
* Not all are ensured to work, and if they do not it is likely an issue with the underlying package used by the Android TV Remote integration or the Android TV Remote Protocol V2 itself.
* https://www.home-assistant.io/integrations/androidtv_remote/#remote
*/
* This list contains commands listed by the Sony BRAVIA KD-55X750H used during development.
* Additional commands may be supported.
*
* https://www.home-assistant.io/integrations/braviatv/
*/
export const braviaTVDefaultKeys: IElementConfig[] = [
{
type: 'button',
Expand Down Expand Up @@ -341,4 +342,10 @@ export const braviaTVDefaultKeys: IElementConfig[] = [
tap_action: { action: 'key', key: 'MediaAudioTrack' },
icon: 'mdi:waveform',
},
{
type: 'button',
name: 'netflix',
tap_action: { action: 'key', key: 'Netflix' },
icon: 'mdi:netflix'
}
];
7 changes: 4 additions & 3 deletions src/models/maps/bravia/defaultSources.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { IElementConfig } from '../../interfaces';

/**
* This is a list of common streaming apps, their icons, and the deep links to open them in Android TV, mostly collected from the following Home Assistant Community Forum guide.
* Not all have been tested, if any do not work please let me know!
* https://community.home-assistant.io/t/android-tv-remote-app-links-deep-linking-guide/567921
* This list contains a subset of supported sources.
* Supported sources can be added by their explicit App Name
*
* https://www.home-assistant.io/integrations/braviatv/#play-media-action
*/
export const braviaTVDefaultSources: IElementConfig[] = [
{
Expand Down

0 comments on commit 1e97b96

Please sign in to comment.