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

15 second delay after powering off #189

Open
funtast opened this issue May 20, 2021 · 0 comments
Open

15 second delay after powering off #189

funtast opened this issue May 20, 2021 · 0 comments

Comments

@funtast
Copy link

funtast commented May 20, 2021

There is a problem in closing control websocket on ports 8001 and 8002 by TV itself which does not allow to monitor TV state (or or off)

But there is a solution:
On powering on TV with minimum delay opens any of following ports: 9110/9117/9119 (The last of this works in my case) and in powering off it closes it with also minimum delay.

So, if we want to monitor power state of TV we just need try to connect to this port with delay for 1 second. And when connection established wait for connection to be closed. On "connect" event we will understand, that tv is powered on and on "close" event we will know, that tv is powered off.

In this case we can decide what command send to tv to power it on or power it off.

Also this solution works even if tv is turning on from remote control (ir/bluetooth)

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