sermayoral / ha-samsungtv-encrypted

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

Unable to get session_id and/or ClientAckMsg!!! message #14

Closed mmatesic01 closed 4 years ago

mmatesic01 commented 4 years ago

So I am able to start the get_token.py and I am asked for PIN, which is shown on my TV screen (Samsung UE43J5550).

Result is that I get is : dest_hash: got it SKPrime: got it SKPrimeHash: got it ctx: got it

But, I do not get the session ID. I get the message: Unable to get session_id and/or ClientAckMsg!!!

sermayoral commented 4 years ago

Can you try using 1 as sessionid?

In my TV sessionid is always 1

mmatesic01 commented 4 years ago

Hi, I did that and I can see it as "Samsung TV Remote" entity. Can I use this also for casting media to Samsung (J series) from HA?

mmatesic01 commented 4 years ago

I do see this when TV is on, but pressing/sliding controls do not make any changes on my TV. [cid:image003.png@01D6074B.024D72A0] ![Uploading image.png…]()

Od: Sergio Mayoral Martínezmailto:notifications@github.com Poslano: torek, 31. marec 2020 10:19 Za: sermayoral/ha-samsungtv-encryptedmailto:ha-samsungtv-encrypted@noreply.github.com Kp: mmatesic01mailto:mmatesic@live.com; Authormailto:author@noreply.github.com Zadeva: Re: [sermayoral/ha-samsungtv-encrypted] Unable to get session_id and/or ClientAckMsg!!! message (#14)

Can you try using 1 as sessionid?

In my TV sessionid is always 1

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/sermayoral/ha-samsungtv-encrypted/issues/14#issuecomment-606473882, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIZLSD7BPA5LAFLZ7XGQ2BDRKGRRVANCNFSM4LXIQZ4Q.

mmatesic01 commented 4 years ago

Filter atributes of entity "media_player.samsung_tv_remote" are:

volume_level: 0 is_volume_muted: false friendly_name: Samsung TV Remote supported_features: 20285 device_class: tv

It looks like it does not read the true data from TV.

mmatesic01 commented 4 years ago

Does all this have to do with session ID?

This is in my debug log: 2020-03-31 12:11:54 INFO (SyncWorker_3) [custom_components.samsungtv_encrypted.media_player] Samsung TV 192.168.X.XXX:XXXX added as 'Samsung TV Remote' 2020-03-31 12:14:38 INFO (SyncWorker_7) [custom_components.samsungtv_encrypted.media_player] TV is powering off, not sending command: KEY 2020-03-31 12:14:49 INFO (SyncWorker_8) [custom_components.samsungtv_encrypted.media_player] TV is powering off, not sending command: KEY

Entity setting is this: This entity does not have a unique ID, therefore its settings cannot be managed from the UI.

sermayoral commented 4 years ago

Hi, I did that and I can see it as "Samsung TV Remote" entity. Can I use this also for casting media to Samsung (J series) from HA?

I don't think so...

sermayoral commented 4 years ago

I do see this when TV is on, but pressing/sliding controls do not make any changes on my TV. [cid:image003.png@01D6074B.024D72A0] ![Uploading image.png…]() Od: Sergio Mayoral Martínezmailto:notifications@github.com Poslano: torek, 31. marec 2020 10:19 Za: sermayoral/ha-samsungtv-encryptedmailto:ha-samsungtv-encrypted@noreply.github.com Kp: mmatesic01mailto:mmatesic@live.com; Authormailto:author@noreply.github.com Zadeva: Re: [sermayoral/ha-samsungtv-encrypted] Unable to get session_id and/or ClientAckMsg!!! message (#14) Can you try using 1 as sessionid? In my TV sessionid is always 1 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#14 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIZLSD7BPA5LAFLZ7XGQ2BDRKGRRVANCNFSM4LXIQZ4Q.

Buttons should work. If it does not work it's because of token or sessionid are not correct.

Volume slider, volume status and source select depends of uPNP. In some models it is not working properly. Maybe your model is one of them. In that case we are working on it in #10

mmatesic01 commented 4 years ago

Well, I tried again with the get_token.py and this time I successfully got token and session , it is 1. I have written in the new values in HA. Buttons do work. Else, like you said does not on this model.

Keep up the good work!