Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kein powerstate bei V1 API #433

Open
benep opened this issue Sep 29, 2022 · 1 comment
Open

Kein powerstate bei V1 API #433

benep opened this issue Sep 29, 2022 · 1 comment

Comments

@benep
Copy link

benep commented Sep 29, 2022

In der v1 API gibt es keine powerstate Methode, die wird aber scheinbar für das /settings/power Objekt verwendet.
https://jointspace.sourceforge.net/projectdata/documentation/jasonApi/1/doc/API.html

Leider gibt es deswegen alle 5 Sekunden einen Error, wenn das Gerät eingeschaltet ist.

philips-tv.0 25438 2022-09-29 13:51:59.008 error Could not poll API: {"statusCode":404,"body":"<title>Not Found</title>Not Found","headers":{"content-length":"72","access-control-allow-origin":"*","cache-control":"no-cache","content-type":"text/html; charset=utf-8","date":"Thu, 29 Sep 2022 11:51:58 GMT"},"request":{"uri":{"protocol":"http:","slashes":true,"auth":null,"host":"xx.xx.xx.xx:1925","port":"1925","hostname":"xx.xx.xx.xx","hash":null,"search":null,"query":null,"pathname":"/1/powerstate","path":"/1/powerstate","href":"http://xx.xx.xx.xx:1925/1/powerstate"},"method":"GET","headers":{}}}

Auch das Objekt /info/connection Objekt wird nicht aktualisiert, obwohl der Adapter nach dem Einschalten beginnt den obigen Fehler auszugeben.

Evtl, muss man das für leider sehr eingeschränkte V1 über einen anderen Weg machen. Vielleicht die HTTP-Codes oder einen Ping.

Die Buttons und Lautstärkeeinstellungen funktionieren übrigens trotzdem.

@foxriver76
Copy link
Collaborator

This needs some more rework in the Lib, as the API endpoints differ a lot, also there exists a sources endpoint, which is no longer existing for newer APIs as far as I know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants