Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
719 stars 189 forks source link

Possibility to get events from the TV? #99

Open LordMike opened 5 years ago

LordMike commented 5 years ago

Hey,

So. I initially hoped that the TV I've gotten (a QE65Q9FN) was well supported and documented, given its price and the fact that it could run .NET.. But I'm dearly dissapointed as it doesn't work well with my Sonos surround system (no control of the Sonos from the Smart Remote). I set out to remediate this by using a websocket from the TV, which hopefully would spew out events, and then direct those to Sonos.

Given that there is absolutely NO documentation on any of this. Is there by any chance anyone who knows how to get events, or even just read the volume level of the TV?

I'm unable to connect to it using samsungctl, but through messing around found that I can actually connect to a websocket at ws://xyz:8001/api/v2/channels/. I'm unable to do much, but it stays up, unlike if I connect to ws://xyz:8001/api/v2/channels/samsung.remote.control?name=.. -- where I'm met with an unauthorized message..

vitalets commented 5 years ago

Have a look on https://github.com/Ape/samsungctl/issues/93#issuecomment-436318284

kdschlosser commented 5 years ago

there is no way to know that a button has been pressed on the factory samsung remote other then using a pulse eight CEC adapter.

a pluse eight CEC adapter plugs into the HDMI on the TV and to your PC via USB. this device mimics a device on the HDMI cable. so the CEC on the TV will talk to it. from there you can convert the remote control key presses to UPNP commands for the sonos.

check out eventghost.net it is a windows based HA software that has all of the software you need to get things going. you will simply need to purchase a pulse eight CEC adapter.

https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter

they are not horribly expensive. around 45.00 USD. it works quite well. you can change the TV source and volume.. all kinds of things using one of these little adapters.