python-smarttub
This package provides an API for querying and controlling hot tubs using the SmartTub system.
Installation
pip3 install python-smarttub
CLI
python3 -m smarttub --help
python3 -m smarttub -u SMARTTUB_EMAIL -p SMARTTUB_PASSWORD info --status
API
from smarttub import SmartTub
async with aiohttp.ClientSession() as session:
st = SmartTub(session)
await st.login(username, password)
account = await st.get_account()
spas = await account.get_spas()
for spa in spas:
spa.get_status()
spa.get_pumps()
spa.get_lights()
...
# See pydoc3 smarttub.api for complete API
See also smarttub/__main__.py for example usage
Troubleshooting
If this module is not working with your device, please run the following command and include the output with your bug report:
python3 -m smarttub -u YOUR_SMARTTUB_EMAIL -p YOUR_SMARTTUB_PASSWORD -vv info -a
Contributing
uv sync --extra dev
uv run pre-commit install
Metadata
Release files for python-smarttub 0.0.47
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_smarttub-0.0.47.tar.gz | 54.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_smarttub-0.0.47-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.7 kB
Release files / python_smarttub-0.0.47.tar.gz
| Download URL | python_smarttub-0.0.47.tar.gz |
|---|---|
| Size | 54.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9aeb476f4c2081ca604341798850ffed33a1050fe722a41e6902a47ba6d36be
|
|
BLAKE2b-256 checksum How to use checksums |
5e73f581bffe922609e1fb3f3c8cc35571253a1ff898580a9f1251237d6dda11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.3
|
Release files / python_smarttub-0.0.47-py3-none-any.whl
| Download URL | python_smarttub-0.0.47-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5a3fc26a5fb8ab6a4bc9140c7a11e9a1fad5e5e27dc1a719f454aa7c5e60409
|
|
BLAKE2b-256 checksum How to use checksums |
8167f1d6714c9f4f7e19a9732675f33b7f9dcf5ffd3bc85146d709d70894946d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.3
|