node-red-contrib-tenda-ac10-optimize 0.1.2

Node-RED nodes for controlling Tenda AC10 routers locally using the native TCP protocol.

npm install node-red-contrib-tenda-ac10-optimize

node-red-contrib-tenda-ac10-optimize

Node-RED nodes for controlling a Tenda AC10 router over its local TCP protocol.

This module is useful when you want to automate router actions directly from Node-RED without using HTTP APIs, browser automation, or a separate Python process.

What this node can do

The node supports the following router operations:

  • Login
  • Router Info
  • WiFi Info
  • Network Info
  • WiFi Scan
  • Optimize WiFi

For the optimize action, the node logs in first and then sends the optimize request on the same connection.

Installation

From the Node-RED palette

  1. Open Node-RED.
  2. Go to the menu in the top-right corner.
  3. Select Manage palette.
  4. Open the Install tab.
  5. Search for node-red-contrib-tenda-ac10-optimize.
  6. Click Install.

From npm

If you manage your Node-RED install from the command line, install the package in your Node-RED user directory:

npm install node-red-contrib-tenda-ac10-optimize

Restart Node-RED after installation.

Add the node to a flow

  1. Drag the Tenda AC10 node into the workspace.
  2. Double-click the node to open its settings.
  3. Fill in the router IP, username, and password.
  4. Choose the operation you want from the dropdown.
  5. Click Done.
  6. Wire the node to a Debug node or another node that uses the response.

Configuration fields

Name

Optional label shown in the flow editor.

Router IP

The LAN IP address of the router.

Common defaults are:

  • 192.168.0.1
  • 192.168.1.1

Use the one configured on your router.

Username

Router login username.

Password

Router login password.

Important:

  • The node needs valid credentials to run most actions.
  • The default values in the editor are admin / admin.
  • If your router was configured with a custom password, update it here.

Operation

Choose the router action to run when the node receives a message.

Available options:

  • Login: verifies credentials only
  • Router Info: reads router status information
  • WiFi Info: reads wireless information
  • Network Info: reads network information
  • WiFi Scan: scans nearby networks
  • Optimize WiFi: triggers the router optimization command

How to optimize the router

To optimize the router from Node-RED:

  1. Add a Tenda AC10 node.
  2. Set Router IP, Username, and Password.
  3. Set Operation to Optimize WiFi.
  4. Connect an inject node to trigger it.
  5. Connect a debug node to view the response.

Example flow:

Inject -> Tenda AC10 -> Debug

When the flow runs, the node will:

  1. Connect to the router.
  2. Login with the provided credentials.
  3. Send the optimize command.
  4. Return the router response in msg.payload.

Example usage

Use this node with an Inject node so you can run router actions on demand.

Typical examples:

  • Click Inject to run Optimize WiFi before a scheduled automation.
  • Trigger WiFi Scan before deciding whether to optimize.
  • Read Router Info or Network Info and forward the result to a dashboard, logger, or notification node.

Output

The node places the router response in msg.payload.

Depending on the operation, the payload may be returned as a buffer or raw response data from the router.

If you want to inspect the result, connect a Debug node after it.

Notes

  • This node talks directly to the router on the local network.
  • Make sure your Node-RED host can reach the router IP.
  • The router must be powered on and accessible before the flow runs.
  • Credentials are required for login-based operations.
  • If the node fails, verify the IP address, username, and password first.

Troubleshooting

If the optimize action does not work:

  1. Confirm the router IP is correct.
  2. Confirm the username and password are correct.
  3. Check that Node-RED and the router are on the same network.
  4. Try the Login operation first to verify authentication.
  5. If login works but optimize fails, check whether your router firmware supports the optimize request.

If you get no response:

  • Check the Debug sidebar in Node-RED.
  • Make sure the router is reachable on the default TCP port used by the node.
  • Restart Node-RED and try again.

Security

Keep your router credentials private.

If you export flows, remember that Node-RED may store node configuration values in the flow file.

License

MIT

Node Info

Version: 0.1.2
Updated 6 hours ago
License: MIT
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • tenda-ac10

Keywords

  • node-red
  • tenda
  • ac10
  • router
  • wifi
  • iot
  • tcp

Maintainers