nein, im browser geht die combi ja.
Ankündigung
Einklappen
Keine Ankündigung bisher.
Philips Android TV über IP (HS) steuern
Einklappen
X
-
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 usernameassword 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
Kommentar
-
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
Kommentar
-
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
Kommentar
-
Kommentar
Kommentar