Skip to main content

jointSPACE API for Home-Assistant

Project description

ha-philipsjs

Wrapper library to integrate Philips TVs with jointSPACE API into Home-Assistant

This is just being used to wrap the API into a nice object. Nothing fancy.

  • Support version 1 and 6 of the jointspace API
  • Support pairing process
  • Python typing information on endpoints
  • NotifyChange support for supported tv's

Print system data

from haphilipsjs import PhilipsTV

tv = PhilipsTV("tv2.ecce.loc", 6)
tv.getSystem()
print(tv.system)

Pairing with TV

from haphilipsjs import PhilipsTV

tv = PhilipsTV("tv2.ecce.loc", 6)
tv.getSystem()

state = tv.pairRequest("my_test_app", "My Test App", "mox", "OSX", "native")

pin = input("Enter pin:")

username, password = tv.pairGrant(state, pin)

print(username)
print(password)

Command line utility:

usage: python -m haphilipsjs [-h] [-d] -i HOST -a API [-u USERNAME] [-p PASSWORD] {status,monitor,ambilight,pair} ...

positional arguments:
  {status,monitor,ambilight,pair}
                        commands
    status              Show current tv status
    monitor             Monitor current tv status
    ambilight           Control ambilight
    pair                Pair with tv

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Debug output
  -i HOST, --host HOST
  -a API, --api API
  -u USERNAME, --username USERNAME
                        Username
  -p PASSWORD, --password PASSWORD
                        Password

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ha-philipsjs-1.2.0.tar.gz (10.4 kB view details)

Uploaded Source

File details

Details for the file ha-philipsjs-1.2.0.tar.gz.

File metadata

  • Download URL: ha-philipsjs-1.2.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.9.1

File hashes

Hashes for ha-philipsjs-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c6e81fe0d8494577d98e7df9e7297c4a4cd7ab9e5ef6937e59bf3d49f3ef65d1
MD5 3369aedb429dada89c77ab9529784c2c
BLAKE2b-256 d4098665d8f512e61a6476c7bc3d23b4d48e58a812e1ff067ef20ab968b93bad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page