Skip to main content

Community fork: control Toshiba HVAC systems with WiFi

Project description

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

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):

    pip3 install -e .

Usage

from toshiba_ac.device_manager import ToshibaAcDeviceManager

device_manager = ToshibaAcDeviceManager(username, password)
sas_token = await device_manager.connect()
devices = await device_manager.get_devices()

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 toshiba_ac_gui.py

Reporting issues

License

Apache-2.0, same as the original project.

Project details


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.4.1.tar.gz (27.1 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.4.1-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toshiba_ac_community-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1f86f2e926ce8a1c64fa56171b3494e9caaf7034e285db6c4d05364c21699606
MD5 cac1b3abb7fb8a24b18fd50e6e02b7f3
BLAKE2b-256 fd376631ec4613780571ba9034679dcf5d7b1b830443ac84a8a14fc7aac6184a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for toshiba_ac_community-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3be7ac3240f9f6a86ec3c4ac6596a5ebb6287b166f8806818efc188d97d46782
MD5 49cb63227a95948c80f2aa8478ee4c24
BLAKE2b-256 be648eba7fc689da6c9f739e89dab61aa6cf8f25520d3b008f4e44e4a4ef7e7e

See more details on using hashes here.

Supported by

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