Open jnnks opened 4 years ago
The problem is still present as of today. While inspecting the code, I realized that the offending recursion to the open() method can be prevented by using configuration setting paired=True. This workaround works even if the TV is not paired yet, at least with my TV model. Hope it saves somebody some nerves.
Yeah, the problem is quite annoying. Especially because it's so hard to get through various indirections in the code.
Like that power
attribute actually means whether the websocket connection is made (so, has very little to do with the actual power state).
And setting power
sends a WOL packet and then just sleeps and then recurses to open
.
The code is stuck in a loop to wait for the TV to power on, but it's already running. The property change never occurrs.
The event loop does not seem to recognize the Tvs response.
my config:
The timeout settings does not seem to make a difference, as does method encrypted/websocket.
log: