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:
Connect to Plug Wi-Fi and Test using your Browser
The Weaved Smart Plug provides a Wi-Fi Access Point for initial setup.
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. Open your browser to http://192.168.252.1 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.
Connect via Telnet and Set a Password to Enable SSH
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.
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.
Set the Plug's Wi-Fi Settings to join your Home Network
- 6. Back in your browser, click on the "Network" link to change the Wi-Fi settings, as shown below.
7. Enter your Wi-Fi SSID & password then select the encryption type. Click on the Connect button.
- 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.
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.
- 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.
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.
turns off the blue LED above the "Power" icon.
Relay (plug power) Controlweavediot_relay_get.sh
turns off the relay (plug power).
reboots the plug.
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.
Supplied Scripts to Control Plug FunctionsThese scripts all live in /usr/bin.
turns on the blue LED above the "Radio" icon.
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 !