-
Notifications
You must be signed in to change notification settings - Fork 33
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
Changing input to a source no longer functions #36
Comments
One additional note, this still works should you wish to pop open the list of inputs and cycle through them:
But that is not really pleasing, one should be able to set the input directly. |
I think I know the issue. First I got the devices information:
This yields the following:
From that, I instead of sending "HDMI-1", I changed to "hdmi1":
And now:
This would imply that you need to pass in the CNAME of the input now and not Items[x].Name. HDMI-1 = hdmi1 |
On both sets, can you verify the CNAME works? On my E43D2 with the old smartcast, CNAME does nothing. So I think there'd have to be an option added in APIs and apps to maintain support for all models, not exactly elegant. 😬 |
Yes you are exactly correct. As stated I have one older TV that still accepts "HDMI-1" however three other TVs with updated firmware no longer work and only accepts "hdmi1". Not sure what to do here, but I would assume possibly a firmware update could break the older TV although it has not happened yet. |
I can check "hdmi1" on the older set if that helps via curl, I will post results in a bit |
Checked and yes! "hdmi1" works on my older TV.
Results:
|
Okay, so probably on all the ones with the smartcast UI You'd want to use CNAME. Hm. I'll do some more testing with my old chomecast version set, see if I can make it work by cname. That would be a lot more elegant than having to differentiate between versions. |
For me, I have to get the hashval of the current input, and pass that to the command to change it, or else I get a hashval error. So I have to make two API calls like so, but at least I can switch inputs now.
|
can confirm switching to cname works. i went through this a few weeks ago on a vizio m50q7-j01 after a firmware update broke my old scripts and made the same discovery. |
Since the official app barely works anymore on my older set I'm guessing there's no backwards compatible route other than having to add a switch to the libraries and implementations for when using a older set. Thats unfortunate. Guess the docs will need updated. |
Very detailed information also posted here:
home-assistant/core#83689
IN general, changing input to a physical input (HDMI-1 ... HDMI-#, COMP, TV or CAST) no longer works after a Vizio update to later model TVs. Changing input to "apps" like Netflix, HBOMax, etc. still functions.
Test to show this:
curl -k -H "Content-Type: application/json" -H "AUTH: xxxxxxxxx" -X GET https://192.168.2.20:7345/menu_native/dynamic/tv_settings/devices/current_input
{"STATUS":{"RESULT":"SUCCESS","DETAIL":"Success"},"URI":"/menu_native/dynamic/tv_settings/devices/current_input","PARAMETERS":{"HASHONLY":"FALSE","FLAT":"TRUE","HELPTEXT":"FALSE"},"ITEMS":[{"CNAME":"current_input","TYPE":"T_STRING_V1","NAME":"Current Input","VALUE":"HDMI-1","ENABLED":"FALSE","HIDDEN":"TRUE","HASHVAL":2129379411}],"HASHLIST":[4012391352,3366813733]}
curl -k -H "Content-Type: application/json" -H "AUTH: xxxxxxxx" -X PUT -d "{\"REQUEST\": \"MODIFY\",\"VALUE\": \"CAST\",\"HASHVAL\": 2129379411}" https://192.168.2.20:7345/menu_native/dynamic/tv_settings/devices/current_input
{"STATUS":{"RESULT":"FAILURE","DETAIL":"Failure"},"URI":"/menu_native/dynamic/tv_settings/devices/current_input","PARAMETERS":{"REQUEST":"MODIFY","VALUE":"CAST","HASHVAL":2129379411}}
They all result in a nothing message that is just "Failure" with no information. As you can see, I called this to switch the input to CAST from the current input Hashval 2129379411 (HDMI-1). This applies to switching anything that is a physical input or CAST, not to "apps" which seems to function normally.
I will note that this worked in the past up until my Vizio's all got an update. I do have one older model TV that was not updated and it works on this TV. The whole GUI is different in the later models so I am unsure what information to provide, but here are some details:
Not working:
Model V505-J09
Firmware 1.520.24.2-2
Updated December 14,2022
Working:
Model M65-D0
Version 11.0.120.1-1
Cast Version 1.50.243780
Don't know where last update is, but checking updates says the TV is up to date.
The text was updated successfully, but these errors were encountered: