-
Notifications
You must be signed in to change notification settings - Fork 191
Some TV models request authorization again after every reboot #16
Comments
It's currently possible to keep the connection open and send multiple control messages. I don't see how the MAC address helps here. What is your use case here? |
Yes but as soon as the tv or server is turned off, access is requested again. This does not happen for DNLA servers or a mobile devices (incl. Apps started from those). So I'm looking for a way to pass the MAC Adress and home-automation.io uses your work, so I guessed best to ask you (: |
Hmm. It doesn't request for the access again after rebooting on the models I have tested. But different models may behave differently. Should sending the MAC address fix this? I would be happy to fix the behavior, but I cannot test it myself. Feel free to play with the source code and please send me a pull request if you get it working better. |
My skills are not that advanced but I will surely try comparing your code with the link I initially attached. |
I get this error: when I run the program.
|
@jviyer You need to use Python 3. E.g. |
Thanks a lot ! That was the issue.
@jviyer You need to use Python 3. E.g. pip3 install samsungctl— |
@Ape Thanks for an amazing lib.
PS: very new to github. |
I apologize. Some findings i have made from testing on my TV are listed below.
So i guess the short is - a little clean up of naming of the payload components and the example should clear this up for all the folks having re-auth issues. I have modified payload in remote_legacy.py as follows: and config like so:
} |
When id is empty, I explicitly have to authorise remote control on the TV on every start of samsungctl. When id is non-empty, it stores the authorization properly on the TV. Giving it a non-empty value in the example might save others the time it took me to figure out. See also issue Ape#16, although that has to do with re-authorisation after a reboot (which I dit not observe).
Setting "mac" and "ip" solved my problem with re-authentication on every restart on my UN40F5500 TV. BTW @Ape thanks so much on lib, I'm using it on https://github.com/pedrinho/samsung_remote |
How to solve this re-authentication problem using websockets method instead of legacy ? |
Dear @Ape ,
based on this library, home-assistant.io requests a new connection each time but it seems some models should be able to remember the host based on MAC address.
Could you be so kind as to add an optional conf variable for it?
I found a practical example that may help here : http://deneb.homedns.org/things/?p=232
The text was updated successfully, but these errors were encountered: