Python wrapper for FranklinWH
Project description
franklinwh-python
Python bindings to the FranklinWH API, such as it is.
In order to use this, you'll need an access token, and your gateway ID. There's a bundled script which can generate an access token, your gateway ID can be found in the app under More -> Site Address. It's shown as your SN.
python3 -m pip install franklinwh
Informational scripts
Scripts in bin use the API to show detailed information about your installation but have extra dependencies, install with
python3 -m pip install franklinwh[bin]
Most scripts require email address, password, and probably gateway id (referenced above).
python3 bin/get_info.py $FRANKLINWH_EMAIL $FRANKLINWH_PASSWORD $FRANKLINWH_GATEWAY_ID
Development
The Makefile has a target to assist development and eventual release:
prepare- run this once to installfranklinwhin editable mode and prerequisites for bin and build.
This should be run in the context where you will eventually develop, which could be
-
In this case a virtual environment is recommended.
python3 -m venv .venv source .venv/bin/activate
-
Home Assistant Core with FranklinWH integration
This has too many permutations to discuss here but is a primary use for this API.
make prepare
Release
The Makefile has targets to assist the release process:
build- build the distribution.release- upload to PyPi.
The release process involves these steps:
-
bump and commit version
pyproject.toml/project/version must be unique and conform to semantic versioning.
[!NOTE] This may already be included in a Pull Request.
-
build
make buildFix any errors and commit the changes.
-
upload
make 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
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 franklinwh-1.0.0.tar.gz.
File metadata
- Download URL: franklinwh-1.0.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85deacc56c5b0cc7fee9974dc94ba0abc689e259e4a2848c56881e3604d04da8
|
|
| MD5 |
d05bac9ba794bbd2574b4eef7bfba583
|
|
| BLAKE2b-256 |
1f7b69136a21cbceec2dbb1808abe52d049ebc491df8908f57cd2454cc8aaf6a
|
File details
Details for the file franklinwh-1.0.0-py3-none-any.whl.
File metadata
- Download URL: franklinwh-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
952da37d64095be44d2a5f6999791de7047ec044897aedf778669112d2a9566f
|
|
| MD5 |
16206593c4fed60addefa6ee33e1eba5
|
|
| BLAKE2b-256 |
a285cf1fa1a705e1d3f4ee21c8f0e4acd40e74e231c5ce17aa93ec2512f401c0
|