Philips TV
-
-
Daraus kannst du immer die API-Version 6.1.0 ableiten - falls du ein passendes Homebridge-Plugin für Saphi-TV findest was an bestimmte Versionen gebunden ist.
Saphi Tv is installiert und „grob“ eingerichtet 🍀👌🏼
Hallo, ich habe ein Problem, ich bekomme die Paarung nicht hin, wenn ich den Python - Befehl ausführe, findet der die Philips.py Datei nicht. Wer kann mir einen Rat geben um die Paarung hinzubekommen?
Danke für Eure Hilfe
Hey Leute,
ich hab mich die letzten Tage mal querbeet durch die vielen Philips TV Plugins probiert, leider ohne Erfolg.
Mein TV ist ein Philips 75PUS7101.
Username & Passwort hab ich abgefragt und sind vorhanden.
API ist 6.2.0.
Wisst ihr zufällig welches Plugin mit dem Fernseher funktioniert?
EDIT:
Gerade nochmal das relativ aktuelle Philips-Android-TV Plugin probiert.
Hier bekomme ich folgende Fehlermeldung und die Homebridge startet neu:
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at PhilipsAndroidTvAccessory.<anonymous> (/usr/local/lib/node_modules/homebridge-philips-android-tv/src/index.ts:471:37)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-philips-android-tv/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-philips-android-tv/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-philips-android-tv/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
Allerdings kann ich kein "<" in der JSON finden...
Hallo, ich greife mal das Thema nach etwas Recherche wieder auf.
Ich habe einen Philips 65PUS7906/12 mit Android Version 10 drauf. Modelljahr 2021 oder 2022
Ich habe nun versucht ein Plugin zu finden, mit dem ich das Gerät in meine Automationen einbauen kann.
Allerdings scheitert es derzeit an den gegebenheiten der API.... Über die URL kann ich weder über Port 1925, noch über 1926 zugreifen.
Offene Ports:
PORT STATE SERVICE
6466/tcp open unknown
6467/tcp open unknown
8008/tcp open http
8009/tcp open ajp13
8443/tcp open https-alt
9000/tcp open cslistener
10101/tcp open ezmeeting-2
44765/tcp open unknown
56789/tcp open unknown
56790/tcp open unknown
Wenn ich das Python-Script ausführe, haut es mir folgende Fehlermeldung um die Ohren:
pi@pihome:~/philips_android_tv $ python philips.py --host 10.1.1.66 pair
Starting pairing request
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/connection.py", line 140, in _new_conn
conn = connection.create_connection(
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/util/connection.py", line 83, in create_connection
raise err
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/connectionpool.py", line 597, in urlopen
httplib_response = self._make_request(conn, method, url,
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request
self._validate_conn(conn)
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/connectionpool.py", line 844, in _validate_conn
conn.connect()
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/connection.py", line 284, in connect
conn = self._new_conn()
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/connection.py", line 149, in _new_conn
raise NewConnectionError(
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb60f36d0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/requests/adapters.py", line 413, in send
resp = conn.urlopen(
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/connectionpool.py", line 648, in urlopen
retries = retries.increment(method, url, error=e, _pool=self,
File "/home/pi/.local/lib/python3.9/site-packages/requests/packages/urllib3/util/retry.py", line 376, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='10.1.1.66', port=1926): Max retries exceeded with url: /6/pair/request (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb60f36d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/philips_android_tv/philips.py", line 140, in <module>
main()
File "/home/pi/philips_android_tv/philips.py", line 90, in main
pair(config)
File "/home/pi/philips_android_tv/philips.py", line 41, in pair
r = requests.post("https://" + config['address'] + ":1926/6/pair/request", json=data, verify=False)
File "/home/pi/.local/lib/python3.9/site-packages/requests/api.py", line 110, in post
return request('post', url, data=data, json=json, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/requests/adapters.py", line 487, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='10.1.1.66', port=1926): Max retries exceeded with url: /6/pair/request (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb60f36d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Kleines Update:
ich habe eben https://github.com/louis49/homebridge-plugin-androidtv als Plugin für den 65PUS7906/12 installiert.Pairing funktionierte ganz einfach und das Gerät lässt sich auf der UI der Homebridge steuern.
Nur ist es leider weder in der Eve-App, noch in der Home App zu sehen. Hat da jmd. ne Idee?Die Installationsanleitung zu Ende lesen (Punkt 4):
- Install Homebridge by following the instructions.
- Install this plugin using Homebridge Config UI X, or by running npm install -g homebridge-androidtv.
- Connect to http://localhost:8182 and pair detected devices with shown secret code
- On HomeKit app tap on 'Add accessory'
- Enjoy
TVs müssen in der Regel separat in der Home-App hinzugefügt werden.
Auch erscheinen TVs nur in der Home-App, die sind nicht in anderen Apps wie Eve steuerbar.
Alles klar, hat funktioniert. Scheint mir wohl entgangen zu sein. Danke dir!