Python middleware for Tuya WiFi smart devices to MQTT
Project description
The devices you purchase are defacto your property. You should be able to fully control all aspects of it, without a man in the middle. Be it just flicking a switch or reading data from it. The man in the middle might be benign now, but can you really trust a commercial company with your personal data? Regain control over what is rightfully yours.
We've made a library that communicates locally with your Tuya devices (no internet connection needed), called TuyaFace. The library is open-source and can be used in your own software if you choose to do so. But we did the heavylifting already for you. TuyaGateway implements the library and communitates over an open protocol (MQTT) with your home automation software. All relevant home automation software packages (e.g. Home Assistant) are able to work with MQTT.
Great! But what about GismoCaster? GismoCaster is the control-center for TuyaGateway. In a webinterface you can add your devices, set names for them, etc. So, no programming required and no dabbling around in obscure text files which will break when you add a tab to many.
A bit more technical
TuyaGateway listens on MQTT topics and routes requests to your Tuya devices. In earlier versions the configuration was based on a one to one topic translation in e.g. Home-Assistant config-files. 1:1 topic translation is limited to simple tasks (like switching ON/OFF); only boolean values.
From v1.1 onwards Tuya device configuration can be done with GismoCaster. In which you can set discovery messages for both TuyaGateway and Home Assistant and opens up the ability to set boolean/integer/float/string types.
The goal for version v2.0 is to add input/output processing functions and to improve on HA message values. Next to structural improvements to the code. The topic configuration option will be removed.
Docs
https://github.com/TradeFace/tuyagateway/wiki
Get involved!
Anyone who is willing to test, write code, add documentation, etc. is welcome to make a contribution.
Acknowledgements
- https://github.com/emontnemery development tuyaclient and implementation in tuyagateway
- https://github.com/jkerdreux-imt testing tuyaclient
- https://github.com/SDNick484 testing protocol 3.1 reimplementation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tuyagateway-2.0.1.tar.gz
.
File metadata
- Download URL: tuyagateway-2.0.1.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52e456dc3f5936fba5599604f6c8235f6d20f95204c06e2618e98c1b3d3ed1ab |
|
MD5 | 06a1614c5ae15aaf1db0ec4bbd1551f7 |
|
BLAKE2b-256 | ea85f434c62c79e2b2340b076fa513408bac5a2812f8e8ff92bfce3c3c8aa930 |
File details
Details for the file tuyagateway-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: tuyagateway-2.0.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da91de238775ce53c0606a45be23c632777c4bbc9fa29b67c18ef8a659d5adfe |
|
MD5 | 53ed9420c21d94b02575216ee0804dce |
|
BLAKE2b-256 | 065a4de916843c14222ba5766663cb79c2435d8c0fbe4d9ca9f3a22bdc817506 |