Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

"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

@wydadi01
Copy link

wydadi01 commented Jul 4, 2023

You solved it?

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

No branches or pull requests

2 participants