-
Notifications
You must be signed in to change notification settings - Fork 7
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
future feature annotations is not defined
when i try to start the server
#3
Comments
https://stackoverflow.com/questions/52889746/cant-import-annotations-from-future |
alright, well i decided just to use macports to install and select python/pip 3.10. i set both python/pip and python3/pip3 to those installs.
then i ran
also, i don't know what
now i get this error when i try to start the server:
|
line 76 in
i turned the tv on and used a browser to |
success! set the the
and the server says:
|
it's line 94 in
unfortunately it doesn't actually change the volume on the tv. i got the same results with https://github.com/ecs87/Simple-LG-TV-Websocket-HTML-interface. volume_up and volume_down do actually change the volume both in that project and this one. any idea why set_volume wouldn't be working? that one command is the whole reason i'm interested in doing this. |
I will take a look. Which model / year do you have? It changed volume last time I've checked, which was quite a while ago to be fair. |
Fixed logger issue and volume. Let me know if it works for you. |
looking at your commit it looks like the two fixes from above, but doesn't address the in case you or anyone else is interested, the reason i looked in to this was to make a phone app remote that can make fast large volume changes, rather than having to push |
The latest update should fix volume. The issue was that volume value was sent as string and TV wanted it as s number. Not sure if they've changed it in latest firmware or just changed validation. I don't recall where I've gotten protocol. Likely combination if GitHub projects. One thing to keep in mind that on the later models, LG changed protocol completely. I don't have the later model so can't code it. |
you see i already tried that in #3 (comment) right? as i described, the tv responds as if the |
Yes, it works for me as-is: 2022-05-06 10:13:23,806 DEBUG Sending {'type': 'request', 'id': '2', 'payload': {'volume': 22}, 'uri': 'ssap://audio/setVolume'} Have you tried different values? 10 or 20 instead of 50? The only thing I can think of is that your TV model is slightly different than mine. I've seen the differences when it comes to WOL/power on. You'd have to figure out by yourself, unfortunately. Perhaps just write a small script that sends command directly via websocket. It's not that complicated. If you figure out, let me know and I'll patch my app. |
i'm on mac osx 11.6.5
in
config.yaml
i setenable: true
for the tv. i'm trying to control an lg c1. i haven't figured out the TV's MAC yet.The text was updated successfully, but these errors were encountered: