-
Notifications
You must be signed in to change notification settings - Fork 51
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
how to view current power status info #32
Comments
I am not aware of any such API exposed by the TV. If there's one, it shouldn't be difficult for this library to provide one that is consistent with others. That being said, I have used the status of discovery to deduce whether or not the TV is powered on. (Assuming the TV is listening when it is powered on) |
Yep exactly what @supersaiyanmode said. You can put the .connect() in a try statement. and do something if you stumble upon an exception. But really depends on what you're trying to achieve. |
Make a "ping" on the IP before using this python library. |
Just like @Gustry said you can just ping it.
|
I'm trying find a way to verify whether the TV is turned on or off. Is there an function you can implement to return the current power status?
The text was updated successfully, but these errors were encountered: