You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: