TuyaDAEMON: IOT Framework With Tuya Cloud Integration
by marco.sillano in Circuits > Sensors
16 Views, 0 Favorites, 0 Comments
TuyaDAEMON: IOT Framework With Tuya Cloud Integration
![tuyadaemon01b.jpg](/proxy/?url=https://content.instructables.com/FPR/TOQ9/KK15FOI3/FPRTOQ9KK15FOI3.jpg&filename=tuyadaemon01b.jpg)
A two-way bridge between Tuya-cloud and node-red for custom extensions of the Tuya ecosystem.
TuyaDAEMON isolates your custom node-red flows from all details of tuya/node-red data and commands exchanges:allows bidirectional exchanges to/from all tuya devices and Tuya automations.
- TuyaDAEMON is an open IOT framework for advanced automation projects.
- allows the binding of custom devices, not-Tuya: examples for MQTT, USB_serial, 433 MHz.
- decodes and transforms incoming data to standard units.
- Powerful automation with timers, forks, conditions, loops in the user defined alldevice object.
- lan distributed structure and OO style device definitions.
- updates a global.tuyastatus structure (device:property:value) with status messages from all devices.
- logs all events in the MySQL tuyathome:messages table
- uses friendly names for all devices and properties, in any language
If you are interested in the reasons behind the tuyaDAEMON's project choices, you can read why-tuyaDEAMON - In italiano: perché-tuyaDAEMON.
INPUT
Only one public entry point, for user commands (SET/GET/SCHEMA/MULTIPLE), the 'IN commands link' node.
Command example (SET), it uses only friendly names:
{ "device":"USB siren", "property":"alarm", "value":"ON" }
Input command formats: node-red, HTTP_rest, MQTT
OUTPUT
A client application:
- CAN get device data polling the `global.tuyastatus` structure (node-red)
- CAN get historical data from the `messages` MYSQL table.
- CAN GET values via HTTP_REST
User can define:
- TUYA TRIGGERS from smartLife scene/event/alarm to fire custom node-red flows
- RED TRIGGERS from node-red to fire smartLife automations.
Open and modular: many internal I/O connections are available for extensions.
Last version of the project and the updated documentation can be found here https://github.com/msillano/tuyaDAEMON
In the hope that this gives new ideas to IOT users, we offer best regards.
m.s.