Skip to main content

Control an Airton AC device over LAN.

Project description

airton-ac

tests version python

Control an Airton AC device over the local area network without using any cloud. This requires having the wifi module.

Usage

You can use this library to control a device programmatically with airton_ac.Device or through the Domoticz plugin.

Requirements

To control a device you will need these 3 things:

  • the device ID
  • the device local IP address
  • the device local key (encryption key generated upon pairing)

To get those, follow instructions from TinyTuya.

⚠️ Important considerations:

  • After pairing the devices, assign static IPs in your router.
  • Data center should be Central Europe Data Center.

After having run the wizard, you can run python -m tinytuya scan to get a summary of devices.

⚠️ Keep in mind that:

  • if you reset or re-pair devices the local key will change
  • you can delete your tuya IOT account but not the SmartLife one and devices should be kept there

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.

python3 -m pip install airton-ac
python3 -m airton_ac.domoticz.install

Restart Domoticz and create a new Hardware using AirtonAC. You will need one per device, fill in information and add. The hardware will create 10 devices to control the AC (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

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-1.2.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

airton_ac-1.2.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airton_ac-1.2.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.11.0 Linux/5.15.0-1022-azure

File hashes

Hashes for airton_ac-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5015e78f3bb821b85111577a10c1ea5d2714c2ef5d5656202aa3ef00fe830e2d
MD5 14ef2f6219e9b12720d3f02d74344f7f
BLAKE2b-256 fcae86603a901974b6d3c82a3fc1091810be2ff0f74a9e06fc39db981a837c00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airton_ac-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.11.0 Linux/5.15.0-1022-azure

File hashes

Hashes for airton_ac-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6d7e6bac0b4fc07ed012e4fd6f489cf558fcd4270a875ece93e939994752d6
MD5 7f856d0e0e1e574a8f241c03011acefa
BLAKE2b-256 def0e199166da0b43cd722974ad1b945c83a6c47ac4ed2732496479a63bf8ff6

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