rytilahti / python-songpal

Python library for interfacing with Sony's Songpal devices
GNU General Public License v3.0
66 stars 24 forks source link

Trouble setting sound mode (soundField) or clearAudio on HT-XT2 #88

Open strayer opened 3 years ago

strayer commented 3 years ago

I'm trying to configure the sound mode on my HT-XT2 with songpal, but I always get this error when trying to change it:

Error: Got an error for setSoundSettings: [15, 'unsupported operation']: UnsupportedOperation (15): unsupported operation

Available sound settings:

* ClearAudio+  (clearAudio, value: on, type: booleanTarget)
  - On (on)
* Sound Field (soundField, value: clearAudio, type: enumTarget)
  - ClearAudio+  (clearAudio)
  - Movie (movie)
  - Music (music)
  - Sports (sports)
  - Game Studio (game)
  - Standard (standard)
* IDMR_TEXT_FOOTBALL_STRING (footballMode, value: off, type: enumTarget)
  - IDMR_TEXT_NARRATION_ON_STRING (on)
  - IDMR_TEXT_NARRATION_OFF_STRING (on_narration_off)
  - Off (off)
* Night (nightMode, value: off, type: booleanTarget)
  - On (on)
  - Off (off)
* Voice (voice, value: type1, type: enumTarget)
  - Up Off (type1)
  - Up 1 (type2)
  - Up 2 (type3)
* Subwoofer Volume (subwooferLevel, value: 8, type: integerTarget)
  - Subwoofer Volume (subwooferLevel)
* A/V SYNC (avSyncMs, value: 0, type: integerTarget)
  - A/V SYNC (avSyncMs)
* Dual Mono (dualMono, value: main, type: enumTarget)
  - Main/Sub (main_sub)
  - Main (main)
  - Sub (sub)

Both songpal sound clearAudio on and songpal sound soundField game return the error mentioned above. Any tips on how I could help solve this or investigate further myself?

