Problem with connecting to Samsung UN65KS8000

I installed websockets, but now in the HA log I get:

TypeError: init() missing 3 required positional arguments: ‘environ’, ‘socket’, and ‘rfile’

My configuration file looks like this:
    media_player:
      - platform: samsungtv
        host: 192.168.1.11
        port: 8001

Not quite sure what to do next. Can someone point me the right direction?

Sorry, found the solution - need to install websocket-client, not websocket.

Still don’t see many attributes related to samsung. Only this:

media_player.samsung_tv_remote	off	friendly_name: Samsung TV Remote
                                    supported_features: 17721

Is this model unsupported?

Turning on the TV will result in sluggish response, taking several minutes to update the “on” attribute. Turning “off” is just as bad, making this practically worthless.

Can someone shed some light why this module performs so poorly?

I have a UN65JU650DF and it works exactly the same as yours. I have no idea how to make it better. My guess is that the samsung python library does not support the same commands issued by the library.

1 Like

I guess we’ll have to wait until one of the developers upgrades hisTV! :slight_smile:

I believe I know what the issue is now. On my android phone, I downloaded Samsung Smart View app to see if it would connect. The app triggered a four digit number as a verification to allow control. I remember this with the directv rvu and now realize that is to control remote access. I believe my tv requires this to allow control. Maybe this is the same for yours.

I will continue to look into it further to see if I can add control for home assistant. I am not skilled at python so this could take some time. Maybe someone well versed can add in an authenticate script to help before I am able to.

I have UE48H6400 but I do not get it to work … have any of your ideas?