Closed sacredx72 closed 4 years ago
If you need to conduct any tests, then I will perform any action. Your custom component is the only one that was able to request an authorization PIN from the TV =)
The token and session number were received without problems through the execution request get_token.py
bash-5.0# python3 get_token.py --ip 192.168.169.9 --port 8080 ws://192.168.169.9:8000/socket.io/1/websocket/7hwVABdjBnbxQhAWRtVH Current state: stopped Pin NOT on TV Please enter pin from tv: 2646 Got pin: '2646' AES key: a133e693a5e73c64a5c82f9a26f03d2d AES encrypted: 16*******6b7611ef4cdedd6645534ced4803208cc66ea AES swapped: 79d90******422656f45f889478ccb3e53d1e49614357972a30d60dbc292 data buffer: 000000063*********C292 hash: feca1daaf7fdafe1b814fc2bd497096e27fd8eee secondStepResponse: {"auth_data":"{\"auth_type\":\"SPC\",\"request_id\":\"0\",\"GeneratorClientHello\":\"01010**********2D1B58A2BDF800000000000\"}"} thirdLen: 138 hello: 01010********d308230e721542d1b58a2bdf800000000000 dest: 0000000636**********27fd8eee userId: 654321 pEncWBGx: b25809d*********40add528822f828f1c170ba72 pEncGx: 1fff9bc859********a920a982b4c0d9262437ef pGx: 1b9d430*********38b375f83647a65a0fe59381aa4e6e04b5a38074a0d26c secret: 9be7***********17cda8492bfcee5acd38e92c39 hash2: 0461e27**********8a2bdf80 secret2: 363534*********5acd38e92c39 hash3: 0461e277169*******21542d1b58a2bdf80 Pin OK :) dest_hash: c6098041ec*******07b2a6ec187f8cbf5 SKPrime: df142da193b********9046f652a21ff98d SKPrimeHash: abdac4dd21********4c70c48d476ca149 ctx: 1e66f533***cf950286123 Pin accepted :) sessionId: 3 SessionID: 3 Authorization successfull :)
Config Home Assistant 0.108.0b0
- platform: samsungtv_encrypted name: samsung_room host: 192.168.169.9 token: 2646 sessionid: 3 port: 8080
Hi @sacredx72, I can see you used your pin as a token, which is wrong, as the README explain, your token should be the "ctx" value you get from the get_token.py. so, your token in the case showed above is: 1e66f533cf950286123
dest_hash: c6098041ec07b2a6ec187f8cbf5 SKPrime: df142da193b9046f652a21ff98d SKPrimeHash: abdac4dd214c70c48d476ca149 ctx: 1e66f533cf950286123 Pin accepted :)
sessionId: 3 SessionID: 3 Authorization successfull :)
So, your config file in homeassistant should look like this:
Thank you so much ! It all worked! I've tried so many different custom components and only yours changes the sound!
@sermayoral , Installed the component version master and 2.2, but both versions in the error log: When you try to form a team entity_id: media_player.samsung_room media_content_type: send_key media_content_id: KEY_CHDOWN
When you try to change the sound with the slider in the widget:
The token and session number were received without problems through the execution request get_token.py
Config Home Assistant 0.108.0b0
Can someone tell me what the problem is, in HA only the On / Off status is displayed. The sound level is not displayed, the command does not accept P.s TV response at http://192.168.169.9:8001/api/v2/