Ankündigung

Einklappen
Keine Ankündigung bisher.

Philips Android TV über IP (HS) steuern

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • derPaul
    antwortet
    Korrekt!

    Einen Kommentar schreiben:


  • fabian82
    antwortet
    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:


  • derPaul
    antwortet
    Das ist dir überlassen .... leg dir ein Dummy iKO an wenn du die Rückgabe nicht auswerten willst ...

    Einen Kommentar schreiben:


  • fabian82
    antwortet
    Dachte ich mir, worauf denn?

    Einen Kommentar schreiben:


  • derPaul
    antwortet
    Doch ;-) sonst geht es nicht ...

    Einen Kommentar schreiben:


  • fabian82
    antwortet
    Danke, den Ausgang (A1) nirgendwo drauf?

    Einen Kommentar schreiben:


  • derPaul
    antwortet
    einen der beiden Bausteien weg werfen ...
    Und dann ein KO mit E6 verbinden ... das KO muss dann "On" oder "Off" beinhalten.

    Einen Kommentar schreiben:


  • fabian82
    antwortet
    Hm, so recht weiß ich jetzt nicht wie ich den LBS benutzen soll?
    Philips TV plugin.jpg

    Einen Kommentar schreiben:


  • stianj
    antwortet
    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?

    Einen Kommentar schreiben:


  • stianj
    antwortet
    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.

    Einen Kommentar schreiben:


  • fabian82
    antwortet
    Hi,
    for <4.7 this LBS can help?

    Einen Kommentar schreiben:


  • stianj
    antwortet
    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...

    Einen Kommentar schreiben:


  • stianj
    antwortet
    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:


  • EugenDo
    antwortet
    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:


  • stianj
    antwortet
    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

    Einen Kommentar schreiben:

Lädt...
X