Hallo!
Bei mir zu Hause einem K Model läuft es gut, nun
wollte ich es bei meiner mam mit einem J Model auch versuchen aber da passiert irgendwie nix?!
Habe es hiermit versucht:
pi@JuttaHomeServer:~ $ python -m samsungctl --host 192.168.178.29 --port 8001 --timeout 5 --method legacy KEY_POWERON
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/samsungctl/__main__.py", line 126, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/samsungctl/__main__.py", line 104, in main
with Remote(config) as remote:
File "/usr/local/lib/python2.7/dist-packages/samsungctl/remote.py", line 8, in __init__
self.remote = RemoteLegacy(config)
File "/usr/local/lib/python2.7/dist-packages/samsungctl/remote_legacy.py", line 31, in __init__
self._read_response(True)
File "/usr/local/lib/python2.7/dist-packages/samsungctl/remote_legacy.py", line 63, in _read_response
tv_name_len = int.from_bytes(header[1:3],
AttributeError: type object 'int' has no attribute 'from_bytes'
hier die anfragen:
{ "DUID": "uuid:f32c97ba-d339-4aca-9903-9e218e9c0764", "Model": "15_HAWKM_UHD_2D_BASIC", "ModelName": "UE55JU6000", "ModelDescription": "Samsung DTV RCR", "NetworkType": "wired", "SSID": "", "IP": "xxxxxx", "FirmwareVersion": "Unknown", "DeviceName": "[TV] UE55JU6050", "DeviceID": "uuid:f32c97ba-d339-4aca-9903-9e218e9c0764", "UDN": "uuid:f32c97ba-d339-4aca-9903-9e218e9c0764", "Resolution": "1920x1080", "CountryCode": "DE", "SmartHubAgreement": "true", "ServiceURI": "http://xxxxx:8001/ms/1.0/", "DialURI": "http://xxxxcx:8001/ws/apps/", "Capabilities": [ { "name": "samsung:multiscreen:1", "port": "8001", "location": "/ms/1.0/" } ] }
{ "id": "uuid:f32c97ba-d339-4aca-9903-9e218e9c0764", "name": "[TV] UE55JU6050", "version": "2.0.25", "device": { "type": "Samsung SmartTV", "duid": "uuid:f32c97ba-d339-4aca-9903-9e218e9c0764", "model": "15_HAWKM_UHD_2D_BASIC", "modelName": "UE55JU6000", "description": "Samsung DTV RCR", "networkType": "wired", "ssid": "", "ip": "192.168.178.29", "firmwareVersion": "Unknown", "name": "[TV] UE55JU6050", "id": "uuid:f32c97ba-d339-4aca-9903-9e218e9c0764", "udn": "uuid:f32c97ba-d339-4aca-9903-9e218e9c0764", "resolution": "1920x1080", "countryCode": "DE", "msfVersion": "2.0.25", "smartHubAgreement": "true", "wifiMac": "14:bb:6e:e8:a3:32", "developerMode": "0", "developerIP": "" }, "type": "Samsung SmartTV", "uri": "http://xxxxxx:8001/api/v2/" }
Klappt es nicht auf einem J Model???
Mfg Steffen