# 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
```python
from haphilipsjs import PhilipsTV
tv = PhilipsTV("tv2.example.com", 6)
tv.getSystem()
print(tv.system)
```
Pairing with TV
```python
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/danielperna84/ha-philipsjs",
"name": "ha-philipsjs",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "jointSPACE",
"author": "Daniel Perna",
"author_email": "danielperna84@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/67/80/58851b887174709e30fc60674598102069d27836f50ae58e357fd2d9413e/ha-philipsjs-3.1.1.tar.gz",
"platform": "any",
"description": "# ha-philipsjs\nWrapper library to integrate Philips TVs with jointSPACE API into Home-Assistant\n\nThis is just being used to wrap the API into a nice object. Nothing fancy.\n\n* Support version 1 and 6 of the jointspace API\n* Support pairing process\n* Python typing information on endpoints\n* NotifyChange support for supported tv's\n\nPrint system data\n```python\nfrom haphilipsjs import PhilipsTV\n\ntv = PhilipsTV(\"tv2.example.com\", 6)\ntv.getSystem()\nprint(tv.system)\n```\n\nPairing with TV\n```python\nfrom haphilipsjs import PhilipsTV\n\ntv = PhilipsTV(\"tv2.example.com\", 6)\ntv.getSystem()\n\nstate = tv.pairRequest(\"my_test_app\", \"My Test App\", \"mox\", \"OSX\", \"native\")\n\npin = input(\"Enter pin:\")\n\nusername, password = tv.pairGrant(state, pin)\n\nprint(username)\nprint(password)\n```\n\n\nCommand line utility:\n```\nusage: python -m haphilipsjs [-h] [-d] -i HOST -a API [-u USERNAME] [-p PASSWORD] {status,monitor,ambilight,pair} ...\n\npositional arguments:\n {status,monitor,ambilight,pair}\n commands\n status Show current tv status\n monitor Monitor current tv status\n ambilight Control ambilight\n pair Pair with tv\n\noptional arguments:\n -h, --help show this help message and exit\n -d, --debug Debug output\n -i HOST, --host HOST\n -a API, --api API\n -u USERNAME, --username USERNAME\n Username\n -p PASSWORD, --password PASSWORD\n Password\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "jointSPACE API for Home-Assistant",
"version": "3.1.1",
"project_urls": {
"Download": "https://github.com/danielperna84/ha-philipsjs/tarball/3.1.1",
"Homepage": "https://github.com/danielperna84/ha-philipsjs"
},
"split_keywords": [
"jointspace"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "678058851b887174709e30fc60674598102069d27836f50ae58e357fd2d9413e",
"md5": "6f95429c3589bca39350c2d705f11c90",
"sha256": "5c6fbca38f8ce3e2f008250800c9fcce9a24bf4e1f0e7c92f2d7b7dd6d000e8b"
},
"downloads": -1,
"filename": "ha-philipsjs-3.1.1.tar.gz",
"has_sig": false,
"md5_digest": "6f95429c3589bca39350c2d705f11c90",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 47515,
"upload_time": "2023-10-07T08:18:18",
"upload_time_iso_8601": "2023-10-07T08:18:18.325401Z",
"url": "https://files.pythonhosted.org/packages/67/80/58851b887174709e30fc60674598102069d27836f50ae58e357fd2d9413e/ha-philipsjs-3.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-07 08:18:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "danielperna84",
"github_project": "ha-philipsjs",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ha-philipsjs"
}