Intex Spa wifi client
Project description
intex-spa
An AsyncIO-compatible Intex Spa wifi client
Description
This python package aims to provide an interface with the Intex Spa wifi module.
It is compatible with Intex wifi-enabled spas without any specific hardware, as it uses the built-in Intex wifi module.
It uses direct TCP connection to the spa, and does not require access to the Intex cloud. The built-in Intex wifi module only has to be connected to a wifi Access Point.
It is written with asyncio network functions. It only supports asyncio usage.
User installation
python3 -m pip install -U intex-spa
Usage examples
Below are some examples, see examples
directory for more delight.
Retrieve spa status
from intex_spa import IntexSpa
async def use_intex_spa():
intex_spa = IntexSpa(SPA_ADDRESS)
await intex_spa.async_update_status()
asyncio.run(use_intex_spa())
Set spa function state
from intex_spa import IntexSpa
async def use_intex_spa():
intex_spa = IntexSpa(SPA_ADDRESS)
await intex_spa.async_set_heater(True)
asyncio.run(use_intex_spa())
Changelog
This python package follows Semantic Versioning 2.0.0
Reminder: Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.
0.8.1 - 2022-07-12
Add typing hints
Lower excessive log level
0.8.0 - 2022-07-11
Add 'Request Info from spa' feature (#1)
0.7.2 - 2022-07-11
Avoid recursive attempts of closing connections
0.7.1 - 2022-07-03
Correctly re-raise unexpected exception
0.7.0 - 2022-07-03
Raise exception when spa is unreachable
Breaking change: Refactor return values
0.6.0 - 2022-07-03
Handle network exceptions
Breaking change: Refactor return values
0.5.1 - 2022-06-21
Remove unexpected print
0.5.0 - 2022-06-21
Parse eventual error_code
from status
Breaking change: current_temp
can now return False
if an error code is read
0.4.1 - 2022-06-20
Handle concurrent requests sequentially
0.4.0 - 2022-06-18
Add "direct" async_set method to IntexSpa class
Remove platforms parameter to IntexSpa class
0.3.0 - 2022-06-18
Add platforms parameter to IntexSpa class
0.2.1 - 2022-06-11
Make compatible with Python 3.9
0.2.0 - 2022-06-11
Allow client to import package classes
0.1.2 - 2022-06-04
✨ First release to PyPI
0.1.0 - 2022-06-04
✨ First release
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
Built Distribution
Hashes for intex_spa-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa1a4516c774acd0bbad6c1e7bd831be238c8cc8b413700eebc1d9ff3748067d |
|
MD5 | fa94ef47570c09473bd972a1160ba06a |
|
BLAKE2b-256 | d54af2b6ba2f6cfb33937aabced1ebaefaff1d56b4dd7d93bf9f5c317148d335 |