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

Shows _UNKNOWN_APP When using HDMI Source #113

Open
gregorymartin opened this issue Nov 1, 2020 · 7 comments
Open

Shows _UNKNOWN_APP When using HDMI Source #113

gregorymartin opened this issue Nov 1, 2020 · 7 comments

Comments

@gregorymartin
Copy link

When playing via an HDMI input the UI shows _UNKNOWN_APP instead of the HDMI input name or some other more useful display.

Screen Shot 2020-11-01 at 1 32 11 PM

@raman325
Copy link
Owner

raman325 commented Nov 2, 2020

Is your device actually on HDMI 1? The source should only show as an app when the current source is SMARTCAST or CAST

@raman325
Copy link
Owner

raman325 commented Nov 2, 2020

if you are willing to run pyvizio locally you can test what source input pyvizio is seeing. If it is indeed SMARTCAST or CAST, I'm not sure what can be done here because your TV is advertising the wrong source. You may want to try a hard reset of your device (unplug/replug) - maybe the API is hosed

@gregorymartin
Copy link
Author

Is your device actually on HDMI 1? The source should only show as an app when the current source is SMARTCAST or CAST

It is indeed on HDMI-1, specifically and Apple TV plugged into that input.

@gregorymartin
Copy link
Author

if you are willing to run pyvizio locally you can test what source input pyvizio is seeing. If it is indeed SMARTCAST or CAST, I'm not sure what can be done here because your TV is advertising the wrong source. You may want to try a hard reset of your device (unplug/replug) - maybe the API is hosed

I will give this a shot and see if I can debug further.

@gregorymartin
Copy link
Author

Ok, here is the output of two commands from pyvizio when input is set to HDMI-1 and therefore no app is currently running, the first is from get-current-input:

$ pyvizio --ip=<ip>:<port> --device_type=tv --auth=<code> get-current-input

INFO:pyvizio.cli:Current input: HDMI-1

This seems to accurately indicate that HDMI-1 is the current input selected.

When I run get-current-app, here is the result:

$ pyvizio --ip=<ip>:<port> --device_ype=tv --auth=<code> get-current-app

INFO:pyvizio.cli:Can't determine the name of the app, the currently running app's config is AppConfig({'APP_ID': 'hdmi1', 'NAME_SPACE': 8, 'MESSAGE': None})

This looks like an appropriate error because no app is running. My assumption is that HASS is not using this result properly and showing _UNKNOWN_APP, which while kind of true, isn't the optimal user experience.

@raman325
Copy link
Owner

raman325 commented Nov 3, 2020

thanks this is really helpful. Vizio has been making a bunch of changes to their API recently, and since this package has been built around reverse engineering, it has been a cat and mouse game. I may need some more info but this is really helpful for now, I will keep this open and reach out if I have any other questions

@gregorymartin
Copy link
Author

Happy to assist, let me know if you need anything else.

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

No branches or pull requests

2 participants