samsungctl icon indicating copy to clipboard operation
samsungctl copied to clipboard

Delay when using command line

Open timdonovanuk opened this issue 8 years ago • 1 comments

Hi - I've noticed using this via Home Assistant commands sent to the TV are almost instantaneous but using it from the command line there can be significant delays up to 5 seconds. Is there a difference in the versions bundled with HA vs running this via python3?

Thanks.

timdonovanuk avatar Aug 09 '17 14:08 timdonovanuk

What TV model is this? Please try if you can reproduce the instantaneous behaviour with samsungctl library yourself.

One possible cause is that, with your TV model, it takes 5 seconds to establish the connection but after that it is fast. Using samsungctl as a library (probably what Home Assistant is doing) you can keep the connection alive. However, the samsungctl command cannot really reuse connections. If this is really the case you can make a better command line client that uses some kind of daemon to share connections.

Ape avatar Nov 02 '17 06:11 Ape