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 unavailable inputs. #14

Open
mike-s123 opened this issue Nov 30, 2018 · 0 comments
Open

Shows unavailable inputs. #14

mike-s123 opened this issue Nov 30, 2018 · 0 comments

Comments

@mike-s123
Copy link

Inputs can be hidden from the input list through the TVs menus. Trying to change current_input to a hidden input won't work.

GET /menu_native/dynamic/tv_settings/devices/name_input includes hidden inputs. It would be better to GET /menu_native/dynamic/tv_settings/devices, as that only lists available inputs. The returned CUSTOM_NAME is what should be shown.

Also, my HDMI-1 input shows up in HASS as Source "Blu-ray", but in the pop-up for changing inputs it's "HDMI-1". If I change it to something else, then change it back, it's then shown as "HDMI-1". I'm not sure where the "Blu-ray" comes from, I didn't see it in a quick look at your code. /menu_native/dynamic/tv_settings/devices/name_input returns:

    {
        "CNAME": "hdmi1",
        "ENABLED": "FALSE",
        "HASHVAL": 1107326089,
        "NAME": "HDMI-1",
        "TYPE": "T_DEVICE_V1",
        "VALUE": {
            "METADATA": "",
            "NAME": "Denny"
        }

/menu_native/dynamic/tv_settings/devices returns

            {
                "CNAME": "hdmi1",
                "CUSTOM_NAME": "Denny",
                "INPUT_TYPE": 0,
                "METADATA": "",
                "NAME": "HDMI-1",
                "SELECTED": true,
                "TYPE": "T_INPUT_V2"
            },

current_input returns "VALUE": "HDMI-1"

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

1 participant