Make a Smart Socket/Plug to connect anything to Internet

Published August 3, 2020  ( 5 min read )

There are several brands of smart sockets easily available in the market these days. If your interest is to just connect any electrical equipment to the internet, you can use any one of those available smart sockets. However, our automation controller is much more versatile than a normal smart socket/plug available in the market. Our controller can be configured for a variety of applications. By cabling it appropriately, it can control a very high powered (higher ampere rating) electrical equipment. In addition, as this controller is compatible with a variety of sensors, one can cable sensors to it and configure the controller to activate the electrical equipment based on the values read by the sensor. In this blog, we will learn how to make a smart socket/plug out of the controller and how to connect any electrical equipment (for example, an electric motor or a floor lamp) to the internet so that it can be operated from remote using a smart phone or Google Home Assistant or Amazon Alexa. In this blog, we will also see a very high powered (higher ampere rating) electrical equipment can be cabled to the automation controller

Things we need

  1. One unit of WifiSecureAccess Smart iDevice
  2. One extension cable
WiFiSecureAccess smart device can be purchased from Amazon.

Fig 1: WiFiSecureAccess Smart Device

Step 1

As a first step to make a smart socket out of the smart device, obtain an extension cable of the desired length and cut that into two pieces. That gives us a plug with lead wire, and a socket with its lead wire.

Fig 2: Extension Cable

Step 2

Cable both socket and the plug as per the cabling diagram in Fig 3 through 6.

Fig 3: J2 connector of controller

Fig 3A: Cabling diagram

Fig 4: Making a smart socket out of Smart device

Fig 5: Making a Smart Plug out of the Smart Device

Fig 6: Making a Smart Plug out of the Smart Device

Note: The current rating of the internal relay of the controller is 10A and so, the above cabling has a limitation of the ampere rating of the external eqipment cabled to the controller. If you are interested in cabling a higher power electrical equipment, you can do the cabling through a higher power external relay as per the cabling diagram given below in Fig 7. In this cabling, we are cabling the high power relay directly to the controller instead of using a socket, and then cabling the external equipment to the high poer relay. The current rating of the coil of the relay must be less than 1A(preferably 500ma) at 12V for this cabling. If the rating of the coil is also high, then you need to use an external power and cable the coil of the relay as per Fig 18A of Automation Control documentation.

Fig 7: Cabling a high power AC load

Step 3

Once the cabling is completed, connect any electrical equipment through this smart socket. For example, plug in a floor lamp to this socket and connect its plug to the wall socket in your house. Then put on the power. If this is brand new smart device, follow the steps given in section 2 (Installation) of the Automation Control documentation. That section explains how to set up WiFi of this device. It is a requirement to have WiFi available at the location where this smart socket is used. If the above steps are completed successfully, you should be seeing the LED of the smart device red

You have now connected the electrical equipment to the internet. You can now manually operate it from remote using a smart phone. You can also use Google assistant or Amazon alexa to put ON or OFF the electrical equipment. Please keep in mind that the current rating of the smart device is 10A. So, try not to connect any equipment which takes higher current than 10A when using the smart device.

Before trying to add this device to Google Homei or Amazon alexa, try to name the RELAY port of this smart device. As this device has two discoverable ports (P0 and RELAY), it is better if P0 is disabled so that it will not appear in Google Home or Alexa when trying to add this device. To do that, follow the steps given in section 2.10 and 2.11 of the Automation Control documentation. When going through those steps, select 'No' for 'Allow DOUTP0 in Google Home' and 'Allow DOUTP0 in Alexa", and select 'Yes' for 'Allow RELAY in GoogleHome' and "Allow REALAY in Alexa" (Fig 14A of the documentation).

You can also allow as many users to operate this equipment as you want. Follow the steps given in section 3 (Allowing Multiple Users) of the Automation Control documentation.

Once this cabling and configuration are completed, you can now put the electrical equipment ON/OFF using either one of four methods as explained in Section 2.8 of the documentation.