roberodin / ha-samsungtv-custom

📺 HomeAssistant - SamsungTV Custom Component
Apache License 2.0
123 stars 176 forks source link

tv-token.txt not updated #15

Open KentEkl opened 4 years ago

KentEkl commented 4 years ago

I have to confirm the connection prompt every time I interact with my Qled TV. When I check the tv-token.txt it’s empty. I found that https://github.com/xchwarze has a fix for the token build and read so maybe it’s the same problem.

SeLLeRoNe commented 4 years ago

I am having the same issue, the token file is not updated even tho the permissions looks fine. I did try the integration from xchwarze and it does work perfectly.

Would be nice instead of having two integrations (where only this one is available in HACS) the two could be merged to have a working one :)

Thanks

SeLLeRoNe commented 4 years ago

I found the solution for the token, it was on a closed ticket. You need to set timeout: 30 on the tv media_player entity. This will allow enough time to "sync" the token.

With that it works, but the list of source it is limited to HDMI1 and TV while the TV have many and with the other custom components it "grabs" those from the TV and show them in the dropdown.

Skeletorjus commented 4 years ago

Would be nice instead of having two integrations (where only this one is available in HACS) the two could be merged to have a working one :)

You can add the other one as a custom repo in HACS.

SeLLeRoNe commented 4 years ago

Thanks @Skeletorjus :) I know that, but since this version is already there and I don't see the reason to have multiple integration that have the same end-goal, I thought it might be worth to make a single one that works on every scenario :)

Now that the token problem is gone I found out that if I remove the timeout it stop working again. Also, it goes "out of sync" if I turn on the TV from HA and then I turn it off from the remote, on HA remains like if it's on :)