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.
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.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.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| toshiba_ac_community-0.7.2.tar.gz | 35.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| toshiba_ac_community-0.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.8 kB
Release files / toshiba_ac_community-0.7.2.tar.gz
| Download URL | toshiba_ac_community-0.7.2.tar.gz |
|---|---|
| Size | 35.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cc9ad2a89e31604eab255a9586171f9d79ec1daefd6b972d72763cf3a09f618
|
|
BLAKE2b-256 checksum How to use checksums |
2330c103efe4bccc40115cdb0ba7d42d96da054c28ed709e6d1ceaf0809b828c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / toshiba_ac_community-0.7.2-py3-none-any.whl
| Download URL | toshiba_ac_community-0.7.2-py3-none-any.whl |
|---|---|
| Size | 30.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27ee387d90528fc7beb6e6c4f995d12843d4480f4b18edb23807079cfc41b9c1
|
|
BLAKE2b-256 checksum How to use checksums |
5a60b5c3483519876c75cffc452575eba8a9c449ac3d8970632385b9b5ced1cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|