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.37.tar.gz
(13.1 kB
view hashes)
Built Distribution
Close
Hashes for python_smarttub-0.0.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d81f96e29b231843af76412e29af58a4b16d4e0b871486a46d4f8ee1ce4a8e0e |
|
MD5 | c262f47a6c52b34b7a77db1d742eb834 |
|
BLAKE2b-256 | 82130bd154b2223df9923e2e2967947472e1900c74194196c99e3aca945e46e8 |