python-hotspring 4.0.1__tar.gz → 5.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.
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/PKG-INFO +6 -8
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/README.md +5 -7
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/pyproject.toml +1 -1
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/src/hotspring/__init__.py +4 -0
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/src/hotspring/const.py +17 -1
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/src/hotspring/hotspring.py +234 -54
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/src/hotspring/models.py +392 -135
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/LICENSE +0 -0
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/src/hotspring/exceptions.py +0 -0
- {python_hotspring-4.0.1 → python_hotspring-5.0.0}/src/hotspring/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-hotspring
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: Asynchronous Python client for Hot Spring Connected Spa Kit 2.
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -45,10 +45,6 @@ Asynchronous Python client for Hot Spring Connected Spa Kit 2.
|
|
|
45
45
|
> This library is currently in heavy development. Not all features might work
|
|
46
46
|
> perfectly, and some features may not be fully tested as they depend on the
|
|
47
47
|
> physical hardware available for testing.
|
|
48
|
-
>
|
|
49
|
-
> The spa's energy consumption estimates (watts, power draw) are not accurate
|
|
50
|
-
> and are most likely incorrect, as the power calculation registers have not
|
|
51
|
-
> been fully reverse-engineered.
|
|
52
48
|
|
|
53
49
|
## About
|
|
54
50
|
|
|
@@ -69,9 +65,11 @@ It is primarily designed to be used as the communication layer for an official
|
|
|
69
65
|
plus the logo light
|
|
70
66
|
- **Water care** — Monitor FreshWater IQ salt system metrics (pH, chlorine,
|
|
71
67
|
ORP, sensor life)
|
|
72
|
-
- **
|
|
73
|
-
sensor flow/switch states, and
|
|
74
|
-
|
|
68
|
+
- **Power & Diagnostics**: Read per-circuit power and current metrics (on spas equipped
|
|
69
|
+
with current-sensing hardware), filter cycle durations, sensor flow/switch states, and
|
|
70
|
+
failure diagnostics
|
|
71
|
+
- **Runtime Tracking**: System uptime and cumulative runtime for supported jet pumps and
|
|
72
|
+
blower in hours
|
|
75
73
|
- **Connection monitoring** — Check LoRA bridge and cloud connectivity status
|
|
76
74
|
- **Energy saving schedules** — View configured energy saving time windows
|
|
77
75
|
- **Clean cycle** — Start or stop the 10-minute clean cycle
|
|
@@ -13,10 +13,6 @@ Asynchronous Python client for Hot Spring Connected Spa Kit 2.
|
|
|
13
13
|
> This library is currently in heavy development. Not all features might work
|
|
14
14
|
> perfectly, and some features may not be fully tested as they depend on the
|
|
15
15
|
> physical hardware available for testing.
|
|
16
|
-
>
|
|
17
|
-
> The spa's energy consumption estimates (watts, power draw) are not accurate
|
|
18
|
-
> and are most likely incorrect, as the power calculation registers have not
|
|
19
|
-
> been fully reverse-engineered.
|
|
20
16
|
|
|
21
17
|
## About
|
|
22
18
|
|
|
@@ -37,9 +33,11 @@ It is primarily designed to be used as the communication layer for an official
|
|
|
37
33
|
plus the logo light
|
|
38
34
|
- **Water care** — Monitor FreshWater IQ salt system metrics (pH, chlorine,
|
|
39
35
|
ORP, sensor life)
|
|
40
|
-
- **
|
|
41
|
-
sensor flow/switch states, and
|
|
42
|
-
|
|
36
|
+
- **Power & Diagnostics**: Read per-circuit power and current metrics (on spas equipped
|
|
37
|
+
with current-sensing hardware), filter cycle durations, sensor flow/switch states, and
|
|
38
|
+
failure diagnostics
|
|
39
|
+
- **Runtime Tracking**: System uptime and cumulative runtime for supported jet pumps and
|
|
40
|
+
blower in hours
|
|
43
41
|
- **Connection monitoring** — Check LoRA bridge and cloud connectivity status
|
|
44
42
|
- **Energy saving schedules** — View configured energy saving time windows
|
|
45
43
|
- **Clean cycle** — Start or stop the 10-minute clean cycle
|
|
@@ -23,7 +23,7 @@ packages = [
|
|
|
23
23
|
readme = "README.md"
|
|
24
24
|
repository = "https://github.com/Moustachauve/python-hotspring"
|
|
25
25
|
# The CI/CD and GitHub Actions release workflows are responsible for setting the version tag
|
|
26
|
-
version = "
|
|
26
|
+
version = "5.0.0"
|
|
27
27
|
|
|
28
28
|
[tool.poetry.dependencies]
|
|
29
29
|
aiohttp = ">=3.0.0"
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from .const import (
|
|
4
4
|
BrightnessLevel,
|
|
5
5
|
DeviceType,
|
|
6
|
+
Endpoint,
|
|
6
7
|
EnergySavingMode,
|
|
7
8
|
HeatingMode,
|
|
8
9
|
JetSpeed,
|
|
@@ -34,6 +35,7 @@ from .models import (
|
|
|
34
35
|
Jet,
|
|
35
36
|
LightZone,
|
|
36
37
|
LogoLight,
|
|
38
|
+
PowerMetrics,
|
|
37
39
|
Spa,
|
|
38
40
|
SpaInfo,
|
|
39
41
|
SpaLock,
|
|
@@ -49,6 +51,7 @@ __all__ = [
|
|
|
49
51
|
"ConnectionStatus",
|
|
50
52
|
"DeviceType",
|
|
51
53
|
"Diagnostics",
|
|
54
|
+
"Endpoint",
|
|
52
55
|
"EnergySaving",
|
|
53
56
|
"EnergySavingMode",
|
|
54
57
|
"FreshWaterIQ",
|
|
@@ -69,6 +72,7 @@ __all__ = [
|
|
|
69
72
|
"LightWheelMode",
|
|
70
73
|
"LightZone",
|
|
71
74
|
"LogoLight",
|
|
75
|
+
"PowerMetrics",
|
|
72
76
|
"Spa",
|
|
73
77
|
"SpaBrand",
|
|
74
78
|
"SpaFailureState",
|
|
@@ -2,7 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from enum import Enum
|
|
5
|
+
from enum import Enum, StrEnum
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Endpoint(StrEnum):
|
|
9
|
+
"""HTTP path served by the Home Network Adapter (HNA).
|
|
10
|
+
|
|
11
|
+
Each member's value is the request path, so members can be passed anywhere
|
|
12
|
+
a plain ``str`` URI is accepted.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
STATUS = "/status"
|
|
16
|
+
STARTUP = "/startup"
|
|
17
|
+
SPA_MODEL = "/spamodel"
|
|
18
|
+
SPA_CONNECT_STATUS = "/spaConnectStatus"
|
|
19
|
+
FRESHWATER_IQ = "/getFWIQData"
|
|
20
|
+
DEBUG_DATA = "/addDebugData"
|
|
21
|
+
SPA_MANAGER = "/spaManager"
|
|
6
22
|
|
|
7
23
|
|
|
8
24
|
class HeatingMode(Enum):
|