Toshiba AC control (community)
Python library to control Toshiba AC units over Toshiba's cloud service - HTTP login, device discovery, and real-time state updates over AMQP.
This is the community-maintained protocol library behind the Toshiba AC (Community) Home Assistant integration. It is published on PyPI as toshiba-ac-community; the Python import name is toshiba_ac_community. Before 0.8.0 it was toshiba_ac; it was renamed so it no longer clashes with the upstream toshiba-ac package when both are installed.
Originally created by Kamil Sroka (KaSroka) - full credit for the protocol work. This repository is maintained independently so fixes and improvements can ship on their own schedule.
Installation
pip3 install toshiba-ac-community
Requires Python 3.10 or newer.
Note: this package pins the pre-release
azure-iot-device==2.15.0rc1. Installers that refuse pre-release transitive dependencies (e.g.uv) needazure-iot-device==2.15.0rc1installed first, or pre-releases enabled.
Installation for development
-
Clone this repository:
git clone https://github.com/vmvelev/Toshiba-AC-control.git -
Install the package (editable if you want to edit the code):
cd Toshiba-AC-control && pip3 install -e .
Usage
import asyncio
from toshiba_ac_community.device_manager import ToshibaAcDeviceManager
async def main():
# Must be constructed inside a running event loop
device_manager = ToshibaAcDeviceManager(username, password)
sas_token = await device_manager.connect()
devices = await device_manager.get_devices()
...
await device_manager.shutdown()
asyncio.run(main())
Sample script
Sample GUI application samples/toshiba_ac_gui.py demonstrates usage of this package. It allows switching basic functionalities of the AC and shows current status.
It requires env variables with login information:
TOSHIBA_USER=<USER_NAME> TOSHIBA_PASS=<PASSWORD> python3 samples/toshiba_ac_gui.py
Reporting issues
- Library / device communication issues: open an issue here
- Home Assistant integration issues: home-assistant-toshiba_ac
License
Apache-2.0, same as the original project.
Metadata
Release files for toshiba-ac-community 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toshiba_ac_community-0.8.0.tar.gz | 39.2 kB | Without provenance | Details for toshiba_ac_community-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toshiba_ac_community-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for toshiba_ac_community-0.8.0-py3-none-any.whl |
Total release size: 71.5 kB
Release files / toshiba_ac_community-0.8.0.tar.gz
| Download URL | toshiba_ac_community-0.8.0.tar.gz |
|---|---|
| Size | 39.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2914e48d7f82632c8f693f676101358368169dff1e99ca4cab23d478a5e1db30
|
|
BLAKE2b-256 checksum How to use checksums |
4b76443941324a16c44de4135f031eac554da16dd5d592e2f7020243f999f0e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / toshiba_ac_community-0.8.0-py3-none-any.whl
| Download URL | toshiba_ac_community-0.8.0-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
050e2a040e033186914b2506ae50bed93fc8522ae77d4789591c453345630843
|
|
BLAKE2b-256 checksum How to use checksums |
74a8ed6dfc14203ad9ca5beb73a7d10c72121e078d300211797f44a1ff8a3053
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for toshiba-ac-community 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.