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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
618c94b9d35dec50d4db4391c5b06a0cbfbbfc09078e4cc86759a77c7a34cde4
|
|
| MD5 |
594da182d2935dda372f249edb35eec7
|
|
| BLAKE2b-256 |
4cbaf4b43b57882c9329bcd155ee6b55a491069e02f4fb54bf68fda9f85245f7
|
File details
Details for the file ha_philipsjs-3.2.4-py3-none-any.whl.
File metadata
- Download URL: ha_philipsjs-3.2.4-py3-none-any.whl
- Upload date:
- Size: 47.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03fe53154865ea2a093c8396767e05f85caa9da23388adf70962f24a0e949ec6
|
|
| MD5 |
0c272dbc5c85df7e303f4bab9c304a33
|
|
| BLAKE2b-256 |
82b5ea1ae7fce4f4ab83bc7f069d7621d00dc50e695040ecc32b87660fb9e0dc
|