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

help for tv token #18

Closed skky88 closed 4 years ago

skky88 commented 4 years ago

Good day, someone can help me to launch get_token.py, I have try to launch it on windows CMD, without success. I already install on my windows Python platform the follow script: Crypto Websockets AES

But i still receive from windws CMD the follow error:

C:\Users\skky8\Desktop\samsungtv_encrypted>py get_token.py Traceback (most recent call last): File "get_token.py", line 3, in from PySmartCrypto.pysmartcrypto import PySmartCrypto File "C:\Users\skky8\Desktop\samsungtv_encrypted\PySmartCrypto\pysmartcrypto.py", line 2, in from . import crypto File "C:\Users\skky8\Desktop\samsungtv_encrypted\PySmartCrypto\crypto.py", line 2, in from Crypto.Cipher import AES ModuleNotFoundError: No module named 'Crypto'

Like that crypto isn't correct installed, someone can help me?

sermayoral commented 4 years ago

@skky88 you must install pycrypto.

pip3 install pycrypto
skky88 commented 4 years ago

Hi @sermayoral , I try your package but I still receive error in windows CMD, I resolve the problem by running direct the Get_token.py inside my HASSIO docker terminal. I confirm that your extension work perfectly with the HU7500 TV, I will try also on a H4500 TV this evening and I will let you know

sermayoral commented 4 years ago

Thanks. Let me know please :-)

sermayoral commented 4 years ago

@skky88 have you tried it on a H4500? Is it working?

Please, could you expline your solution in #12 ? Thanks!!

skky88 commented 4 years ago

Hi @sermayoral, sorry for my late reply, I don't have enough time for testing :-). Anyway I just config my H4500 TV with your script and I confirm that work perfectly like HU7500, off course we still have problem for torn_on command that not work, but this a problem of this kind of TV (when they are off they switch off them WIFI connection) so no command can work for switch on them.

sermayoral commented 4 years ago

Thanks @skky88.

Unfortunatelly turning on doesn't work on encrypted models like our TVs. The only way to do that is using the custom component HDMI version