xchwarze / samsung-tv-ws-api

Samsung Smart TV WS API wrapper
GNU Lesser General Public License v3.0
251 stars 42 forks source link

ConnectionFailure in FrameTV #114

Open chiappone opened 1 year ago

chiappone commented 1 year ago

I am wondering if there is something special that needs to happen here, I always receive a ConnectionFailure when trying any methods against my FrameTV. I have validated the IP address but still no luck?

xchwarze commented 1 year ago

Two different things happen at the same time: A) Samsung does not give any type of documentation and all this is done with reverse engineering B) Samsung doesn't want to use any of this anymore. The idea would be for all users to migrate to SmartThings and when everyone adopts it, Samsung will surely do the same.

At the moment the only non-cloud alternative would be to continue doing reverse looking for alternatives

chiappone commented 1 year ago

Not sure I'm following, are you saying that this software no longer works?

xchwarze commented 1 year ago

The explanation was for you to understand the panorama. Everything in this and all such implementations is reverse engineered. I don't think as much as disappear since a non-cloud alternative will always be needed, at least for some corporate use cases. But if some functionalities can be broken or even disappear. In this case, an analysis would have to be done to see what happened. Analysis that I can not do because I do not have a TV where it fails. I'm assuming you have a TV running Tizen 6.5 or higher where Samsung seems to have changed or removed the service used for this.

xchwarze commented 1 year ago

seems the same case as https://github.com/xchwarze/samsung-tv-ws-api/issues/108

chiappone commented 1 year ago

I see, I have the 2020 FrameTV, would that have the latest software that potentially breaks this functionality? When I try the encrypted connection I get a response with put in a PIN but no pin shows up on the TV.

chiappone commented 1 year ago

By the way this is the respone I get when I go to this endpoint http://TV_IP:8001/api/v2/ if it helps at all.

{ "device": { "FrameTVSupport": "true", "GamePadSupport": "true", "ImeSyncedSupport": "true", "Language": "en_US", "OS": "Tizen", "PowerState": "on", "TokenAuthSupport": "true", "VoiceSupport": "true", "WallScreenRatio": "0", "WallService": "false", "countryCode": "US", "description": "Samsung DTV RCR", "developerIP": "0.0.0.0", "developerMode": "0", "duid": "uuid:a31e9299-b0f9-4e7a-82e1-4ac3c2680578", "firmwareVersion": "Unknown", "id": "uuid:a31e9299-b0f9-4e7a-82e1-4ac3c2680578", "ip": "192.168.7.249", "model": "20_NIKEM_FRAME", "modelName": "QN65LS03TAFXZA", "name": "[TV] The Frame", "networkType": "wired", "resolution": "3840x2160", "smartHubAgreement": "true", "type": "Samsung SmartTV", "udn": "uuid:a31e9299-b0f9-4e7a-82e1-4ac3c2680578", "wifiMac": "a4:30:7a:3a:47:fd" }, "id": "uuid:a31e9299-b0f9-4e7a-82e1-4ac3c2680578", "isSupport": "{\"DMP_DRM_PLAYREADY\":\"false\",\"DMP_DRM_WIDEVINE\":\"false\",\"DMP_available\":\"true\",\"EDEN_available\":\"true\",\"FrameTVSupport\":\"true\",\"ImeSyncedSupport\":\"true\",\"TokenAuthSupport\":\"true\",\"remote_available\":\"true\",\"remote_fourDirections\":\"true\",\"remote_touchPad\":\"true\",\"remote_voiceControl\":\"true\"}\n", "name": "[TV] The Frame", "remote": "1.0", "type": "Samsung SmartTV", "uri": "http://192.168.7.249:8001/api/v2/", "version": "2.0.25" }

leosok commented 1 year ago

Well I just got a Frame 2022, after seeing you're beautiful python package, and once the TV was an the wall and I started testing... well the grass is not green anymore. (What still works: starting apps; turning TV on/off). If there is any idea how one can help reverse-engineering it - I'm in!

vandenbrakel commented 1 year ago

Two different things happen at the same time: A) Samsung does not give any type of documentation and all this is done with reverse engineering B) Samsung doesn't want to use any of this anymore. The idea would be for all users to migrate to SmartThings and when everyone adopts it, Samsung will surely do the same.

At the moment the only non-cloud alternative would be to continue doing reverse looking for alternatives

Is there actually an ART cloud API for Smartthings? Anyone has info on that? Can't seem to find any info.

NickWaterton commented 10 months ago

The 2020 Frame TV art api still works, as does my 2021 (the TV is not encrypted though). From 2022, it’s gone though. There is no cloud api either. Smarthings has a way of doing it obviously, but it’s not exposed in the Smarthings api.

It’s as if Samsung doesn’t want anyone to mess with their api’s.

NickWaterton commented 5 months ago

Update:

As of the latest firmware (1622) on 2022+ Frame TV’s, the art mode web socket is back!

Some of the commands have been renamed, and some don’t work. I haven’t explored yet, as I only noticed today that the art mode Websocket was responding again.

leosok commented 5 months ago

Really exited to finally try. When I got my tv it was just gone.