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.
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 toshiba_ac_community-0.6.3.tar.gz.
File metadata
- Download URL: toshiba_ac_community-0.6.3.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56fe3b49cea8f48974b729687481e937ef16f99f3ded7bd17b3fa307dd9c4991
|
|
| MD5 |
83c85cb325ff44d6dd6c567c55352f2c
|
|
| BLAKE2b-256 |
119dd8db0d7c04680a8ef64f2d955e69093d37e07c54367c837b0b79958c2a5b
|
File details
Details for the file toshiba_ac_community-0.6.3-py3-none-any.whl.
File metadata
- Download URL: toshiba_ac_community-0.6.3-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe85ef714485e4ad3996c609ff8f73763d86f71c62455c6c63e8b89322c779e9
|
|
| MD5 |
9f7c9490a5c468626ee8b50cf5669ee0
|
|
| BLAKE2b-256 |
41cf12494b2ed3767101e3b232743ac835fd325b6f015ea7d03d91bcdc45dcef
|