Neues Modul PHTV für Philips Fernseher (inkl. Ambilight)

Begonnen von Loredo, 06 März 2014, 22:09:17

Vorheriges Thema - Nächstes Thema

KyleK

@ares Vielen Dank für die detaillierte Anleitung!
Ich hab einen 2017er Philips TV, alle bisherigen Module oder Snippets für Philips TVs haben nicht wirklich funktioniert, aber diese einfache Variante via HTTPMOD funktioniert wie erwartet.

Sehr cool!
FHEM on Raspberry Pi 3B+
CUL868
7x MAX! Thermostat, 8x MAX! Fensterkontakte
Conbee II + deConz, TradFri Lampen, Osram Smart+ Steckdosen


benedikt-wue

Hallo,
habe das Modul ebenfalls installiert, aber außer dem Wake-On-Lan funktioniert leider nichts auf meinem PUS8007... Wird das Modul noch entwickelt oder ist es komplett "hinfällig"? Schöne Grüße

ares

Hallo,

versuch mal die Lösung vom 12.07.2022, die läuft bei mir nach wie vor zuverlässig.

Viele Grüße
Manfred

benedikt-wue

#439
Scheitert leider wohl bei dem Versuch, Port 1926 aufzurufen...

pi@ledneu:~/philips_android_tv $ python3 philips.py --host 192.168.188.63 pair
Starting pairing request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/requests/packages/urllib3/connection.py", line 140, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.9/dist-packages/requests/packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/usr/local/lib/python3.9/dist-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 "/usr/local/lib/python3.9/dist-packages/requests/packages/urllib3/connectionpool.py", line 597, in urlopen
    httplib_response = self._make_request(conn, method, url,
  File "/usr/local/lib/python3.9/dist-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.9/dist-packages/requests/packages/urllib3/connectionpool.py", line 844, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.9/dist-packages/requests/packages/urllib3/connection.py", line 284, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.9/dist-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 0x75cbe148>: 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 "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 413, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.9/dist-packages/requests/packages/urllib3/connectionpool.py", line 648, in urlopen
    retries = retries.increment(method, url, error=e, _pool=self,
  File "/usr/local/lib/python3.9/dist-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='192.168.188.63', port=1926): Max retries exceeded with url: /6/pair/request (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x75cbe148>: 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 "/usr/local/lib/python3.9/dist-packages/requests/api.py", line 110, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 487, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='192.168.188.63', port=1926): Max retries exceeded with url: /6/pair/request (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x75cbe148>: Failed to establish a new connection: [Errno 111] Connection refused'))


Sehe ich das falsch, dass es an dem Port liegt? Wäre toll, wenn mir jemand weiterhelfen könnte... Möchte ungern wieder auf mein BroadCom - Bridge ausweichen...

benedikt-wue