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.example.com", 6)
tv.getSystem()
print(tv.system)

Pairing with TV

from haphilipsjs import PhilipsTV

tv = PhilipsTV("tv2.example.com", 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-3.2.4.tar.gz (47.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ha_philipsjs-3.2.4-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file ha_philipsjs-3.2.4.tar.gz.

File metadata

  • Download URL: ha_philipsjs-3.2.4.tar.gz
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.1

File hashes

Hashes for ha_philipsjs-3.2.4.tar.gz
Algorithm Hash digest
SHA256 618c94b9d35dec50d4db4391c5b06a0cbfbbfc09078e4cc86759a77c7a34cde4
MD5 594da182d2935dda372f249edb35eec7
BLAKE2b-256 4cbaf4b43b57882c9329bcd155ee6b55a491069e02f4fb54bf68fda9f85245f7

See more details on using hashes here.

File details

Details for the file ha_philipsjs-3.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ha_philipsjs-3.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 03fe53154865ea2a093c8396767e05f85caa9da23388adf70962f24a0e949ec6
MD5 0c272dbc5c85df7e303f4bab9c304a33
BLAKE2b-256 82b5ea1ae7fce4f4ab83bc7f069d7621d00dc50e695040ecc32b87660fb9e0dc

See more details on using hashes here.

Supported by

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