livisi 0.0.25__tar.gz → 1.0.0__tar.gz
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.
- livisi-1.0.0/LICENSE +0 -0
- livisi-1.0.0/PKG-INFO +27 -0
- livisi-1.0.0/README.md +8 -0
- livisi-1.0.0/livisi/__init__.py +91 -0
- livisi-1.0.0/livisi/livisi_connector.py +689 -0
- livisi-1.0.0/livisi/livisi_const.py +30 -0
- livisi-1.0.0/livisi/livisi_controller.py +17 -0
- livisi-1.0.0/livisi/livisi_device.py +53 -0
- livisi-1.0.0/livisi/livisi_errors.py +124 -0
- livisi-1.0.0/livisi/livisi_json_util.py +23 -0
- livisi-1.0.0/livisi/livisi_websocket.py +108 -0
- livisi-1.0.0/livisi/livisi_websocket_event.py +13 -0
- livisi-1.0.0/livisi.egg-info/PKG-INFO +27 -0
- livisi-1.0.0/livisi.egg-info/SOURCES.txt +18 -0
- {livisi-0.0.25 → livisi-1.0.0}/pyproject.toml +2 -3
- livisi-0.0.25/LICENSE +0 -201
- livisi-0.0.25/PKG-INFO +0 -24
- livisi-0.0.25/README.md +0 -6
- livisi-0.0.25/livisi/__init__.py +0 -4
- livisi-0.0.25/livisi/aiolivisi.py +0 -270
- livisi-0.0.25/livisi/const.py +0 -40
- livisi-0.0.25/livisi/errors.py +0 -20
- livisi-0.0.25/livisi/websocket.py +0 -113
- livisi-0.0.25/livisi.egg-info/PKG-INFO +0 -24
- livisi-0.0.25/livisi.egg-info/SOURCES.txt +0 -14
- {livisi-0.0.25 → livisi-1.0.0}/livisi/livisi_event.py +0 -0
- {livisi-0.0.25 → livisi-1.0.0}/livisi.egg-info/dependency_links.txt +0 -0
- {livisi-0.0.25 → livisi-1.0.0}/livisi.egg-info/requires.txt +0 -0
- {livisi-0.0.25 → livisi-1.0.0}/livisi.egg-info/top_level.txt +0 -0
- {livisi-0.0.25 → livisi-1.0.0}/setup.cfg +0 -0
livisi-1.0.0/LICENSE
ADDED
File without changes
|
livisi-1.0.0/PKG-INFO
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: livisi
|
3
|
+
Version: 1.0.0
|
4
|
+
Summary: Connection library for the abandoned Livisi Smart Home system
|
5
|
+
Author-email: Felix Rotthowe <felix@planbnet.org>
|
6
|
+
License: Apache-2.0
|
7
|
+
Project-URL: Source, https://github.com/planbnet/livisi
|
8
|
+
Project-URL: Tracker, https://github.com/planbnet/livisi/issues
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
11
|
+
Classifier: Operating System :: OS Independent
|
12
|
+
Requires-Python: >=3.10
|
13
|
+
Description-Content-Type: text/markdown
|
14
|
+
License-File: LICENSE
|
15
|
+
Requires-Dist: colorlog>=6.8.2
|
16
|
+
Requires-Dist: aiohttp>=3.8.5
|
17
|
+
Requires-Dist: websockets>=11.0.3
|
18
|
+
Dynamic: license-file
|
19
|
+
|
20
|
+
# livisi
|
21
|
+
|
22
|
+
# Asynchronous library to communicate with LIVISI Smart Home Controller
|
23
|
+
Requires Python 3.10+ (might work with versions down to 3.8 but I never tested it) and uses asyncio and aiohttp.
|
24
|
+
|
25
|
+
This library started as a fork of the unmaintained aiolivisi lib and was developed inside the [unofficial livisi integration for Home Assistant](https://github.com/planbnet/livisi_unofficial)
|
26
|
+
|
27
|
+
The versions starting with `0.0.` are still compatible to the old aiolivisi code, while `1.0.0` will introduce lots of breaking changes besides support for more devices and improved connection stability and error handling.
|
livisi-1.0.0/README.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# livisi
|
2
|
+
|
3
|
+
# Asynchronous library to communicate with LIVISI Smart Home Controller
|
4
|
+
Requires Python 3.10+ (might work with versions down to 3.8 but I never tested it) and uses asyncio and aiohttp.
|
5
|
+
|
6
|
+
This library started as a fork of the unmaintained aiolivisi lib and was developed inside the [unofficial livisi integration for Home Assistant](https://github.com/planbnet/livisi_unofficial)
|
7
|
+
|
8
|
+
The versions starting with `0.0.` are still compatible to the old aiolivisi code, while `1.0.0` will introduce lots of breaking changes besides support for more devices and improved connection stability and error handling.
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# __init__.py
|
2
|
+
|
3
|
+
# Import key classes, constants, and exceptions
|
4
|
+
|
5
|
+
# livisi_connector.py
|
6
|
+
from .livisi_connector import LivisiConnection, connect
|
7
|
+
|
8
|
+
# livisi_controller.py
|
9
|
+
from .livisi_controller import LivisiController
|
10
|
+
|
11
|
+
# livisi_device.py
|
12
|
+
from .livisi_device import LivisiDevice
|
13
|
+
|
14
|
+
# livisi_websocket.py
|
15
|
+
from .livisi_websocket import LivisiWebsocket
|
16
|
+
|
17
|
+
# livisi_websocket_event.py
|
18
|
+
from .livisi_websocket_event import LivisiWebsocketEvent
|
19
|
+
|
20
|
+
# livisi_const.py
|
21
|
+
from .livisi_const import (
|
22
|
+
LOGGER,
|
23
|
+
V2_NAME,
|
24
|
+
V1_NAME,
|
25
|
+
V2_WEBSOCKET_PORT,
|
26
|
+
CLASSIC_WEBSOCKET_PORT,
|
27
|
+
WEBSERVICE_PORT,
|
28
|
+
REQUEST_TIMEOUT,
|
29
|
+
CONTROLLER_DEVICE_TYPES,
|
30
|
+
BATTERY_LOW,
|
31
|
+
UPDATE_AVAILABLE,
|
32
|
+
LIVISI_EVENT_STATE_CHANGED,
|
33
|
+
LIVISI_EVENT_BUTTON_PRESSED,
|
34
|
+
LIVISI_EVENT_MOTION_DETECTED,
|
35
|
+
IS_REACHABLE,
|
36
|
+
EVENT_BUTTON_PRESSED,
|
37
|
+
EVENT_BUTTON_LONG_PRESSED,
|
38
|
+
EVENT_MOTION_DETECTED,
|
39
|
+
COMMAND_RESTART,
|
40
|
+
)
|
41
|
+
|
42
|
+
# livisi_errors.py
|
43
|
+
from .livisi_errors import (
|
44
|
+
LivisiException,
|
45
|
+
ShcUnreachableException,
|
46
|
+
WrongCredentialException,
|
47
|
+
IncorrectIpAddressException,
|
48
|
+
ErrorCodeException,
|
49
|
+
ERROR_CODES,
|
50
|
+
)
|
51
|
+
|
52
|
+
# Define __all__ to specify what is exported when using 'from livisi import *'
|
53
|
+
__all__ = [
|
54
|
+
# From livisi_connector.py
|
55
|
+
"LivisiConnection",
|
56
|
+
"connect",
|
57
|
+
# From livisi_controller.py
|
58
|
+
"LivisiController",
|
59
|
+
# From livisi_device.py
|
60
|
+
"LivisiDevice",
|
61
|
+
# From livisi_websocket.py
|
62
|
+
"LivisiWebsocket",
|
63
|
+
# From livisi_websocket_event.py
|
64
|
+
"LivisiWebsocketEvent",
|
65
|
+
# From livisi_const.py
|
66
|
+
"LOGGER",
|
67
|
+
"V2_NAME",
|
68
|
+
"V1_NAME",
|
69
|
+
"V2_WEBSOCKET_PORT",
|
70
|
+
"CLASSIC_WEBSOCKET_PORT",
|
71
|
+
"WEBSERVICE_PORT",
|
72
|
+
"REQUEST_TIMEOUT",
|
73
|
+
"CONTROLLER_DEVICE_TYPES",
|
74
|
+
"BATTERY_LOW",
|
75
|
+
"UPDATE_AVAILABLE",
|
76
|
+
"LIVISI_EVENT_STATE_CHANGED",
|
77
|
+
"LIVISI_EVENT_BUTTON_PRESSED",
|
78
|
+
"LIVISI_EVENT_MOTION_DETECTED",
|
79
|
+
"IS_REACHABLE",
|
80
|
+
"EVENT_BUTTON_PRESSED",
|
81
|
+
"EVENT_BUTTON_LONG_PRESSED",
|
82
|
+
"EVENT_MOTION_DETECTED",
|
83
|
+
"COMMAND_RESTART",
|
84
|
+
# From livisi_errors.py
|
85
|
+
"LivisiException",
|
86
|
+
"ShcUnreachableException",
|
87
|
+
"WrongCredentialException",
|
88
|
+
"IncorrectIpAddressException",
|
89
|
+
"ErrorCodeException",
|
90
|
+
"ERROR_CODES",
|
91
|
+
]
|