-
Notifications
You must be signed in to change notification settings - Fork 61
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
new apps and source selection #223
Comments
python-androidtv/androidtv/basetv/basetv_async.py Lines 420 to 429 in d58ed18
|
I really like how you've given the user flexibility to define their own detection rules, app names, and send events. This approach could also be used to self-service define launch intents. |
Regarding the second point, yes, adding a "start intent" field to the
|
Thank you for taking the time to reply. Great points. Perhaps if you have config flow in your future there could be some more UX friendly ways to provide it while offering flexibility. Also thanks for the , fix on the pr and for merging! |
I think most people make Lovelace remotes/buttons for their Android TV device so that they can launch, say, Netflix by pushing a button that calls the appropriate service ( I don't plan to add config flow to the Android TV integration, for several reasons:
That said, it would be great if someone wants to implement config flow for the integration. But I hope that they would support YAML, too! |
I think I'm having an issue related to this. I logged the commands to switch to the HDMI inputs on my TV but currently there seems to be no way to add them to the source list where they'd obviously belong. |
The sources list in Home Assistant only includes the running apps. |
You got my point. HDMI or other inputs should be sources too. |
This package has all the necessary functionality to support that in the Home Assistant integration, at least as I envision that would be implemented. The main thing that the Home Assistant integration needs is config flow. There was a pull request that allowed for listing all apps in the sources list instead of the running apps, but that was rejected because adding YAML configuration entries is no longer allowed. Allowing users to include HDMI inputs in the sources menu is basically the same as the idea discussed above of allowing users to specify the command used to launch an app in the One thing that would need to be decided upon is, if the HDMI input is "HDMI-1" and the current app is, say, Netflix, what should be shown as the source: Netflix or HDMI-1? You could probably achieve a lot of this already using a universal media player, which you said you're already doing in a separate issue: #216 |
I think that case can never happen because HDMI input is an app on its own. In my case it is com.mediatek.wwtv.tvcenter
Not really. With a lot of fiddling you could maybe manage to get a proper sources list but the select source service call can't be implemented with ump. |
In that case, it should show up as the current app.
I think the documentation is incomplete. |
It does but it requires a custom command with the desired HDMI input number.
I'd want to keep the app sources and add the HDMI inputs as additional sources. But then there's no way to either call set source or adb command (for HDMI). It can only be one or the other. |
I think this will work... Make commands:
select_source:
service: python_script.select_source
data:
source: '{{ source }}'
attributes:
source_list: "input_select.media_player_sources|options" Make a |
Too much fiddling and it'd also need another template to display current source (app or HDMI). Guess I'd rather modify the component as to my needs but for now I've just made 3 scripts for HDMI 1-3. Thanks for your support though |
Two questions for you.
I have a branch ready to go that adds app entries for youtube tv and the new google tv launcher. Should I do the the pull request to dev or master?
Regarding https://community.home-assistant.io/t/firetv-app-not-opening-when-selecting-source/160091/2 Would it make sense to add this additional information to the constants? I'm digging into to see how HA launches the apps.
The text was updated successfully, but these errors were encountered: