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.1.1.tar.gz
(47.5 kB
view details)
File details
Details for the file ha-philipsjs-3.1.1.tar.gz
.
File metadata
- Download URL: ha-philipsjs-3.1.1.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c6fbca38f8ce3e2f008250800c9fcce9a24bf4e1f0e7c92f2d7b7dd6d000e8b |
|
MD5 | 6f95429c3589bca39350c2d705f11c90 |
|
BLAKE2b-256 | 678058851b887174709e30fc60674598102069d27836f50ae58e357fd2d9413e |