Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielperna84/ha-philipsjs
Wrapper library to integrate Philips TVs with jointSPACE API into Home-Assistant
https://github.com/danielperna84/ha-philipsjs
home-assistant philips
Last synced: 3 days ago
JSON representation
Wrapper library to integrate Philips TVs with jointSPACE API into Home-Assistant
- Host: GitHub
- URL: https://github.com/danielperna84/ha-philipsjs
- Owner: danielperna84
- License: mit
- Created: 2016-11-02T20:38:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T19:40:33.000Z (4 months ago)
- Last Synced: 2024-09-25T21:19:03.974Z (8 days ago)
- Topics: home-assistant, philips
- Language: Python
- Size: 310 KB
- Stars: 20
- Watchers: 5
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ha-philipsjs
Wrapper library to integrate Philips TVs with jointSPACE API into Home-AssistantThis 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'sPrint system data
```python
from haphilipsjs import PhilipsTVtv = PhilipsTV("tv2.example.com", 6)
tv.getSystem()
print(tv.system)
```Pairing with TV
```python
from haphilipsjs import PhilipsTVtv = 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 tvoptional 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
```