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

CLI Fails on key-press up/get-remote-key-list #131

Open
jacobohpea opened this issue Jun 21, 2022 · 1 comment
Open

CLI Fails on key-press up/get-remote-key-list #131

jacobohpea opened this issue Jun 21, 2022 · 1 comment

Comments

@jacobohpea
Copy link

Installed via pip3 today June 21 2022
Running Program on MacOS with Python 3.8.9
Setup PATH vars for tv/ip/port and did auth flow. Can power on/toggle and list apps

pyvizio get-remote-keys-list

returns

sys:1: RuntimeWarning: coroutine 'get_remote_keys_list' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

pyvizio key-press right

returns

INFO:pyvizio.cli:Emulating pressing of 'right' key
ERROR:pyvizio:Failed to execute command: unexpected status BLOCKED: Operation blocked
INFO:pyvizio.cli:ERROR

Oddly, key-press down and key-press left/back/ok all seem to work fine.

Let me know if you need any additional logging information or tv information.

@jacobohpea
Copy link
Author

jacobohpea commented Jun 22, 2022

Opened a terminal session and ran the following commands:
Pulled curl command from Exiva's Vizio API Doc's Repo and protocol file

$ curl -k -H "Content-Type: application/json" -H "AUTH: $VIZIO_AUTH" -X PUT -d '{"KEYLIST": [{"CODESET": 3,"CODE": 8,"ACTION":"KEYPRESS"}]}' https://$VIZIO_IP/key_command/
{"STATUS": {"RESULT": "SUCCESS", "DETAIL": "Success"}, "URI": "/key_command/"}

$ pyvizio key-press up                                                                                                                             [20:29:05]
INFO:pyvizio.cli:Emulating pressing of 'up' key
ERROR:pyvizio:Failed to execute command: unexpected status BLOCKED: Operation blocked
INFO:pyvizio.cli:ERROR

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