pysilverline 0.2.1__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.
@@ -0,0 +1,22 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .pytest_cache/
4
+ .coverage
5
+ htmlcov/
6
+ *.egg-info/
7
+ build/
8
+ dist/
9
+ .venv/
10
+ venv/
11
+ .mypy_cache/
12
+ .ruff_cache/
13
+ .snapshots/
14
+ .DS_Store
15
+
16
+ # Secrets — local credentials for the live device
17
+ access.yaml
18
+
19
+ # Live-device probe captures (large, host-specific, regenerated as needed)
20
+ tests/fixtures/live_*.json
21
+ tests/fixtures/full_exercise.json
22
+ tests/fixtures/range_probe.json
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Christian Reiss
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,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: pysilverline
3
+ Version: 0.2.1
4
+ Summary: Async client for Poolex Silverline / Tuya v3.3 pool heat pumps.
5
+ Project-URL: Homepage, https://github.com/christianreiss/ha-silverline
6
+ Project-URL: Issues, https://github.com/christianreiss/ha-silverline/issues
7
+ Author-email: Christian Reiss <email@christian-reiss.de>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: heatpump,home-assistant,poolex,silverline,tuya
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Topic :: Home Automation
16
+ Classifier: Typing :: Typed
17
+ Requires-Python: >=3.13
18
+ Requires-Dist: cryptography>=41.0
19
+ Provides-Extra: test
20
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'test'
21
+ Requires-Dist: pytest>=8; extra == 'test'
22
+ Description-Content-Type: text/markdown
23
+
24
+ # pysilverline
25
+
26
+ Async client for **Poolex Silverline / Tuya v3.3** pool heat pumps. Speaks the
27
+ local Tuya protocol (TCP/6668, AES-128-ECB) directly — no cloud, no Smart Life
28
+ account at runtime.
29
+
30
+ This package is the I/O layer underneath the
31
+ [`poolex_silverline`](https://github.com/christianreiss/ha-silverline) Home
32
+ Assistant integration but works standalone too.
33
+
34
+ ## Install
35
+
36
+ ```bash
37
+ pip install pysilverline
38
+ ```
39
+
40
+ ## Use
41
+
42
+ ```python
43
+ import asyncio
44
+ from pysilverline import SilverlineClient
45
+
46
+ async def main():
47
+ client = SilverlineClient(
48
+ host="10.0.0.50",
49
+ device_id="bf1234567890abcdefghij",
50
+ local_key="0123456789abcdef",
51
+ )
52
+ await client.connect()
53
+ state = await client.get_status()
54
+ print(state)
55
+ await client.set_dp(2, 28) # set target temp to 28 °C
56
+ await client.set_dp(4, "BoostHeat")
57
+ await client.disconnect()
58
+
59
+ asyncio.run(main())
60
+ ```
61
+
62
+ Listen for spontaneous push updates from the device:
63
+
64
+ ```python
65
+ def on_update(state):
66
+ print("push:", state.mode, state.temp_current)
67
+
68
+ unsub = client.add_listener(on_update)
69
+ # ... later
70
+ unsub()
71
+ ```
72
+
73
+ ## Compatible devices
74
+
75
+ The Tuya schema is shared across the Poolex Silverline FI family and several
76
+ OEM siblings: Poolex JetLine Selection FI, Steinbach Silent Mini, Brustec BR
77
+ series, Phalén Calidi XP. DPs 1, 2, 3, 4, 13 are confirmed across the family;
78
+ DPs 101–111 are firmware-dependent.
79
+
80
+ ## License
81
+
82
+ MIT
@@ -0,0 +1,59 @@
1
+ # pysilverline
2
+
3
+ Async client for **Poolex Silverline / Tuya v3.3** pool heat pumps. Speaks the
4
+ local Tuya protocol (TCP/6668, AES-128-ECB) directly — no cloud, no Smart Life
5
+ account at runtime.
6
+
7
+ This package is the I/O layer underneath the
8
+ [`poolex_silverline`](https://github.com/christianreiss/ha-silverline) Home
9
+ Assistant integration but works standalone too.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pip install pysilverline
15
+ ```
16
+
17
+ ## Use
18
+
19
+ ```python
20
+ import asyncio
21
+ from pysilverline import SilverlineClient
22
+
23
+ async def main():
24
+ client = SilverlineClient(
25
+ host="10.0.0.50",
26
+ device_id="bf1234567890abcdefghij",
27
+ local_key="0123456789abcdef",
28
+ )
29
+ await client.connect()
30
+ state = await client.get_status()
31
+ print(state)
32
+ await client.set_dp(2, 28) # set target temp to 28 °C
33
+ await client.set_dp(4, "BoostHeat")
34
+ await client.disconnect()
35
+
36
+ asyncio.run(main())
37
+ ```
38
+
39
+ Listen for spontaneous push updates from the device:
40
+
41
+ ```python
42
+ def on_update(state):
43
+ print("push:", state.mode, state.temp_current)
44
+
45
+ unsub = client.add_listener(on_update)
46
+ # ... later
47
+ unsub()
48
+ ```
49
+
50
+ ## Compatible devices
51
+
52
+ The Tuya schema is shared across the Poolex Silverline FI family and several
53
+ OEM siblings: Poolex JetLine Selection FI, Steinbach Silent Mini, Brustec BR
54
+ series, Phalén Calidi XP. DPs 1, 2, 3, 4, 13 are confirmed across the family;
55
+ DPs 101–111 are firmware-dependent.
56
+
57
+ ## License
58
+
59
+ MIT
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "pysilverline"
7
+ version = "0.2.1"
8
+ description = "Async client for Poolex Silverline / Tuya v3.3 pool heat pumps."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.13"
12
+ authors = [{ name = "Christian Reiss", email = "email@christian-reiss.de" }]
13
+ keywords = ["tuya", "poolex", "silverline", "heatpump", "home-assistant"]
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Topic :: Home Automation",
20
+ "Typing :: Typed",
21
+ ]
22
+ dependencies = ["cryptography>=41.0"]
23
+
24
+ [project.optional-dependencies]
25
+ test = ["pytest>=8", "pytest-asyncio>=0.23"]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/christianreiss/ha-silverline"
29
+ Issues = "https://github.com/christianreiss/ha-silverline/issues"
30
+
31
+ [tool.hatch.build.targets.wheel]
32
+ packages = ["src/pysilverline"]
33
+
34
+ [tool.pytest.ini_options]
35
+ asyncio_mode = "auto"
36
+ testpaths = ["tests"]
37
+ addopts = "-p no:homeassistant -p no:pytest_homeassistant_custom_component -p no:pytest-homeassistant-custom-component -p no:syrupy"
38
+
39
+ [tool.mypy]
40
+ strict = true
41
+ python_version = "3.13"
42
+ files = ["src/pysilverline"]
@@ -0,0 +1,30 @@
1
+ """Async client for Poolex Silverline / Tuya v3.3 pool heat pumps."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from . import const
6
+ from .client import SilverlineClient
7
+ from .discovery import DiscoveryInfo, discover, discover_once
8
+ from .exceptions import (
9
+ CannotConnect,
10
+ InvalidAuth,
11
+ ProtocolError,
12
+ SilverlineError,
13
+ )
14
+ from .models import DeviceInfo, DeviceState
15
+
16
+ __all__ = [
17
+ "CannotConnect",
18
+ "DeviceInfo",
19
+ "DeviceState",
20
+ "DiscoveryInfo",
21
+ "InvalidAuth",
22
+ "ProtocolError",
23
+ "SilverlineClient",
24
+ "SilverlineError",
25
+ "const",
26
+ "discover",
27
+ "discover_once",
28
+ ]
29
+
30
+ __version__ = "0.2.1"