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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_smarttub-0.0.47.tar.gz
(54.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_smarttub-0.0.47.tar.gz.
File metadata
- Download URL: python_smarttub-0.0.47.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9aeb476f4c2081ca604341798850ffed33a1050fe722a41e6902a47ba6d36be
|
|
| MD5 |
0ce79cdeccbb14440523807aadcf81d1
|
|
| BLAKE2b-256 |
5e73f581bffe922609e1fb3f3c8cc35571253a1ff898580a9f1251237d6dda11
|
File details
Details for the file python_smarttub-0.0.47-py3-none-any.whl.
File metadata
- Download URL: python_smarttub-0.0.47-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5a3fc26a5fb8ab6a4bc9140c7a11e9a1fad5e5e27dc1a719f454aa7c5e60409
|
|
| MD5 |
ab49e0b68ec2497d0084597640cc6751
|
|
| BLAKE2b-256 |
8167f1d6714c9f4f7e19a9732675f33b7f9dcf5ffd3bc85146d709d70894946d
|