Skip to main content

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)

Source distribution for python-smarttub 0.0.47
File Size Uploaded
python_smarttub-0.0.47.tar.gz 54.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-smarttub 0.0.47
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.47 This release

2 release files

0.0.46

2 release files

0.0.44

2 release files

0.0.43

2 release files

0.0.42

2 release files

0.0.41

2 release files

0.0.40

2 release files

0.0.39

2 release files

0.0.38

2 release files

0.0.36

2 release files

0.0.30

1 release file

0.0.29

1 release file

0.0.28

1 release file

0.0.27

1 release file

0.0.26

1 release file

0.0.25

1 release file

0.0.24

1 release file

0.0.23

1 release file

0.0.22

1 release file

0.0.21

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page