How to do low-code development in eWeLink CUBE?

We briefly covered eWeLink CUBE API capabilities and referenced the open source project to show you how to connect devices to CUBE and how to control devices in CUBE. Of course, we understand that some developers don’t want to read and learn complex API documents and reference source code, so we also provide a set of tools for developers who want to do low-code development.

Node-RED is a powerful tool for building IoT applications. It uses a visual programming approach. It allows developers to connect predefined blocks of code (called “nodes”, nodes) to perform tasks, and when they are connected together, they form a “Flow”. It connects hardware devices, APIs, and online services in a low-code development manner.

We encapsulated a variety of iHost APIs and provided nodes with various functions for users to use, facilitating users to call eWeLink CUBE OPEN API in a WYSIWYG way. The project is also open source, and you can find it here :

node-red-contrib-ewelink-cube (Github)

In this way, you do not need to read and learn the API document, only need to learn how to use the node module, you can implement the device access to the iHost and control the device in the iHost function.

Currently, the following nodes are online:

  • Listening node for status change: monitor for the status change events of one or more devices
  • Listening node for online status: Monitor the online status of one or more devices
  • Listening node for adding device: Monitor the iHost for register device events
  • Listening node for deleting device: Monitor for one or more device deletion events
  • Listening node for device information modification: Monitor one or more device information modification events
  • Device control node: Controls the specified device
  • Device list and Device information Query Node: Obtains the full device list or specific device information
  • Gateway Status Query node: Obtain the running status of the iHost
  • JSON message node: sends a piece of JSON data to the iHost to control device
  • Device registration node: registers a new device into the iHost and controls it

If you have any problems with the nodes, please feel free to contact us and we will collect more suggestions and continue to optimize and iterate on these nodes.

For the latest eWeLink CUBE API documentation, please click here : API Document

1 Like