ha-philipsjs 3.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ha_philipsjs-3.2.4.dist-info/METADATA +83 -0
- ha_philipsjs-3.2.4.dist-info/RECORD +14 -0
- ha_philipsjs-3.2.4.dist-info/WHEEL +5 -0
- ha_philipsjs-3.2.4.dist-info/licenses/LICENSE +21 -0
- ha_philipsjs-3.2.4.dist-info/top_level.txt +1 -0
- haphilipsjs/__init__.py +1529 -0
- haphilipsjs/__main__.py +367 -0
- haphilipsjs/auth.py +202 -0
- haphilipsjs/data/__init__.py +1 -0
- haphilipsjs/data/v1.py +236 -0
- haphilipsjs/data/v6.py +10071 -0
- haphilipsjs/dummy/__init__.py +1 -0
- haphilipsjs/dummy/v1.py +55 -0
- haphilipsjs/typing.py +466 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ha-philipsjs
|
|
3
|
+
Version: 3.2.4
|
|
4
|
+
Summary: jointSPACE API for Home-Assistant
|
|
5
|
+
Author-email: Daniel Perna <danielperna84@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/danielperna84/ha-philipsjs
|
|
8
|
+
Keywords: jointSPACE
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: cryptography
|
|
15
|
+
Requires-Dist: httpx>=0.22.0
|
|
16
|
+
Provides-Extra: tests
|
|
17
|
+
Requires-Dist: pytest>3.6.4; extra == "tests"
|
|
18
|
+
Requires-Dist: pytest-cov<2.6; extra == "tests"
|
|
19
|
+
Requires-Dist: pytest-asyncio>=0.20.2; extra == "tests"
|
|
20
|
+
Requires-Dist: coveralls; extra == "tests"
|
|
21
|
+
Requires-Dist: pytest-mock; extra == "tests"
|
|
22
|
+
Requires-Dist: respx>=0.17.0; extra == "tests"
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# ha-philipsjs
|
|
26
|
+
Wrapper library to integrate Philips TVs with jointSPACE API into Home-Assistant
|
|
27
|
+
|
|
28
|
+
This is just being used to wrap the API into a nice object. Nothing fancy.
|
|
29
|
+
|
|
30
|
+
* Support version 1 and 6 of the jointspace API
|
|
31
|
+
* Support pairing process
|
|
32
|
+
* Python typing information on endpoints
|
|
33
|
+
* NotifyChange support for supported tv's
|
|
34
|
+
|
|
35
|
+
Print system data
|
|
36
|
+
```python
|
|
37
|
+
from haphilipsjs import PhilipsTV
|
|
38
|
+
|
|
39
|
+
tv = PhilipsTV("tv2.example.com", 6)
|
|
40
|
+
tv.getSystem()
|
|
41
|
+
print(tv.system)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Pairing with TV
|
|
45
|
+
```python
|
|
46
|
+
from haphilipsjs import PhilipsTV
|
|
47
|
+
|
|
48
|
+
tv = PhilipsTV("tv2.example.com", 6)
|
|
49
|
+
tv.getSystem()
|
|
50
|
+
|
|
51
|
+
state = tv.pairRequest("my_test_app", "My Test App", "mox", "OSX", "native")
|
|
52
|
+
|
|
53
|
+
pin = input("Enter pin:")
|
|
54
|
+
|
|
55
|
+
username, password = tv.pairGrant(state, pin)
|
|
56
|
+
|
|
57
|
+
print(username)
|
|
58
|
+
print(password)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Command line utility:
|
|
63
|
+
```
|
|
64
|
+
usage: python -m haphilipsjs [-h] [-d] -i HOST -a API [-u USERNAME] [-p PASSWORD] {status,monitor,ambilight,pair} ...
|
|
65
|
+
|
|
66
|
+
positional arguments:
|
|
67
|
+
{status,monitor,ambilight,pair}
|
|
68
|
+
commands
|
|
69
|
+
status Show current tv status
|
|
70
|
+
monitor Monitor current tv status
|
|
71
|
+
ambilight Control ambilight
|
|
72
|
+
pair Pair with tv
|
|
73
|
+
|
|
74
|
+
optional arguments:
|
|
75
|
+
-h, --help show this help message and exit
|
|
76
|
+
-d, --debug Debug output
|
|
77
|
+
-i HOST, --host HOST
|
|
78
|
+
-a API, --api API
|
|
79
|
+
-u USERNAME, --username USERNAME
|
|
80
|
+
Username
|
|
81
|
+
-p PASSWORD, --password PASSWORD
|
|
82
|
+
Password
|
|
83
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
ha_philipsjs-3.2.4.dist-info/licenses/LICENSE,sha256=DFfK4MmXCskH1KdQlV-7wdDcaSoBojxIHgQsYUzUI_g,1069
|
|
2
|
+
haphilipsjs/__init__.py,sha256=_b3l9pUk-hQcX3x8Pb2iiPFFtFGFNyptKfWE4tq1ri4,52112
|
|
3
|
+
haphilipsjs/__main__.py,sha256=uRQaArGu5XdeVF441UJxYNmTi_zr3OFuRTOnSsLhexQ,12169
|
|
4
|
+
haphilipsjs/auth.py,sha256=TnjTVoAmWD0nwzgajPtJdOfuY0MJXwbF0ocx2KoTQm8,7379
|
|
5
|
+
haphilipsjs/typing.py,sha256=AKNi7W8zizNRDS5_SD7ZuPt9SxcZbQ2IKW4IxkEhyDY,11024
|
|
6
|
+
haphilipsjs/data/__init__.py,sha256=Xmkxpq8m3Xg3ver0tUap_AB5KAE_W9t550zKcJwP4EY,20
|
|
7
|
+
haphilipsjs/data/v1.py,sha256=7QwZ-W45keaslJmeiOTl_n0PAmMjP3pAuDjgh8bb6PQ,6598
|
|
8
|
+
haphilipsjs/data/v6.py,sha256=3d6yo73HEDQZE1t4OiAGu--lqVAdVj-NpGlfd2uW7sg,428744
|
|
9
|
+
haphilipsjs/dummy/__init__.py,sha256=vSMEOpUHIz5R_e8V9G0wnVfmxMMWudqYViaKBWdy6vQ,18
|
|
10
|
+
haphilipsjs/dummy/v1.py,sha256=1LMifgN774yfXrNixxngsu0gtwQnnEGAsERfimDdVVY,1588
|
|
11
|
+
ha_philipsjs-3.2.4.dist-info/METADATA,sha256=LEgL0ahzPALrrPfAL-2u5RoWpqB-x2NrKR2iwLKZUwI,2308
|
|
12
|
+
ha_philipsjs-3.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
ha_philipsjs-3.2.4.dist-info/top_level.txt,sha256=jWn8XA_nbATmhrKzFdv2lqTpE6Z7xBjjiFcNWBkQjqc,12
|
|
14
|
+
ha_philipsjs-3.2.4.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Daniel Perna
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
haphilipsjs
|