songpal -d sound soundField game ``` Setting debug level to 1 DEBUG:root:Using endpoint http://192.168.178.192:10000/sony DEBUG:songpal.device:Endpoint: http://192.168.178.192:10000/sony DEBUG:songpal.device:Guide endpoint: http://192.168.178.192:10000/sony/guide DEBUG:songpal.device:Got 4 services! DEBUG:songpal.service:Available protocols for audio: ['xhrpost:jsonizer', 'websocket:jsonizer'] DEBUG:songpal.service:Using protocol: ProtocolType.WebSocket DEBUG:songpal.notification:notification payload: {'name': 'notifyVolumeInformation', 'versions': [{'version': '1.0'}]} DEBUG:songpal.notification:notification payload: {'name': 'notifyWirelessSurroundInfo', 'versions': [{'version': '1.0'}]} DEBUG:songpal.service:Got notifications: [, ] DEBUG:songpal.service:Available protocols for avContent: ['xhrpost:jsonizer', 'websocket:jsonizer'] DEBUG:songpal.service:Using protocol: ProtocolType.WebSocket DEBUG:songpal.service:Got duplicate signature for MethodSignature(name='getSourceList', input={'scheme': }, output={'source': , 'title': , 'isPlayable': 'bool', 'isBrowsable': 'bool', 'playAction': , 'outputs': 'string*', 'meta': , 'iconUrl': , 'protocols': 'string*', 'upnpOperationInfo': 'UpnpOperationInfo'}, version='1.2'), existing was }) -> {'iconUrl': , 'isBrowsable': 'bool', 'isPlayable': 'bool', 'meta': , 'outputs': 'string*', 'playAction': , 'source': , 'title': }>, keeping it. DEBUG:songpal.notification:notification payload: {'name': 'notifyAvailablePlaybackFunction', 'versions': [{'version': '1.0'}]} DEBUG:songpal.notification:notification payload: {'name': 'notifyExternalTerminalStatus', 'versions': [{'version': '1.0'}]} DEBUG:songpal.notification:notification payload: {'name': 'notifyPlayingContentInfo', 'versions': [{'authLevel': 'private', 'version': '1.0'}]} DEBUG:songpal.service:Got notifications: [, , ] DEBUG:songpal.service:Available protocols for guide: ['xhrpost:jsonizer'] DEBUG:songpal.service:Using protocol: ProtocolType.XHRPost DEBUG:songpal.service:Available protocols for system: ['xhrpost:jsonizer', 'websocket:jsonizer'] DEBUG:songpal.service:Using protocol: ProtocolType.WebSocket DEBUG:songpal.service:Got duplicate signature for MethodSignature(name='getStorageList', input={'uri': , 'isRegistered': }, output={'uri': , 'deviceName': , 'volumeLabel': , 'permission': , 'position': , 'formattable': , 'mounted': , 'wholeCapacityMB': , 'freeCapacityMB': , 'systemAreaCapacityMB': , 'isAvailable': , 'lun': , 'type': , 'protocol': , 'format': , 'error': , 'isRegistered': , 'registrationDate': , 'isSqvSupported': , 'hasNonStandardData': , 'isProtected': , 'isLocked': , 'formatStatus': , 'finalizeStatus': , 'timeSecToFinalize': , 'isSelfRecorded': , 'isManagementInfoFull': , 'timeSecToGetContents': , 'hasUnsupportedContents': , 'usbDeviceType': , 'fileSystem': }, version='1.2'), existing was }) -> {'deviceName': , 'error': , 'format': , 'formattable': , 'formatting': , 'freeCapacityMB': , 'isAvailable': , 'lun': , 'mounted': , 'permission': , 'position': , 'systemAreaCapacityMB': , 'type': , 'uri': , 'volumeLabel': , 'wholeCapacityMB': }>, keeping it. DEBUG:songpal.service:Got duplicate signature for MethodSignature(name='getSystemInformation', input=None, output={'product': , 'region': , 'language': , 'model': , 'serial': , 'macAddr': , 'name': , 'generation': , 'area': , 'cid': , 'helpUrl': , 'deviceID': , 'version': , 'duid': , 'wirelessMacAddr': , 'esn': , 'iconUrl': , 'ssid': , 'bdAddr': , 'initialPowerOnTime': , 'lastPowerOnTime': , 'bleID': }, version='1.4'), existing was {'area': , 'bdAddr': , 'cid': , 'deviceID': , 'duid': , 'esn': , 'generation': , 'helpUrl': , 'iconUrl': , 'language': , 'macAddr': , 'model': , 'name': , 'product': , 'region': , 'serial': , 'ssid': , 'updatableVersion': , 'version': , 'wirelessMacAddr': }>, keeping it. DEBUG:songpal.notification:notification payload: {'name': 'notifyPowerStatus', 'versions': [{'version': '1.0'}]} DEBUG:songpal.notification:notification payload: {'name': 'notifySWUpdateInfo', 'versions': [{'version': '1.0'}]} DEBUG:songpal.notification:notification payload: {'name': 'notifySettingsUpdate', 'versions': [{'version': '1.1'}]} DEBUG:songpal.notification:notification payload: {'name': 'notifyStorageStatus', 'versions': [{'authLevel': 'generic', 'version': '1.1'}, {'version': '1.2'}]} DEBUG:songpal.service:Got notifications: [, , , ] Setting soundField to game DEBUG:songpal.service:setSoundSettings got called with args (({'settings': [{'target': 'soundField', 'value': 'game'}]},)) kwargs ({}) DEBUG:songpal.method: None> Error: Got an error for setSoundSettings: [15, 'unsupported operation']: UnsupportedOperation (15): unsupported operation Traceback (most recent call last): File "/Users/strayer/tmp/./songpal/bin/songpal", line 8, in sys.exit(cli()) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/click/decorators.py", line 73, in new_func return ctx.invoke(f, obj, *args, **kwargs) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/songpal/main.py", line 57, in wrapper raise ex File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/songpal/main.py", line 48, in wrapper return loop.run_until_complete(f(*args, **kwargs)) File "/Users/strayer/.asdf/installs/python/3.9.1/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/songpal/main.py", line 483, in sound click.echo(await dev.set_sound_settings(target, value)) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/songpal/device.py", line 417, in set_sound_settings return await self.services["audio"]["setSoundSettings"](params) File "/Users/strayer/tmp/songpal/lib/python3.9/site-packages/songpal/method.py", line 131, in __call__ raise SongpalException( songpal.common.SongpalException: Got an error for setSoundSettings: [15, 'unsupported operation']: UnsupportedOperation (15): unsupported operation ```
dump-devinfo ```json { "interface_info": { "interfaceVersion": "3.1.0", "modelName": "HT-XT2", "productCategory": "homeTheaterSystem", "productName": "Bar", "serverName": "" }, "settings": [ { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": { "getApi": { "name": "getSoundSettings", "version": "1.1" }, "service": "audio", "setApi": { "name": "setSoundSettings", "version": "1.1" }, "target": "clearAudio", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": false, "settings": null, "title": "ClearAudio+ ", "titleTextID": "sound-clearaudio", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getSoundSettings", "version": "1.1" }, "service": "audio", "setApi": { "name": "setSoundSettings", "version": "1.1" }, "target": "soundField", "targetSuppl": null }, "deviceUIInfo": "soundFieldFig", "isAvailable": false, "settings": null, "title": "Sound Field", "titleTextID": "sound-soundfield", "type": "enumTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getSoundSettings", "version": "1.1" }, "service": "audio", "setApi": { "name": "setSoundSettings", "version": "1.1" }, "target": "nightMode", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Night", "titleTextID": "sound-night", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getSoundSettings", "version": "1.1" }, "service": "audio", "setApi": { "name": "setSoundSettings", "version": "1.1" }, "target": "voice", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Voice", "titleTextID": "sound-voice", "type": "enumTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getSoundSettings", "version": "1.1" }, "service": "audio", "setApi": { "name": "setSoundSettings", "version": "1.1" }, "target": "subwooferLevel", "targetSuppl": null }, "deviceUIInfo": "sliderHorizon", "isAvailable": true, "settings": null, "title": "Subwoofer Volume", "titleTextID": "sound-subwoofer", "type": "integerTarget", "usage": null }, { "apiMapping": null, "deviceUIInfo": null, "isAvailable": false, "settings": [ { "apiMapping": { "getApi": { "name": "getSoundSettings", "version": "1.1" }, "service": "audio", "setApi": { "name": "setSoundSettings", "version": "1.1" }, "target": "avSyncMs", "targetSuppl": null }, "deviceUIInfo": "picker", "isAvailable": true, "settings": null, "title": "A/V SYNC", "titleTextID": "sound-adjustment-avsync", "type": "integerTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getSoundSettings", "version": "1.1" }, "service": "audio", "setApi": { "name": "setSoundSettings", "version": "1.1" }, "target": "dualMono", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Dual Mono", "titleTextID": "sound-adjustment-dualmono", "type": "enumTarget", "usage": null } ], "title": "Sound Adjustments", "titleTextID": "sound-adjustment", "type": "directory", "usage": null } ], "title": "Sound Settings", "titleTextID": "sound", "type": "directory", "usage": null }, { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": { "getApi": { "name": "getSWUpdateInfo", "version": "1.0" }, "service": "system", "setApi": { "name": "actSWUpdate", "version": "1.0" }, "target": null, "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Software Update", "titleTextID": "system-update", "type": "nullTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getPowerSettings", "version": "1.0" }, "service": "system", "setApi": { "name": "setPowerSettings", "version": "1.0" }, "target": "quickStartMode", "targetSuppl": null }, "deviceUIInfo": "", "isAvailable": true, "settings": null, "title": "Quick Start/Network Standby", "titleTextID": "system-networkstandby", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getDeviceMiscSettings", "version": "1.0" }, "service": "system", "setApi": { "name": "setDeviceMiscSettings", "version": "1.0" }, "target": "deviceName", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Device Name", "titleTextID": "system-networkdevicename", "type": "stringTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getDeviceMiscSettings", "version": "1.0" }, "service": "system", "setApi": { "name": "setDeviceMiscSettings", "version": "1.0" }, "target": "swAutoUpdate", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Auto Update ", "titleTextID": "system-autoupdate", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getDeviceMiscSettings", "version": "1.0" }, "service": "system", "setApi": { "name": "setDeviceMiscSettings", "version": "1.0" }, "target": "timeZone", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Time Zone", "titleTextID": "system-timezone", "type": "stringTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getSystemInformation", "version": "1.3" }, "service": "system", "setApi": null, "target": "", "targetSuppl": "version" }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "HT-XT2 Software Version", "titleTextID": "other-htversion-TBD", "type": "stringTarget", "usage": null } ], "title": "System", "titleTextID": "system", "type": "directory", "usage": null } ], "title": null, "titleTextID": null, "type": "directory", "usage": "deviceConfig" }, { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": { "getApi": { "name": "getPlaybackModeSettings", "version": "1.0" }, "service": "avContent", "setApi": { "name": "setPlaybackModeSettings", "version": "1.0" }, "target": "repeatType", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Repeat", "titleTextID": "playbackMode-repeatType", "type": "enumTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getPlaybackModeSettings", "version": "1.0" }, "service": "avContent", "setApi": { "name": "setPlaybackModeSettings", "version": "1.0" }, "target": "shuffleType", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Shuffle", "titleTextID": "playbackMode-shuffleType", "type": "enumTarget", "usage": null } ], "title": "Playback Mode", "titleTextID": "playbackMode", "type": "directory", "usage": null } ], "title": null, "titleTextID": null, "type": "directory", "usage": "playingControl" }, { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": { "getApi": { "name": "getPowerSettings", "version": "1.0" }, "service": "system", "setApi": { "name": "setPowerSettings", "version": "1.0" }, "target": "quickStartMode", "targetSuppl": null }, "deviceUIInfo": "", "isAvailable": true, "settings": null, "title": "Quick Start/Network Standby", "titleTextID": "system-networkstandby", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getDeviceMiscSettings", "version": "1.0" }, "service": "system", "setApi": { "name": "setDeviceMiscSettings", "version": "1.0" }, "target": "swAutoUpdate", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Auto Update ", "titleTextID": "system-autoupdate", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getDeviceMiscSettings", "version": "1.0" }, "service": "system", "setApi": { "name": "setDeviceMiscSettings", "version": "1.0" }, "target": "timeZone", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Time Zone", "titleTextID": "system-timezone", "type": "stringTarget", "usage": null } ], "title": null, "titleTextID": null, "type": "directory", "usage": "initialSetting" }, { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": null, "deviceUIInfo": null, "isAvailable": true, "settings": [ { "apiMapping": { "getApi": { "name": "getWuTangInfo", "version": "1.0" }, "service": "system", "setApi": { "name": "setWuTangInfo", "version": "1.0" }, "target": "privacySetting", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Share usage data", "titleTextID": "googlecast-shareusagedata", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getWuTangInfo", "version": "1.0" }, "service": "system", "setApi": { "name": "setWuTangInfo", "version": "1.0" }, "target": "activateStatus", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Activate status", "titleTextID": "googlecast-activatestatus", "type": "booleanTarget", "usage": null }, { "apiMapping": { "getApi": { "name": "getWuTangInfo", "version": "1.0" }, "service": "system", "setApi": null, "target": "currentVersion", "targetSuppl": null }, "deviceUIInfo": null, "isAvailable": true, "settings": null, "title": "Version number", "titleTextID": "googlecast-versionnumber", "type": "stringTarget", "usage": null } ], "title": "Google Cast", "titleTextID": "googlecast", "type": "directory", "usage": null } ], "title": null, "titleTextID": null, "type": "directory", "usage": "wuTangSetting" } ], "supported_methods": { "audio": { "methods": { "getCustomEqualizerSettings": { "input": { "target": "str" }, "name": "getCustomEqualizerSettings", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "audio", "version": "1.0" }, "getMethodTypes": { "input": "str", "name": "getMethodTypes", "output": "str", "service": "audio", "version": "1.0" }, "getSoundSettings": { "input": { "target": "str" }, "name": "getSoundSettings", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "audio", "version": "1.1" }, "getSpeakerSettings": { "input": { "target": "str" }, "name": "getSpeakerSettings", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "audio", "version": "1.0" }, "getVersions": { "input": null, "name": "getVersions", "output": "str", "service": "audio", "version": "1.0" }, "getVolumeInformation": { "input": { "output": "str" }, "name": "getVolumeInformation", "output": { "maxVolume": "int", "minVolume": "int", "mute": "str", "output": "str", "step": "int", "volume": "int" }, "service": "audio", "version": "1.1" }, "setAudioMute": { "input": { "mute": "str", "output": "str" }, "name": "setAudioMute", "output": null, "service": "audio", "version": "1.1" }, "setAudioVolume": { "input": { "output": "str", "volume": "str" }, "name": "setAudioVolume", "output": null, "service": "audio", "version": "1.1" }, "setCustomEqualizerSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setCustomEqualizerSettings", "output": null, "service": "audio", "version": "1.0" }, "setSoundSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setSoundSettings", "output": null, "service": "audio", "version": "1.1" }, "setSpeakerSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setSpeakerSettings", "output": null, "service": "audio", "version": "1.0" }, "switchNotifications": { "input": { "disabled": "ApiIdentity[]", "enabled": "ApiIdentity[]" }, "name": "switchNotifications", "output": { "disabled": "ApiIdentity[]", "enabled": "ApiIdentity[]", "unsupported": "ApiIdentity[]" }, "service": "audio", "version": "1.0" } }, "notifications": { "notifyVolumeInformation": { "name": "notifyVolumeInformation", "version": "1.0" }, "notifyWirelessSurroundInfo": { "name": "notifyWirelessSurroundInfo", "version": "1.0" } }, "protocols": [] }, "avContent": { "methods": { "getAvailablePlaybackFunction": { "input": { "output": "str" }, "name": "getAvailablePlaybackFunction", "output": { "functions": "FunctionInfo[]", "output": "str", "uri": "str" }, "service": "avContent", "version": "1.0" }, "getBluetoothSettings": { "input": { "target": "str" }, "name": "getBluetoothSettings", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "avContent", "version": "1.0" }, "getContentCount": { "input": { "path": "str", "target": "str", "type": "string*", "uri": "str", "view": "str" }, "name": "getContentCount", "output": { "capability": "int", "count": "int" }, "service": "avContent", "version": "1.3" }, "getContentList": { "input": { "cnt": "int", "path": "str", "sort": "str", "stIdx": "int", "target": "str", "type": "string*", "uri": "str", "view": "str" }, "name": "getContentList", "output": { "albumName": "str", "artist": "str", "audioInfo": "AudioInfo[]", "broadcastFreq": "int", "broadcastFreqBand": "str", "channelName": "str", "channelSurfingVisibility": "str", "chapterCount": "int", "content": "ContentInfo", "contentKind": "str", "contentType": "str", "createdTime": "str", "directRemoteNum": "int", "dispNum": "str", "durationMsec": "int", "epgVisibility": "str", "fileNo": "str", "fileSizeByte": "int", "folderNo": "str", "genre": "string*", "index": "int", "is3D": "str", "isAlreadyPlayed": "str", "isBrowsable": "str", "isPlayable": "str", "isProtected": "str", "originalDispNum": "str", "parentIndex": "int", "parentUri": "str", "parentalInfo": "ParentalInfo[]", "path": "str", "playlistName": "str", "podcastName": "str", "productID": "str", "programMediaType": "str", "programNum": "int", "remotePlayType": "string*", "sizeMB": "int", "startDateTime": "str", "storageUri": "str", "subtitleInfo": "SubtitleInfo[]", "title": "str", "tripletStr": "str", "uri": "str", "userContentFlag": "bool", "videoInfo": "VideoInfo", "visibility": "str" }, "service": "avContent", "version": "1.4" }, "getCurrentExternalTerminalsStatus": { "input": null, "name": "getCurrentExternalTerminalsStatus", "output": { "active": "str", "connection": "str", "iconUrl": "str", "label": "str", "meta": "str", "outputs": "string*", "title": "str", "uri": "str" }, "service": "avContent", "version": "1.0" }, "getMethodTypes": { "input": "str", "name": "getMethodTypes", "output": "str", "service": "avContent", "version": "1.0" }, "getPlaybackModeSettings": { "input": { "target": "str", "uri": "str" }, "name": "getPlaybackModeSettings", "output": { "candidate": "PlaybackModeSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str", "uri": "str" }, "service": "avContent", "version": "1.0" }, "getPlayingContentInfo": { "input": { "output": "str" }, "name": "getPlayingContentInfo", "output": { "albumName": "str", "applicationName": "str", "artist": "str", "audioInfo": "AudioInfo[]", "bivl_assetId": "str", "bivl_provider": "str", "bivl_serviceId": "str", "broadcastFreq": "int", "broadcastFreqBand": "str", "channelName": "str", "chapterCount": "int", "chapterIndex": "int", "contentKind": "str", "dabInfo": "DabInfo", "dispNum": "str", "durationMsec": "int", "durationSec": "double", "fileNo": "str", "genre": "string*", "index": "int", "mediaType": "str", "originalDispNum": "str", "output": "str", "parentUri": "str", "playSpeed": "str", "playSpeedStep": "int", "playlistName": "str", "podcastName": "str", "positionMsec": "int", "positionSec": "double", "programNum": "int", "programTitle": "str", "repeatType": "str", "service": "str", "source": "str", "sourceLabel": "str", "startDateTime": "str", "stateInfo": "StateInfo", "subtitleIndex": "int", "title": "str", "totalCount": "int", "tripletStr": "str", "uri": "str", "videoInfo": "VideoInfo" }, "service": "avContent", "version": "1.2" }, "getSchemeList": { "input": null, "name": "getSchemeList", "output": { "scheme": "str" }, "service": "avContent", "version": "1.0" }, "getSourceList": { "input": { "scheme": "str" }, "name": "getSourceList", "output": { "iconUrl": "str", "isBrowsable": "bool", "isPlayable": "bool", "meta": "str", "outputs": "string*", "playAction": "str", "source": "str", "title": "str" }, "service": "avContent", "version": "1.1" }, "getSupportedPlaybackFunction": { "input": { "uri": "str" }, "name": "getSupportedPlaybackFunction", "output": { "functions": "SupportedFunctionInfo[]", "uri": "str" }, "service": "avContent", "version": "1.0" }, "getVersions": { "input": null, "name": "getVersions", "output": "str", "service": "avContent", "version": "1.0" }, "pausePlayingContent": { "input": { "output": "str" }, "name": "pausePlayingContent", "output": null, "service": "avContent", "version": "1.1" }, "presetBroadcastStation": { "input": { "frequency": "int", "uri": "str" }, "name": "presetBroadcastStation", "output": null, "service": "avContent", "version": "1.0" }, "scanPlayingContent": { "input": { "direction": "str", "output": "str" }, "name": "scanPlayingContent", "output": null, "service": "avContent", "version": "1.0" }, "seekBroadcastStation": { "input": { "direction": "str", "tuning": "str" }, "name": "seekBroadcastStation", "output": null, "service": "avContent", "version": "1.0" }, "setActiveTerminal": { "input": { "active": "str", "uri": "str" }, "name": "setActiveTerminal", "output": null, "service": "avContent", "version": "1.0" }, "setBluetoothSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setBluetoothSettings", "output": null, "service": "avContent", "version": "1.0" }, "setPlayContent": { "input": { "keepLastFrame": "bool", "output": "str", "positionMsec": "int", "positionSec": "double", "repeatType": "str", "requester": "str", "resume": "bool", "uri": "str" }, "name": "setPlayContent", "output": null, "service": "avContent", "version": "1.2" }, "setPlayNextContent": { "input": { "output": "str" }, "name": "setPlayNextContent", "output": null, "service": "avContent", "version": "1.0" }, "setPlayPreviousContent": { "input": { "output": "str" }, "name": "setPlayPreviousContent", "output": null, "service": "avContent", "version": "1.0" }, "setPlaybackModeSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setPlaybackModeSettings", "output": null, "service": "avContent", "version": "1.0" }, "startContentBrowsing": { "input": { "uri": "str" }, "name": "startContentBrowsing", "output": { "errorMessage": "str", "status": "str" }, "service": "avContent", "version": "1.0" }, "stopPlayingContent": { "input": { "keepLastFrame": "bool", "output": "str" }, "name": "stopPlayingContent", "output": null, "service": "avContent", "version": "1.1" }, "switchNotifications": { "input": { "disabled": "ApiIdentity[]", "enabled": "ApiIdentity[]" }, "name": "switchNotifications", "output": { "disabled": "ApiIdentity[]", "enabled": "ApiIdentity[]", "unsupported": "ApiIdentity[]" }, "service": "avContent", "version": "1.0" } }, "notifications": { "notifyAvailablePlaybackFunction": { "name": "notifyAvailablePlaybackFunction", "version": "1.0" }, "notifyExternalTerminalStatus": { "name": "notifyExternalTerminalStatus", "version": "1.0" }, "notifyPlayingContentInfo": { "name": "notifyPlayingContentInfo", "version": "1.0" } }, "protocols": [] }, "guide": { "methods": { "getMethodTypes": { "input": "str", "name": "getMethodTypes", "output": "str", "service": "guide", "version": "1.0" }, "getServiceProtocols": { "input": null, "name": "getServiceProtocols", "output": "str", "service": "guide", "version": "1.0" }, "getSupportedApiInfo": { "input": { "services": "string*" }, "name": "getSupportedApiInfo", "output": { "apis": "ApiInfo[]", "protocols": "string*", "service": "str" }, "service": "guide", "version": "1.0" }, "getVersions": { "input": null, "name": "getVersions", "output": "str", "service": "guide", "version": "1.0" } }, "notifications": {}, "protocols": [] }, "system": { "methods": { "actSWUpdate": { "input": null, "name": "actSWUpdate", "output": null, "service": "system", "version": "1.0" }, "connectBluetoothDevice": { "input": { "bdAddr": "str" }, "name": "connectBluetoothDevice", "output": null, "service": "system", "version": "1.0" }, "getDeviceMiscSettings": { "input": { "target": "str" }, "name": "getDeviceMiscSettings", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "system", "version": "1.0" }, "getInterfaceInformation": { "input": null, "name": "getInterfaceInformation", "output": { "interfaceVersion": "str", "modelName": "str", "productCategory": "str", "productName": "str", "serverName": "str" }, "service": "system", "version": "1.0" }, "getMethodTypes": { "input": "str", "name": "getMethodTypes", "output": "str", "service": "system", "version": "1.0" }, "getPowerSettings": { "input": { "target": "str" }, "name": "getPowerSettings", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "system", "version": "1.0" }, "getPowerStatus": { "input": null, "name": "getPowerStatus", "output": { "standbyDetail": "str", "status": "str" }, "service": "system", "version": "1.1" }, "getSWUpdateInfo": { "input": { "network": "str" }, "name": "getSWUpdateInfo", "output": { "isUpdatable": "str", "swInfo": "SWInfo[]" }, "service": "system", "version": "1.0" }, "getSettingsTree": { "input": { "usage": "str" }, "name": "getSettingsTree", "output": { "settings": "SettingsTreeList[]" }, "service": "system", "version": "1.1" }, "getSleepTimerSettings": { "input": { "target": "str" }, "name": "getSleepTimerSettings", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "system", "version": "1.0" }, "getStorageList": { "input": { "uri": "str" }, "name": "getStorageList", "output": { "deviceName": "str", "error": "str", "format": "str", "formattable": "str", "formatting": "str", "freeCapacityMB": "int", "isAvailable": "str", "lun": "int", "mounted": "str", "permission": "str", "position": "str", "systemAreaCapacityMB": "int", "type": "str", "uri": "str", "volumeLabel": "str", "wholeCapacityMB": "int" }, "service": "system", "version": "1.1" }, "getSystemInformation": { "input": null, "name": "getSystemInformation", "output": { "area": "str", "bdAddr": "str", "cid": "str", "deviceID": "str", "duid": "str", "esn": "str", "generation": "str", "helpUrl": "str", "iconUrl": "str", "language": "str", "macAddr": "str", "model": "str", "name": "str", "product": "str", "region": "str", "serial": "str", "ssid": "str", "updatableVersion": "str", "version": "str", "wirelessMacAddr": "str" }, "service": "system", "version": "1.3" }, "getVersions": { "input": null, "name": "getVersions", "output": "str", "service": "system", "version": "1.0" }, "getWuTangInfo": { "input": { "target": "str" }, "name": "getWuTangInfo", "output": { "candidate": "GeneralSettingsCandidate[]", "currentValue": "str", "deviceUIInfo": "str", "isAvailable": "bool", "target": "str", "title": "str", "titleTextID": "str", "type": "str" }, "service": "system", "version": "1.0" }, "setClientInfo": { "input": { "target": "str", "value": "str" }, "name": "setClientInfo", "output": null, "service": "system", "version": "1.0" }, "setDeviceMiscSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setDeviceMiscSettings", "output": null, "service": "system", "version": "1.0" }, "setPowerSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setPowerSettings", "output": null, "service": "system", "version": "1.0" }, "setPowerStatus": { "input": { "standbyDetail": "str", "status": "str" }, "name": "setPowerStatus", "output": null, "service": "system", "version": "1.1" }, "setSleepTimerSettings": { "input": { "settings": "GeneralSettings[]" }, "name": "setSleepTimerSettings", "output": null, "service": "system", "version": "1.0" }, "setWuTangInfo": { "input": { "settings": "GeneralSettings[]" }, "name": "setWuTangInfo", "output": null, "service": "system", "version": "1.0" }, "switchNotifications": { "input": { "disabled": "ApiIdentity[]", "enabled": "ApiIdentity[]" }, "name": "switchNotifications", "output": { "disabled": "ApiIdentity[]", "enabled": "ApiIdentity[]", "unsupported": "ApiIdentity[]" }, "service": "system", "version": "1.0" } }, "notifications": { "notifyPowerStatus": { "name": "notifyPowerStatus", "version": "1.0" }, "notifySWUpdateInfo": { "name": "notifySWUpdateInfo", "version": "1.0" }, "notifySettingsUpdate": { "name": "notifySettingsUpdate", "version": "1.1" }, "notifyStorageStatus": { "name": "notifyStorageStatus", "version": "1.2" } }, "protocols": [] } }, "sysinfo": { "bdAddr": "98:22:ef:8c:96:8c", "bleID": null, "bssid": null, "macAddr": "70:26:05:48:e9:12", "ssid": null, "version": "M34.R.2137", "wirelessMacAddr": "98:22:ef:8c:96:8b" } } ```
rytilahti commented 3 years ago

Hi there,

sorry for the delay, my HTXT3 broke last year and I moved to another brand, so I haven't been paying attention to this library since some time...

From the surface, the devinfo file for the HTXT3 looks similar to yours, so I'm not sure why it wouldn't be working... What you could try is to do a traffic capture (using wireshark or tcpdump), and compare the traffic between the device and the mobile app to that what happens when you execute the command using this lib.

strayer commented 3 years ago

Thanks for the tip! I checked out the official Sony app and it seems like the options are disabled there too when the Chromecast integration is open 🤔 Very weird. They can be changed when using the infrared remote, at least I think so… I'll check this out later when I have more time. Thanks for looking into this!