airton-ac
Control an Airton AC device over LAN. This requires having the wifi module.
Features
- asynchronous methods and transport
- persistent communication to the device
- automatic remote device state updates (remotes can still be used)
- configurable buffering for subsequent updates
- constraints between device commands
- Domoticz plugin using a dedicated thread
Usage
See local tuya requirements first to find device information.
Example usage:
from local_tuya import DeviceConfig, ProtocolConfig
from airton_ac import ACDevice, ACFanSpeed
async with ACDevice(DeviceConfig(ProtocolConfig("{id}", "{address}", b"{key}"))) as device:
await device.switch(True)
await device.set_speed(ACFanSpeed.L2)
await device.switch(False)
Domoticz plugin
The plugin requires having fetched device information using instructions above. Make sure to read plugin instructions first.
💡 The Domoticz version should be
2022.1or higher.
python -m pip install --upgrade airton-ac[domoticz]
python -m airton_ac.domoticz.install
Domoticz path defaults to ~/domoticz but you can pass a -p option to the second command to change that:
python -m airton_ac.domoticz.install -p /some/other/path
Restart Domoticz and create a new Hardware using Tuya Airton AC. Fill in device information and add.
The hardware will create up to 5 devices to control the fan (all prefixed with hardware name):
power: to turn on or offset point: to set the target temperaturetemperature: to record curent temperature as measured by the unitmode: to control operating modefan: to control fan speedeco: toggle low heat when heating and eco-mode when coolinglight: toggle display on the unitswing: toggle swing modesleep: toggle sleep modehealth: toggle health mode
You can customize the devices you want added in the hardware page.
All device names and levels can be changed once added as only IDs are used internally.
Metadata
Release files for airton_ac 3.0.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 |
|---|---|---|---|---|
| airton_ac-3.0.0.tar.gz | 5.3 kB | Without provenance | Details for airton_ac-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| airton_ac-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for airton_ac-3.0.0-py3-none-any.whl |
Total release size: 11.6 kB
Release files / airton_ac-3.0.0.tar.gz
| Download URL | airton_ac-3.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fe12b2e42dda121d61df67734241d79198b946d4cbc538c17e2ad3dac456946
|
|
BLAKE2b-256 checksum How to use checksums |
b613599ae465478de1a087628ab3cd30ff71eb9ce438b4bc7723f0f27a0dda08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1018-azure
|
Release files / airton_ac-3.0.0-py3-none-any.whl
| Download URL | airton_ac-3.0.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
291d8117f22f86d28f9b3767e406bb956fc270299043a9f1cbe73f2b96343db9
|
|
BLAKE2b-256 checksum How to use checksums |
e3810550833eac9de230b65cc3822e5ba225142bff0852a16b08ccf4bd5a7e20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1018-azure
|
Security for airton_ac 3.0.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.