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

Reliable way to determine the TV's power status (on/off)? #12

Closed
twistedpixel opened this issue Nov 5, 2017 · 2 comments
Closed

Reliable way to determine the TV's power status (on/off)? #12

twistedpixel opened this issue Nov 5, 2017 · 2 comments

Comments

@twistedpixel
Copy link

Just wondering if you know of a good way to check this? Might be a good feature to add.

I've tried various endpoints through the websocket but it responds happily to them even when the TV is off. I also tried sending ICMP packets to see if it would reject them when off but no luck.

Any ideas?

@hobbyquaker
Copy link
Owner

Just add event handlers to the connect and disconnect event. Disconnect comes nearly instant, connect takes 10-20 seconds, the ethernet port and the websocket listener take some time to start (you see that when you try to go to the webos menu immediatly after switching on the tv, then it tells you you have to wait until the "smart services" are started)

@twistedpixel
Copy link
Author

Interesting, I'll give it a shot; thanks for the tips!

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

2 participants