Skip to main content

Control Tasmota devices via their web api

Project description

Tasmota Device Controller

This packag provides wrappers for Tasmota's web request API.

Only very few requests are implemented so far! If you need other requests, you can implement these commands and create a merge request on GitHub, or create an issue.

Example usage:

from tasmota_device_controller import TasmotaDevice
from tasmota_device_controller import tasmota_commands as cmd
from tasmota_device_controller import tasmota_types as t

device = TasmotaDevice('192.168.10.21')

# Set power of first output to on
setResult = device.sendRequest(
    cmd.Power(t.PowerType.ON, t.PowerOutputType.OUTPUT_1))
print(setResult)  # Returns {'POWER': 'ON'}

# Get current power state of second output
getResult = device.sendRequest(
    cmd.Power(powerOutput=t.PowerOutputType.OUTPUT_2))
print(getResult)  # Returns {'POWER': 'OFF'}

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

tasmotadevicecontroller-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

tasmotadevicecontroller-0.0.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file tasmotadevicecontroller-0.0.1.tar.gz.

File metadata

  • Download URL: tasmotadevicecontroller-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tasmotadevicecontroller-0.0.1.tar.gz
Algorithm Hash digest
SHA256 51cf005a7d6929fb814cc1291574086d6bc2c211bf2a2874a912c712368c30be
MD5 ef1488e5cd51655004350ffaf320c62d
BLAKE2b-256 25283e17ddc043ee3b98a01798dab49c0410c9196eb1ba5c3e529af5ffeebecc

See more details on using hashes here.

File details

Details for the file tasmotadevicecontroller-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tasmotadevicecontroller-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tasmotadevicecontroller-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36e0852386c146998cc2f74c1f1b5d14c017e184d1f5893aa7e486a1013fd49b
MD5 6f3aa58dbf4b238836909b8f73f2c7cf
BLAKE2b-256 f8713f95016c48611e370db4f80dbd516fff45b48d9dfc6132ab8468debee1fe

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