Ankündigung
Einklappen
Keine Ankündigung bisher.
Philips Android TV über IP (HS) steuern
Einklappen
X
-
Ah ok, muss es also nur angeschlossen werden, dass der HS “zufrieden“ ist. Der Befehl, bzw. die Aktion wird aber im Hintergrund ausgeführt. (Will es ja auch verstehen)
Einen Kommentar schreiben:
-
Das ist dir überlassen .... leg dir ein Dummy iKO an wenn du die Rückgabe nicht auswerten willst ...
Einen Kommentar schreiben:
-
einen der beiden Bausteien weg werfen ...
Und dann ein KO mit E6 verbinden ... das KO muss dann "On" oder "Off" beinhalten.
Einen Kommentar schreiben:
-
Hm, so recht weiß ich jetzt nicht wie ich den LBS benutzen soll?
Philips TV plugin.jpg
Einen Kommentar schreiben:
-
Oh, and the output is the http result code - should be 200 if everything is ok. 401 is wrong credentials, and 404 is wrong url. Can't see how you'd get any other code than those three. And again, only tested with Expert 4.8 - I don't know if the python ssl library exists in <4.7 - but maybe it does?
- Likes 1
Einen Kommentar schreiben:
-
Okey, so I've cleaned it up a bit.
https://www.dropbox.com/s/qqy1l25vkj...oidTV.hsl?dl=0
It has six inputs. Username and password should be self explanatory. URL is protocol, hostname/ip and port. For instance https://192.168.1.23:1926. Path is the rest of the complete address, like /6/ambilight/power. Key and value are the json key and value. Like "power" for key and "On" as value.
This is my first LBS, and I have probably not done everything according to best practice, but I'm happy to get suggestions for improvements. If I find the time (and skills!) I will try and implement them... Very open for other ways to solve this as well, not sure this is the best way...Zuletzt geändert von stianj; 27.06.2019, 21:33.
- Likes 2
Einen Kommentar schreiben:
-
Hi again!
Ok, now I've made my first LBS - and it's actually working fine!
I will clean it up a bit and post it here in a few days. Have only tested with 4.8.1 - not sure if it will work with <4.7 because of SSL... Don't know how to test...
- Likes 2
Einen Kommentar schreiben:
-
You're right, it seems I was too fast concluding about this, I was not aware that the "nonce" parameter changes. I have a plan - will try to look more into this tonight
Einen Kommentar schreiben:
-
The problem will be Digest. Mostly MD5 is needed... I don't think the HS can do that? Or is there an LBS?
Einen Kommentar schreiben:
-
Hmm. I think your error is that you try to use basic auth, while the TV needs Digest auth. I use the following curl-commando:
curl -X POST --digest --insecure -u username
assword https://192.168.xxx.yyy:1926/6/ambilight/power -d '{power:Off}' --trace-ascii -
to find the correct headers. Works like a charm for me, Expert 4.8.1.
Have not even thought about this as a possibility before I saw your post, so thank you
- Likes 1
Einen Kommentar schreiben:


Einen Kommentar schreiben: