Weaved Smart Plug Setup

Get started with your Weaved Smart Plug

These instructions will get you started with your new Smart Plug, preloaded with Weaved services on the OpenWRT platform. Weaved services let you connect easily and securely to your Smart Plug from a mobile app or browser window anywhere in the world! The open development platform allows developers to extend the product features and produce their own open release.

You will need a Weaved account before running the setup, so if you have not already done so, please create an account.

The Smart Plug comes preconfigured with Weaved services for the following:

  • SSH on port 22
  • Web (http) on port 80

    Connect to Plug Wi-Fi and Test using your Browser

    The Weaved Smart Plug provides a Wi-Fi Access Point for initial setup.

    1. 1. From a laptop, smart phone or tablet, change the Wi-Fi settings to join the Smart Plug network: "Weaved-xxxxxx" (where 'xxxxxx' are the last 6 characters of the MAC address which you can find on the label).

    2. 2. Open your browser to to show the Smart Plug web interface and click the "Device" button at upper right to toggle the plug on and off. This confirms it is working.

    3. Connect via Telnet and Set a Password to Enable SSH

    4. 3. Use a telnet client such as PuTTY on Windows, or a Linux or Mac terminal to run telnet on the command line, e.g.


      There is no user name or password. You should see the OpenWRT banner.

    5. 4. Set a password for SSH, e.g.


      and follow the onscreen prompts to set a password for the root account.

      5. Close your SSH or telnet window. The next time you login, telnet will be disabled, and SSH will be enabled.

    6. Set the Plug's Wi-Fi Settings to join your Home Network

    7. 6. Back in your browser, click on the "Network" link to change the Wi-Fi settings, as shown below.

    8. 7. Enter your Wi-Fi SSID & password then select the encryption type. Click on the Connect button.
    9. Note: It may take one to two minutes for the Smart Plug to join the network and start services. While the Wi-Fi is connecting, the web page will display a spinning progress wheel. Once you see this, you can close this browser window or tab.

    10. 8. Restore your laptop, smart phone or tablet Wi-Fi settings to join your home network.

    Auto-discover the Smart Plug to Register it

    9. The Weaved Services now running on the Smart Plug need to be registered to your Weaved Account, to access them from anywhere outside your own network.

    1. 10. From a laptop, smart phone or tablet on the same LAN as your Smart plug, Login in using your Weaved developer account and password.

    2. 11. Upon login, You should see two sections in green indicating that a new unregistered device has been discovered. Follow the onscreen instructions to register and name your SSH and HTTP services.

    Connect with Weaved from Anywhere

      To test the connection to your Smart Plug from your browser, go to the device list, find the line with your Smart Plug's alias, and click on the device name to connect.

      The Smart Plug HTTP service you just enabled uses the http web protocol, so the connection will open directly in your browser. Otherwise for SSH, a popup window will appear with a web address that you can copy into your application's connection window.

      Supplied Scripts to Control Plug Functions

      These scripts all live in /usr/bin.

      LED Control



      weaved_iot_led_on.sh 0

      turns on the blue LED above the "Radio" icon.

    1. weaved_iot_led_off.sh 2

      turns off the blue LED above the "Power" icon.

    2. Relay (plug power) Control


    3. e.g.

    4. weaved_iot_relay_off.sh

    5. turns off the relay (plug power).

    6. Utilities


    7. reboots the plug.

    8. weavediot_reset_factory.sh

    9. restores the plug settings to the default factory conditions (Wi-Fi in AP mode, default SSID, telnet enabled and no SSH password) and resets the device. This does not remove the device from your device list. You'll have to do that manually if you use this script.

    Additional Resources

    Get OpenWRT Development Tools

    If you're going to extend the Weaved Smart Plug for your own release, you'll need the OpenWRT tools to create a build environment. If you're here, you may already know how but if not, best to learn more at the OpenWRT Wiki.

    Download Weaved Smart Plug Source from GitHub

    You'll also want the source and binaries for the latest version from Weaved. The Weaved Smart Plug open release is located in GitHub. You can download the kit to do your own build. Have fun !