Skip to main content

Control an Airton AC device over LAN.

Project description

airton-ac

tests version python

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.1 or 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 off
  • set point: to set the target temperature
  • temperature: to record curent temperature as measured by the unit
  • mode: to control operating mode
  • fan: to control fan speed
  • eco: toggle low heat when heating and eco-mode when cooling
  • light: toggle display on the unit
  • swing: toggle swing mode
  • sleep: toggle sleep mode
  • health: 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.

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

airton_ac-2.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

airton_ac-2.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file airton_ac-2.1.0.tar.gz.

File metadata

  • Download URL: airton_ac-2.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Linux/5.15.0-1034-azure

File hashes

Hashes for airton_ac-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0b3c49159da95f41eb5118f6e62b42e2e76290ed30baa33f9b4944373b26ba79
MD5 f80a10b6e454aa7e1da65b77486885f5
BLAKE2b-256 e82fc3fe691b02c0baa2f43e5437c0634e94410acf1e3a37e93c4e8a8dd05b10

See more details on using hashes here.

File details

Details for the file airton_ac-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: airton_ac-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Linux/5.15.0-1034-azure

File hashes

Hashes for airton_ac-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af05bc8eb583b5cf48948e61862f82fa98c12fbe55ebc00d79ddbd9319e6753c
MD5 1dd8fb4c88605f3552ad083248fcfcd6
BLAKE2b-256 5adbcb67d298cedcd6984c253674669a7bb8194240d63875a1c75b67dec1ca27

See more details on using hashes here.

Supported by

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