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
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.5.tar.gz
(50.7 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.5.tar.gz.
File metadata
- Download URL: ha_philipsjs-3.2.5.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58821e1a6c54fea58140684ee8de1253330d3a51093b424fbe2c8d7999cf4fc3
|
|
| MD5 |
7dd22276df28a07cb87d740800085267
|
|
| BLAKE2b-256 |
263009bc78e50cfa1c6721e8880f3a5cd137f8e80c8c2dc701b7cb6a2f87f615
|
File details
Details for the file ha_philipsjs-3.2.5-py3-none-any.whl.
File metadata
- Download URL: ha_philipsjs-3.2.5-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c6681ab3871248b25d1bf6440819bb9bd59af44a7c6b3998ac389577f36cd52
|
|
| MD5 |
84789b3447045d5b8c5e92d04d313cc1
|
|
| BLAKE2b-256 |
1af06b9849427ee9e7c7bcf08f220cbbaa9462ec0c8696b0334204827a6172b5
|