ha-philipsjs


Nameha-philipsjs JSON
Version 3.2.2 PyPI version JSON
download
home_pagehttps://github.com/danielperna84/ha-philipsjs
SummaryjointSPACE API for Home-Assistant
upload_time2024-05-28 19:42:12
maintainerNone
docs_urlNone
authorDaniel Perna
requires_python>=3.8
licenseMIT License
keywords jointspace
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "jointSPACE",
    "author": "Daniel Perna",
    "author_email": "danielperna84@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c4/e9/3de06d7d8ffd3a65119be2f4fcf9740d1bd138499efae34fccce8addeb57/ha-philipsjs-3.2.2.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.2.2",
    "project_urls": {
        "Download": "https://github.com/danielperna84/ha-philipsjs/tarball/3.2.2",
        "Homepage": "https://github.com/danielperna84/ha-philipsjs"
    },
    "split_keywords": [
        "jointspace"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c4e93de06d7d8ffd3a65119be2f4fcf9740d1bd138499efae34fccce8addeb57",
                "md5": "c2fa8fb6b1c669dca202a111ef67f832",
                "sha256": "37bb3b8af6242287e2ab1a6b73e97fcb060cac9e4906f9344589e5d1ff9f6865"
            },
            "downloads": -1,
            "filename": "ha-philipsjs-3.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c2fa8fb6b1c669dca202a111ef67f832",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 47872,
            "upload_time": "2024-05-28T19:42:12",
            "upload_time_iso_8601": "2024-05-28T19:42:12.898363Z",
            "url": "https://files.pythonhosted.org/packages/c4/e9/3de06d7d8ffd3a65119be2f4fcf9740d1bd138499efae34fccce8addeb57/ha-philipsjs-3.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-28 19:42:12",
    "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"
}
        
Elapsed time: 7.67792s