sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
39 stars 24 forks source link

Samsung UA32J5500AW #59

Open Jens-Wymeersch opened 3 years ago

Jens-Wymeersch commented 3 years ago

Dear all,

I've successfully found the token and sessionID. The TV recognises the component and i have allowed it access to the tv. The outcome is however the same, I can't operate the TV. Simple on/off aren't possible.

EPMatt commented 3 years ago

Hi @Jens-Wymeersch, Other people and I are dealing with these connection issues here: #62 #21. I'm trying to retrieve the token from a UA32J5200 Smart TV.

How did you manage to get the token? What command and port did you use? It would be enormously helpful for us, since we're trying to retrieve a token from J Series TVs like yours.

Thank you very much for your help!

Jens-Wymeersch commented 3 years ago

@EPMatt before running the standard commands python3 get_token.py --ip XXX.XXX.XXX.XXX --port 8080 Described in : https://github.com/sermayoral/ha-samsungtv-encrypted/issues/39#issuecomment-640073107

I used the following commands : python3 -m pip install pycrypto python3 -m pip install websocket python3 -m pip install websocket-client

PS it's again been a few weeks - so not totally sure any more and unfortunately I didn't document it.

EPMatt commented 3 years ago

Hi @Jens-Wymeersch, thank you so much for your feedback. Did you tweak any specific setting on your TV for enabling remote control? Can you find any setting related to remote control in the configuration menus of your device?

Jens-Wymeersch commented 3 years ago

Hi @EPMatt I found the procedure that I used in the following link https://github.com/home-assistant/core/issues/43094#issuecomment-729035959

On the TV, I didn't do anything. Not that much you can do anyhow.... Unfortunately ! Outcome is that I found the token and session ID but can't do anything with it. So please let me know if you have more luck !

Jens-Wymeersch commented 3 years ago

@EPMatt I've got to the SamsungTV again. I understand now that I won't be able to use the CC for turning on the TV just because it doesn't have WOL capabilities. That said, for the rest it looks like I'm able to control it. Just to be clear in order to find the token, I used an Ubuntu 20 VM (upgrade/update) and run the commands


pip install pycryptodome
python -m Crypto.SelfTest
pip install requests
pip install websocket_client
Run get_token.py --ip XXX.XXX.XXX.XXX --port 8080 in the directory of the RepO where it was located```

For turning the TV on, I'm using Broadlink. I'm planning to make an automation which links the power on request in the media player to the switch I created with Broadlink. In this way, I'm able to have full control over the TV.
EPMatt commented 3 years ago

Hi @Jens-Wymeersch,

sorry for my late response. Thank you very much for reporting your progress here! While we were trying to make our devices work, your hints about the procedure you used to retrieve the token pointed us in the right direction. Unfortunately, I didn't manage to retrieve the token since my TV doesn't support the remote control feature.

By the way, I'm happy you can control your TV. :) For the WOL feature, I don't know if it can be helpful, but a user in the other issue suggested to check https://www.samygo.tv/, a community who works on tweaking Samsung TVs. You could take a look there to see if you can enable missing features by editing the TV's firmware (but be warned that really bad things could happen, and the device could be bricked this way).

Thanks again for your time! Wish you happy holidays. :)

Jens-Wymeersch commented 3 years ago

@EPMatt The last results are the following

  1. The CC is very unstable. I need to do additional tests. Because at some point it only allows to change the volume.
  2. WOL won't be possible as this means that the TV itself needs to be able to stay on (setting within the TV - which isn't the case)
  3. So basically, I'm planning to use only the state of the standard component and the rest use Broadlink. In the end the result will be the same...
Jens-Wymeersch commented 3 years ago

@sermayoral Sergio, the only part of the CC that works for me is sliding the volume and the status. The rest isn't working for me. Can you please help me figure this out ?