raman325 / pyvizio

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

CLI - TV volume increase amount not working correctly #129

Open DavBebawy opened 2 years ago

DavBebawy commented 2 years ago

I have just tested the CLI and all functionality works great except when I set volume up (any int) the TV increases by 2 only no matter what.

raman325 commented 2 years ago

Did you log a step when you called the action? To be completely frank the Vizio API is pretty poorly designed. This library does the best it can but it's undocumented and reverse engineered and we knew it wasn't 100% right.

raman325 commented 2 years ago

I just re-read this and noticed you mentioned any int. Does that mean you were trying different step values and they all had the same behavior?

Under the hood we can't actually set the volume, we just send multiple volume up calls. I wonder if we need to introduce some sort of delay to make it more likely for each call to succeed

DavBebawy commented 2 years ago

Yeah I have been trying to figure out the issue or how to fix it but unfortunately my python skills are not that good. What I saw when using Smartest iOS app that it starts sending 1 volume up/down at time before switching to changing the volume by 5 at a time. Don't know if this info is helpful.