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
Metadata
Release files for ha-philipsjs 3.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ha_philipsjs-3.3.0.tar.gz | 54.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ha_philipsjs-3.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.8 kB
Release files / ha_philipsjs-3.3.0.tar.gz
| Download URL | ha_philipsjs-3.3.0.tar.gz |
|---|---|
| Size | 54.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3afbeb78d3da260e523c34c03ba685a3917a9a163d6860b2f0fb7accbe4265c
|
|
BLAKE2b-256 checksum How to use checksums |
8d3d81c0f25c12e9dfc8f04650e986379c5e2fd71b40ae55f6ae129e39c45d31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ha_philipsjs-3.3.0-py3-none-any.whl
| Download URL | ha_philipsjs-3.3.0-py3-none-any.whl |
|---|---|
| Size | 50.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
774ddc11cea56fb285e28891721def1b97a9038cc8a0a512cac27bc1778e63e2
|
|
BLAKE2b-256 checksum How to use checksums |
745256269fd8b6031a31ba7d87a6b490c0901f7026b4b13c9c0f8e6d698bafed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|