TuyaPower2MQTT - PyPi Module
Author: Phill Healey https://github.com/codeclinic/TuyaPower2MQTT
Description
Python module to pull power and state data from Tuya / Smart Life / Jinvoo WiFi smart socket/switch devices. Tested on RaspberryPi, Linux, Windows 10 and MacOS.
Compatible with Home Assistant.
Preparation
All python dependencies for TuyaPower2MQTT will be automatically installed. However, you may need to install python-crypto via apt/yum/etc. If this is your first pip package then you may also need to install python-pip.
sudo apt-get install python-crypto python-pip
You'll need a Mosquitto (MQTT) server to publish the data to. If you don't already have one running, I recommend following this simple tutorial: Installing an MQTT server on Debian. Note, you can try installing MQTT without adding the repo suggested in the first step.
Functions
- deviceInfo - Poll device and return on, w, mA, V and err data.
tuyapower.deviceInfo(PLUGID, PLUGIP, PLUGKEY, PLUGVERS)
Usage
Gathers full power stats / data from Tuya sockets & switches and reports results as JSON via MQTT
Full details coming soon.
Home Assistant Integration
I wrote an in-depth guide on how to use this package and how to extend it to Home Assistant integration
Metadata
Release files for tuyapower2mqtt 1.1.3
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 |
|---|---|---|---|---|
| tuyapower2mqtt-1.1.3.tar.gz | 4.3 kB | Without provenance | Details for tuyapower2mqtt-1.1.3.tar.gz |
Release files / tuyapower2mqtt-1.1.3.tar.gz
| Download URL | tuyapower2mqtt-1.1.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfbd3bf80db84410e9f42f5938610245d3484fd13cb3c81ba800b14f8417b09e
|
|
BLAKE2b-256 checksum How to use checksums |
e8366b299883adff09c40574fa40d7f957f40cd394468bab84535afb8bfddabd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for tuyapower2mqtt 1.1.3
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.