Reports all the power stats & on/off state from a Tuya / SmartLife / Jinvoo WiFI smart devices such as a socket or switch including newer v3.3 protocol devices, then sends them as JSON via MQTT
TuyaPower2MQTT - PyPi Module
Author: Phill Healey https://github.com/codeclinic/TuyaPower2MQTT
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.
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
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.
- deviceInfo - Poll device and return on, w, mA, V and err data.
tuyapower.deviceInfo(PLUGID, PLUGIP, PLUGKEY, PLUGVERS)
Gathers full power stats / data from Tuya sockets & switches and reports results as JSON via MQTT
Full details coming soon.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size tuyapower2mqtt-1.0.0.tar.gz (4.0 kB)||File type Source||Python version None||Upload date||Hashes View hashes|