Aymkdn / assistant-freebox-cloud

Assistant Freebox in the Cloud
74 stars 14 forks source link

How to save the auth token to avoid constantly pairing? #142

Closed proappsteam closed 5 months ago

proappsteam commented 5 months ago

How can we save and send the token of the TV so that the next time of connection we don't need to pair again?

Aymkdn commented 5 months ago

The token is only valid once, and it permits to approve the SSL certificate you created. Once your SSL certificate has been accepted (because of the pairing process), you don't need the token anymore, and you don't need to pair again. You only need to use the same SSL certificate moving forward, and the Android TV will automatically accept the commands.

proappsteam commented 5 months ago

Thank you very much for your response, I appreciate your help! Actually what I meant is that after we disconnect from the device, every time we connect again how can we just get connected without pairing again, it's like the device just recognizes our phone. Currently, in 1 session the TV can recognize the phone, but after disconnecting it make us pair again to be connected.

Aymkdn commented 5 months ago

You can try to reboot the TV: sometimes a reboot is required to avoid this case.

And make sure you always provide the same certificate.

proappsteam commented 5 months ago

Great, it works now. Thank you so much for your help. It saves me lots of time and headache!