question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEAT] Some new found endpoints to document

See original GitHub issue

Is your feature request related to a problem? Please describe. I found some new endpoints that might be worth documenting. No idea what they are, but wanted to write them down:

/6/context

{'data': 'NA',
 'level1': 'WatchExtension',
 'level2': 'Playstate',
 'level3': 'NA'}

/6/channeldb/servermapping/X

'channelList': {'id': '1', 'version': 8}, 'channels': [], 'version': '-2'}

/6/channeldb/tv/channelLists/{channel_list}/{ccid}/logo

PNG image for channel. Strangely there exists logos's for applications on some ccid's 

/6/recordings/list

{'recordings': []} # don't have anything recorded so can't say how it looks

/6/recordings/refresh

Unsure. probably a post request

/6/reminder/list

{'recordings': []} # don't have anything recorded so can't say how it looks

/6/input/textentry

Unsure. I would expect a post of text entry data

/6/input/pointer

{'status': 'disabled'}

/6/input/onscreenkeyboard/visible

{'visible': 'hide'} # probably also postable

/6/companionlauncher/launch_request_details

Unsure. might need device_id and msg_id data

/6/companionlauncher/launch_response

Unsure. Empty here, likley linked to above

/companionlauncher/registration


Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
elupuscommented, Jun 5, 2022

You can extract the xtv.apk package from an android tv and dissassemble it. You get most sourcecode back.

There is no endpoint for hdmi source sadly. Should be possible to get if one writes their own android app thou.

You can trigger a switch to hdmi source using an intent.

0reactions
Misterkecommented, Jul 6, 2022

Thanks @elupus and @eslavnov!

The adb solution was what I had so far - it is unfortunately also unreliable if you change the HDMI source via other interactions (that is, the HW[0-9] works fine if the input is changed via the remote, but does not if it is changed via HA’s media_player component).

But alas - if it is not available by default, I will make my own workarounds within HA 👍🏻 Thank you for your suggestions and time!

Has anyone meanwhile found a way to know what source the TV would be on? Seems pretty ridiculous that this basic functionality is hidden so far away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mark endpoints as private/hidden · Issue #433 - GitHub
The security is always exposed to the user, but the new property isn't (or is it?). The first is documenting the API, the...
Read more >
(Ab)using the REST API endpoints behind the new ExO cmdlets
Hey do you have any example on this? Currently i am using something like this: var authContext = new Microsoft.IdentityModel.Clients.
Read more >
Troubleshooting Hybrid Migration Endpoints in Classic and ...
In our previous blog post we covered an overview of what migration endpoints are, how to find them and what makes them tick....
Read more >
Salesforce Platform API Versions 7.0 through 20.0 Retirement
These legacy API versions were available until Summer '22 was released in your org, which is when these legacy versions were retired and...
Read more >
Code samples | Documenting APIs - Idratherbewriting.com
Code samples that show how to use the various endpoints to achieve ... Some research about how developers use documentation found that there ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found