API to query and control hot tubs using the SmartTub system
Project description
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
pip install pre-commit && pre-commit install
Project details
Release history Release notifications | RSS feed
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.38.tar.gz
(13.1 kB
view details)
Built Distribution
File details
Details for the file python_smarttub-0.0.38.tar.gz
.
File metadata
- Download URL: python_smarttub-0.0.38.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc95ec063a830c79093540bbdf0274c0606ebcf902b2a8b0017bc1f62fa21557 |
|
MD5 | b4a782c4f05ee4cf30b88f0dabf3372f |
|
BLAKE2b-256 | 1887df5ed0b28d36173e90f51582bba95a351da23a3bfe79558a2afad4f1ea9e |
File details
Details for the file python_smarttub-0.0.38-py3-none-any.whl
.
File metadata
- Download URL: python_smarttub-0.0.38-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7721bf320789e11a1612284d81eb75f4c7985d840d2e3651c979a171931838 |
|
MD5 | 5df0569bb9d9ff07deb4af82a21720d7 |
|
BLAKE2b-256 | 2858f7fe9fd3a97fd700e23e59951103966bcd614e6550b4e55bda644ea132ca |