raman325 / pyvizio

Python client for Vizio SmartCast
MIT License
105 stars 29 forks source link

Unable to change picture settings on one TV, but other settings work #117

Open Tediore opened 3 years ago

Tediore commented 3 years ago

I've encountered a strange issue involving changing only picture settings on one model (D32f-F1 from 2018). I am able to change settings in other categories without issues. I am also able to successfully change picture settings on a different model (E55-E2 from 2017).

When I try to get all picture settings from this TV, I receive this error:

matt@debian-server:~$ pyvizio --ip=10.0.2.47:7345 --device_type=tv --auth=deadbeef get-all-settings picture
ERROR:pyvizio:Failed to execute command: Failed to parse response: <StreamReader eof>
ERROR:pyvizio.cli:Couldn't get list of settings for picture setting type

I receive the same when trying to change a picture setting that works on the other TV.

Raw output from the picture settings endpoint on both TVs appears to be the same except for the minimum and maximum value for tint:

TV with issue:

matt@debian-server:~$ curl -k -H "Content-Type: application/json" -H "AUTH: DEADBEEF" -X GET https://10.0.2.47:7345/menu_native/static/tv_settings/picture
{"STATUS": {"RESULT": "SUCCESS", "DETAIL": "Success"}, "HASHVAL": 1234567890, "GROUP": "G_PICTURE", "NAME": "Picture", "PARAMETERS": {"FLAT": "TRUE", "HELPTEXT": "FALSE", "HASHONLY": "FALSE"}, "ITEMS": [{"CNAME": "picture_mode", "TYPE": "T_LIST_X_V1", "NAME": "Picture Mode"}, {"TYPE": "T_LIST_V1", "CNAME": "auto_brightness_control", "GROUP": "G_PICTURE", "NAME": "Auto Brightness Control", "ELEMENTS": ["Off", "Low", "Medium", "High"]}, {"GROUP": "G_PICTURE", "NAME": "Backlight", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "backlight", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"GROUP": "G_PICTURE", "NAME": "Brightness", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "brightness", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"GROUP": "G_PICTURE", "NAME": "Contrast", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "contrast", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"GROUP": "G_PICTURE", "NAME": "Color", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "color", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"CNAME": "tint", "MINIMUM": -50, "GROUP": "G_PICTURE", "NAME": "Tint", "INCREMENT": 1, "INCMARKER": "Green", "DECMARKER": "Red", "TYPE": "T_VALUE_ABS_V1", "MAXIMUM": 50, "CENTER": 0}, {"GROUP": "G_PICTURE", "NAME": "Sharpness", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "sharpness", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"TYPE": "T_MENU_V1", "CNAME": "more_picture", "GROUP": "G_PICTURE", "NAME": "More Picture"}, {"TYPE": "T_MENU_V1", "CNAME": "picture_mode_edit", "GROUP": "G_PICTURE_MODE_EDIT", "NAME": "Picture Mode Edit"}, {"TYPE": "T_MENU_V1", "CNAME": "color_calibration", "GROUP": "G_COLOR_CALIBRATION", "NAME": "Color Calibration"}], "URI": "/menu_native/static/tv_settings/picture", "CNAME": "picture", "TYPE": "T_MENU_V1"}

TV without issue:

matt@debian-server:~$ curl -k -H "Content-Type: application/json" -H "AUTH: DEADBEEF" -X GET https://10.0.2.46:7345/menu_native/static/tv_settings/picture
{"STATUS": {"RESULT": "SUCCESS", "DETAIL": "Success"}, "HASHVAL": 1234567890, "GROUP": "G_PICTURE", "NAME": "Picture", "PARAMETERS": {"FLAT": "TRUE", "HELPTEXT": "FALSE", "HASHONLY": "FALSE"}, "ITEMS": [{"CNAME": "picture_mode", "TYPE": "T_LIST_X_V1", "NAME": "Picture Mode"}, {"TYPE": "T_LIST_V1", "CNAME": "auto_brightness_control", "GROUP": "G_PICTURE", "NAME": "Auto Brightness Control", "ELEMENTS": ["Off", "Low", "Medium", "High"]}, {"GROUP": "G_PICTURE", "NAME": "Backlight", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "backlight", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"GROUP": "G_PICTURE", "NAME": "Brightness", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "brightness", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"GROUP": "G_PICTURE", "NAME": "Contrast", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "contrast", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"GROUP": "G_PICTURE", "NAME": "Color", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "color", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"CNAME": "tint", "MINIMUM": -32, "GROUP": "G_PICTURE", "NAME": "Tint", "INCREMENT": 1, "INCMARKER": "Green", "DECMARKER": "Red", "TYPE": "T_VALUE_ABS_V1", "MAXIMUM": 32, "CENTER": 0}, {"GROUP": "G_PICTURE", "NAME": "Sharpness", "MAXIMUM": 100, "MINIMUM": 0, "CNAME": "sharpness", "INCREMENT": 1, "TYPE": "T_VALUE_V1"}, {"TYPE": "T_MENU_V1", "CNAME": "more_picture", "GROUP": "G_PICTURE", "NAME": "More Picture"}, {"TYPE": "T_MENU_V1", "CNAME": "picture_mode_edit", "GROUP": "G_PICTURE_MODE_EDIT", "NAME": "Picture Mode Edit"}, {"TYPE": "T_MENU_V1", "CNAME": "color_calibration", "GROUP": "G_COLOR_CALIBRATION", "NAME": "Color Calibration"}], "URI": "/menu_native/static/tv_settings/picture", "CNAME": "picture", "TYPE": "T_MENU_V1"}

Please let me know what else I can provide.

raman325 commented 3 years ago

@Tediore sorry for the delay in looking at this, lost track of it. Which picture setting are you trying to change? Do you run into the same problem regardless?

Tediore commented 3 years ago

No problem at all! I'm unable to change any picture setting. The other settings categories work as expected.