Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ms.channel.unauthorized" While trying to connect to TV #139

Open
mohamedsemz opened this issue Oct 22, 2022 · 1 comment
Open

"ms.channel.unauthorized" While trying to connect to TV #139

mohamedsemz opened this issue Oct 22, 2022 · 1 comment

Comments

@mohamedsemz
Copy link

mohamedsemz commented Oct 22, 2022

I'm using samsungctl library with the following code to try to control samsung smart tv
`config = {
"name": "Samsung TV",
"description": "PC",
"id": "",
"host": "192.168.178.45",
"port": 8001,
"method": "websocket",
"timeout": 0,
}

remote = RemoteWebsocket(config)`

And it gives "ms.channel.unauthorized" error
I went to setting and set the "Access notification" to be "Always on" and got no notification on the TV

I also wrote the following code
`payload = json.dumps({
"method": "ms.remote.control",
"params": {
"Cmd": "Click",
"DataOfCmd": "KEY_VOLUP",
"Option": "false",
"TypeOfRemote": "SendRemoteKey"
}
})
url = "ws://192.168.178.45:8001/api/v3/channels/samsung.remote.control?name=UmVtb3RlIENvbnRyb2w="

connection = websocket.create_connection(url, None)

response = connection.recv()

connection.send(payload)`

the main point here that, I changed the url to use v3 instead of v2 and got the notification on the TV and after allowing it connected successfully but sending the Key is not working I even tried several times but not working

Any idea what should I do ?

Note: The tv I'm using is GU32T5379CU

@wroga
Copy link

wroga commented Jul 4, 2023

You solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants