ha-philipsjs


Nameha-philipsjs JSON
Version 3.2.4 PyPI version JSON
download
home_pageNone
SummaryjointSPACE API for Home-Assistant
upload_time2025-09-05 20:26:17
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
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": null,
    "name": "ha-philipsjs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "jointSPACE",
    "author": null,
    "author_email": "Daniel Perna <danielperna84@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4c/ba/f4b43b57882c9329bcd155ee6b55a491069e02f4fb54bf68fda9f85245f7/ha_philipsjs-3.2.4.tar.gz",
    "platform": null,
    "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": null,
    "summary": "jointSPACE API for Home-Assistant",
    "version": "3.2.4",
    "project_urls": {
        "Homepage": "https://github.com/danielperna84/ha-philipsjs"
    },
    "split_keywords": [
        "jointspace"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "82b5ea1ae7fce4f4ab83bc7f069d7621d00dc50e695040ecc32b87660fb9e0dc",
                "md5": "0c272dbc5c85df7e303f4bab9c304a33",
                "sha256": "03fe53154865ea2a093c8396767e05f85caa9da23388adf70962f24a0e949ec6"
            },
            "downloads": -1,
            "filename": "ha_philipsjs-3.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c272dbc5c85df7e303f4bab9c304a33",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 47026,
            "upload_time": "2025-09-05T20:26:15",
            "upload_time_iso_8601": "2025-09-05T20:26:15.921153Z",
            "url": "https://files.pythonhosted.org/packages/82/b5/ea1ae7fce4f4ab83bc7f069d7621d00dc50e695040ecc32b87660fb9e0dc/ha_philipsjs-3.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4cbaf4b43b57882c9329bcd155ee6b55a491069e02f4fb54bf68fda9f85245f7",
                "md5": "594da182d2935dda372f249edb35eec7",
                "sha256": "618c94b9d35dec50d4db4391c5b06a0cbfbbfc09078e4cc86759a77c7a34cde4"
            },
            "downloads": -1,
            "filename": "ha_philipsjs-3.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "594da182d2935dda372f249edb35eec7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 47929,
            "upload_time": "2025-09-05T20:26:17",
            "upload_time_iso_8601": "2025-09-05T20:26:17.550555Z",
            "url": "https://files.pythonhosted.org/packages/4c/ba/f4b43b57882c9329bcd155ee6b55a491069e02f4fb54bf68fda9f85245f7/ha_philipsjs-3.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-05 20:26:17",
    "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: 3.59516s