Hi all,
I noticed that the Smartthings app on my phone is able to read the current status and sources of my TV perfectly, but when calling the device API it shows that nothing is playing. What’s going on here?
My goal is to automate the rest of my home (via homeassistant), based on what’s playing on the TV.
Screenshot from my phone:
But this is wat the API (https://api.smartthings.com/v1/devices/{deviceId}/status) returns:
Click to see whole response
{
"components": {
"main": {
"mediaPlayback": {
"supportedPlaybackCommands": {
"value": [
"play",
"pause",
"stop",
"fastForward",
"rewind"
],
"timestamp": "2024-11-20T10:08:42.790Z"
},
"playbackStatus": {
"value": null
}
},
"samsungim.fixedFindNode": {},
"samsungvd.supportsPowerOnByOcf": {
"supportsPowerOnByOcf": {
"value": "true",
"timestamp": "2024-11-15T21:05:25.323Z"
}
},
"sec.deviceConnectionState": {
"deviceConnectionState": {
"value": null
}
},
"mediaInputSource": {
"supportedInputSources": {
"value": [],
"timestamp": "2024-11-20T10:08:42.790Z"
},
"inputSource": {
"value": null
}
},
"samsungvd.deviceCategory": {
"category": {
"value": "frametv",
"timestamp": "2024-11-15T21:05:25.323Z"
}
},
"switch": {
"switch": {
"value": "on",
"timestamp": "2024-11-23T19:41:45.327Z"
}
},
"samsungvd.pictureMode": {
"pictureMode": {
"value": "AI-aanpassing",
"timestamp": "2024-11-16T22:20:19.021Z"
},
"supportedPictureModes": {
"value": [
"AI-aanpassing",
"Comfortabel voor uw ogen",
"Geoptimaliseerd"
],
"timestamp": "2024-11-16T22:20:19.021Z"
},
"supportedPictureModesMap": {
"value": [
{
"id": "modeGen_589828",
"name": "AI-aanpassing"
},
{
"id": "modeGen_589826",
"name": "Comfortabel voor uw ogen"
},
{
"id": "modeIntelligent",
"name": "Geoptimaliseerd"
}
],
"timestamp": "2024-11-17T17:49:27.045Z"
}
},
"ocf": {
"st": {
"value": "1970-01-01T00:00:37Z",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mndt": {
"value": "2024-01-01",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnfv": {
"value": "T-PTMDDEUC-1201.8|ST_ENERGY",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnhw": {
"value": "",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"di": {
"value": "Redacted",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnsl": {
"value": "",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"dmv": {
"value": "res.1.1.0,sh.1.1.0",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"n": {
"value": "55\" The Frame",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnmo": {
"value": "QE55LS03DAUXXN",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"vid": {
"value": "VD-FRAME-2024",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnmn": {
"value": "Samsung Electronics",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnml": {
"value": "",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnpv": {
"value": "8.0",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"mnos": {
"value": "Tizen",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"pi": {
"value": "Redacted",
"timestamp": "2024-11-20T10:08:42.791Z"
},
"icv": {
"value": "core.1.1.0",
"timestamp": "2024-11-20T10:08:42.791Z"
}
},
"samsungvd.supportsFeatures": {
"mediaOutputSupported": {
"value": null
},
"imeAdvSupported": {
"value": true,
"timestamp": "2024-11-15T21:05:30.361Z"
},
"wifiUpdateSupport": {
"value": null
},
"executableServiceList": {
"value": null
},
"mobileCamSupported": {
"value": true,
"timestamp": "2024-11-15T21:05:30.361Z"
}
},
"custom.accessibility": {},
"custom.disabledCapabilities": {
"disabledCapabilities": {
"value": [
"samsungvd.ambientContent"
],
"timestamp": "2024-11-20T10:08:46.097Z"
}
},
"samsungvd.remoteControl": {},
"samsungvd.lightControl": {
"supportedModeMap": {
"value": [
{
"id": "",
"name": ""
}
],
"timestamp": "2024-11-15T22:20:17.580Z"
},
"requestId": {
"value": "",
"timestamp": "2024-11-15T22:20:17.580Z"
},
"selectedMode": {
"value": "",
"timestamp": "2024-11-15T22:20:17.580Z"
},
"streamControl": {
"value": false,
"timestamp": "2024-11-15T22:20:17.580Z"
},
"selectedAppId": {
"value": "",
"timestamp": "2024-11-15T22:20:17.580Z"
},
"errorCode": {
"value": "",
"timestamp": "2024-11-15T22:20:17.580Z"
},
"supportedModes": {
"value": [
""
],
"timestamp": "2024-11-15T22:20:17.580Z"
}
},
"samsungvd.soundMode": {
"supportedSoundModesMap": {
"value": [
{
"id": "modeExternalStandard",
"name": "Standaard"
}
],
"timestamp": "2024-11-21T08:21:13.804Z"
},
"soundMode": {
"value": "Standaard",
"timestamp": "2024-11-18T08:21:10.371Z"
},
"supportedSoundModes": {
"value": [
"Standaard"
],
"timestamp": "2024-11-21T08:21:13.804Z"
}
},
"custom.launchapp": {},
"samsungvd.firmwareVersion": {
"firmwareVersion": {
"value": "3.5.1",
"timestamp": "2024-11-20T10:08:46.302Z"
}
},
"samsungvd.thingStatus": {
"updatedTime": {
"value": 1732354941,
"timestamp": "2024-11-23T09:42:21.131Z"
},
"status": {
"value": "Idle",
"timestamp": "2024-11-15T21:12:34.770Z"
}
},
"demandResponseLoadControl": {
"drlcStatus": {
"value": {
"drlcType": 1,
"drlcLevel": 0,
"start": "2024-11-23T09:42:16Z",
"duration": 99999999,
"override": false
},
"timestamp": "2024-11-23T09:42:22.228Z"
}
},
"audioVolume": {
"volume": {
"value": 20,
"unit": "%",
"timestamp": "2024-11-23T08:21:15.439Z"
}
},
"powerConsumptionReport": {
"powerConsumption": {
"value": {
"energy": 0,
"deltaEnergy": 20.516027,
"power": 0,
"powerEnergy": 0,
"persistedEnergy": 0,
"energySaved": 0,
"persistedSavedEnergy": 0,
"start": "2024-11-23T19:28:11Z",
"end": "2024-11-23T19:43:18Z"
},
"timestamp": "2024-11-23T19:43:18.826Z"
}
},
"samsungvd.mediaInputSource": {
"supportedInputSourcesMap": {
"value": [
{
"id": "dtv",
"name": "Tv"
},
{
"id": "HDMI1",
"name": "Chromecast"
},
{
"id": "HDMI3",
"name": "Ultra Slim Soundbar"
},
{
"id": "HDMI4",
"name": "PlayStation 5"
}
],
"timestamp": "2024-11-16T00:25:19.362Z"
},
"inputSource": {
"value": "HDMI1",
"timestamp": "2024-11-23T09:44:24.991Z"
}
},
"custom.tvsearch": {},
"samsungvd.ambient": {},
"refresh": {},
"custom.error": {
"error": {
"value": null
}
},
"execute": {
"data": {
"value": null
}
},
"tvChannel": {
"tvChannel": {
"value": "",
"timestamp": "2024-11-23T19:33:12.467Z"
},
"tvChannelName": {
"value": "kIciSQlYEM.plex",
"timestamp": "2024-11-23T19:33:12.467Z"
}
},
"samsungvd.ambientContent": {
"supportedAmbientApps": {
"value": [],
"timestamp": "2024-11-20T10:08:42.790Z"
}
},
"custom.recording": {},
"custom.energyType": {
"energyType": {
"value": "2.0",
"timestamp": "2024-11-15T21:05:28.663Z"
},
"energySavingSupport": {
"value": true,
"timestamp": "2024-11-15T21:05:28.663Z"
},
"drMaxDuration": {
"value": 99999999,
"unit": "min",
"timestamp": "2024-11-15T21:05:28.663Z"
},
"energySavingLevel": {
"value": 1,
"timestamp": "2024-11-15T21:05:28.663Z"
},
"energySavingInfo": {
"value": null
},
"supportedEnergySavingLevels": {
"value": [
1
],
"timestamp": "2024-11-15T21:05:28.663Z"
},
"energySavingOperation": {
"value": false,
"timestamp": "2024-11-15T21:05:28.663Z"
},
"notificationTemplateID": {
"value": null
},
"energySavingOperationSupport": {
"value": true,
"timestamp": "2024-11-15T21:05:28.663Z"
}
},
"audioMute": {
"mute": {
"value": "unmuted",
"timestamp": "2024-11-21T08:21:13.390Z"
}
},
"mediaTrackControl": {
"supportedTrackControlCommands": {
"value": null
}
}
}
}
}