Skip to main content

PyPI Github Release Github Open Issues Github Open Pull Requests

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) need azure-iot-device==2.15.0rc1 installed first, or pre-releases enabled.

Installation for development

  1. Clone this repository:

    git clone https://github.com/vmvelev/Toshiba-AC-control.git

  2. 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

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

toshiba_ac_community-0.6.2.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toshiba_ac_community-0.6.2-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file toshiba_ac_community-0.6.2.tar.gz.

File metadata

  • Download URL: toshiba_ac_community-0.6.2.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for toshiba_ac_community-0.6.2.tar.gz
Algorithm Hash digest
SHA256 cdf872fc2f9590cc36e02731af5a06fcb9e4daacb6db13663acc263a97d57c80
MD5 8d123665e1ab6a31b581b0c57048e1af
BLAKE2b-256 38fb1aa691f1e0e434bd2cd052fe7a6500b43dd15b7fc792d1bc9dbc8c1fd395

See more details on using hashes here.

File details

Details for the file toshiba_ac_community-0.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for toshiba_ac_community-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1e0acd4551946c3abac8e81c08cb73fcd26ec9e30d0029ece83eb5774aac288
MD5 3b8d4a8758ba6d5124e5b92946209c24
BLAKE2b-256 b85a5be01657ac34042a8f4605b8d143b11bbca2f091ad2bb3fb1f12db4efa93

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.1

2 files

0.7.0

2 files

0.6.3

2 files

This release

0.6.2 This release

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page