proxicast logo

Controlling the ezOutlet5

Tech Note MSNTN03

proxicast Internet Enabled IP & WiFi Remote Power Switch

© Copyright 2022, Proxicast LLC. All rights reserved.

Proxicast is a registered trademark and EtherLINQ, PocketPORT and LAN-Cell are trademarks of Proxicast LLC. All other trademarks mentioned herein are the property of their respective owners.

MSNTN03: Controlling the EzOutlet5


Document Revision History:
Date Comments
Set 10, 2022 Added API min firmware version notice
Apr 12, 2022  First release 
This TechNote Applies Only to the ezOutlet5 Models:

EZ-72b

Introduction

The ezOutlet5 from Mega System Technologies, Inc (“MegaTec”) is designed to automatically power-cycle any AC powered device when Internet connectivity is lost. Its AC power outlet can also be reset manually or via scheduled actions.

There are 4 ways to access and control the functionality of the ezOutlet5:

  1. ezDevice smartphone app
  2. Cloud4UIS.com web service
  3. The ezOutlet5’s internal web server
  4. A REST-ful API for HTTP commands
1. ezDevice Smartphone App

Download and install the free ezDevice app for iOS from the Apple AppStore or for Android from Google Play.

proxicast Internet Enabled IP & WiFi Remote Power Switch 1

Launch the ezDevice app and create a new account. This same account information will be used for the Cloud4UIS.com web service (see page 4).

ezDevice uses Bluetooth to scan and locate your ezOutlet5 devices. Hold your phone within 1 meter (3 ft) of the ezOutlet5 and tap the (+) sign to add a new device to your list.

Tap the model of the product you wish to locate (EZ-72b). ezDevice will scan for all ezOutlet5’s. If one is found, its serial number will be shown. Tap the Connect button to begin the add process.

If the ezOulet5 does not have a wired Ethernet connection to your network, ezDevice will prompt for the WiFi access point name (SSID) and password for your WiFi network. If successful, the ezOutlet5 will be added to your Cloud4UIS account and to the ezDevice app.

NOTE: The WiFi SSID and Password are case sensitive.

Tap the ezOutlet5 in the list of devices to change settings.

proxicast Internet Enabled IP & WiFi Remote Power Switch A1 proxicast Internet Enabled IP & WiFi Remote Power Switch A2 proxicast Internet Enabled IP & WiFi Remote Power Switch A3 proxicast Internet Enabled IP & WiFi Remote Power Switch A4 proxicast Internet Enabled IP & WiFi Remote Power Switch A5 proxicast Internet Enabled IP & WiFi Remote Power Switch A6 proxicast Internet Enabled IP & WiFi Remote Power Switch A7 proxicast Internet Enabled IP & WiFi Remote Power Switch A8

2. Cloud4UIS.com Web Service

Open the Cloud4UIS.com web site using any web browser:

http://Cloud4UIS.com

If you do not yet have an account, create one on the site. If you previously created an account using ezDevice, use the same login credentials for Cloud4UIS.com. The Cloud4UIS service is free.

If you used ezDevice to add devices, they will appear in your Cloud4UIS account automatically. Use Cloud4UIS to add wired Ethernet devices by their serial number.

proxicast Internet Enabled IP & WiFi Remote Power Switch B1

If you are adding a device for the first time, click the vertical dot icon proxicast Internet Enabled IP & WiFi Remote Power Switch B1b in the upper right corner and then select the Add icon proxicast Internet Enabled IP & WiFi Remote Power Switch B1a to open the Add Device screen.

proxicast Internet Enabled IP & WiFi Remote Power Switch B2

Select the type of device you wish to add (EZ-72b)

You will be reminded to use ezDevice if your ezOutlet5 is attached to your WiFi network; otherwise, click Next to add the wired device by serial number found on the bottom of the ezOutlet5..

proxicast Internet Enabled IP & WiFi Remote Power Switch B3 proxicast Internet Enabled IP & WiFi Remote Power Switch B4

See the ezDevice section on page 2 for instructions on completing the wireless device add procedure. Devices added through Clolud4UIS.com will also be automatically synchronized with the ezDevice app.

3. Internal Web Sever

Access to the ezOutlet5’s functionality is available via its internal web server pages. To access the web server, enter the ezOutlet5’s IP address into any web browser.

http://<ip-address-of-ezOutlet5>
e.g. http://192.168.1.33

The default username for the ezOutlet5 is “admin”.

The default password is the last 6 characters of the ezOutlet5’s MAC address (upper case). See the ezOutlet5 bottom label for the password.

If you do not know the IP address of your ezOutlet5, check your router’s DHCP server log or if you’ve added the ezOutlet5 to the ezDevice app or Cloud4UIS.com web service, check the Network tab in those applications.

proxicast Internet Enabled IP & WiFi Remote Power Switch B5

4. REST API

NOTE: The REST API feature requires ezOutlet5 firmware version EST.2906 or later.

Basic functions of the ezOutlet5 can be controlled through a series of HTTP Packet Requests.

Examples in this section are shown using cURL for Windows. Any software capable of sending and processing HTTP packets can be used.

Turn Outlet On/Off

HTTP Packet Request

“GET” <target> “HTTP/1.1″CRLF
“Host:” <host ip>CRLF ”
Keep-Alive: 300″CRLF
“Connection: keep-alive”CRLF
“Authorization:Basic” <auth>CRLFCRLF ;auth:encoded account(admin:1234) with base-64
HTTP URL: “http://< IP>/cgi-bin/control.cgi?<auth>&<action>”

Request Description:

IP:

The IP Address of the ezOutlet5

Auth:

user=<Web Account>
passwd=<Web Password>

Action:

target=<0/1>;

0 means outlet mode,
1 means outlet

control=<0/1/2/3>;

0 means off,
1 means on,
2 means switch (i.e. from On Off, or from Off On),
3 means reset (Outlet only)

Packet Response:

XML format:

“<?xml version=’1.0′?>”
“<request>”
“<outlet_status>”{outlet_status}”</outlet_status>”
“<outlet_mode>”{outlet_mode}”</outlet_mode>”
“</request>”

XML Description:

outlet_status: 0 = off, 1 = on
outlet_mode: 0 = manual control, 1 = auto reset

EXAMPLE: Turn outlet off

curl “http://192.168.0.70/cgi-bin/control2.cgi?user=admin&passwd=0D34E1&target=1&control=0”

OUTPUT
<?xml version=’1.0′?>
<request>
<outlet_status>0</outlet_status>
<outlet_mode>1</outlet_mode>
</request>

Get the Status of the ezOutlet5

HTTP Packet Request

“GET” <target> “HTTP/1.1″CRLF
“Host:” <host ip>CRLF
“Keep-Alive: 300″CRLF
“Connection: keep-alive”CRLF ”
Authorization:Basic” <auth>CRLFCRLF ;auth:encoded account(admin:1234) with base-64
HTTP URL: “http://<auth>< IP>/xml/outlet_status.xml”

IP:

The IP Address of the ezOutlet5

Auth:

<Web Account>@<Web Password>

XML format:

“<?xml version=’1.0′?>”
“<request>”

“<site_ip>”{site}”</site_ip>”
“<site_mode>”{site_mode}”</site_mode>”
“<site_lost>”{site_lost}”</site_lost>”
“<outlet_status>”{outlet_status}”</outlet_status>”
“<outlet_mode>”{outlet_mode}”</outlet_mode>”
“<ping_delay_after_power_on>”{ping_delay_after_power_on}”</ping_delay_after_power_on>”
“<power_on_delay>”{power_on_delay}”</power_on_delay>”
“<no_of_reset>”{no_of_reset}”</no_of_reset>”

“</request>”

XML Description:

site: uuu.uuu.uuu.uuu or google.com
site_mode: 0 = http, 1 = ping
site_lost: 0 = ping successful, 1 = ping failed
outlet_status: 0 = off, 1 = on
outlet_mode: 0 = manual control, 1 = auto reset ping_delay_after_power_on: number, range 0 ~ 1440
power_on_delay: number, range 3 ~ 240
no_of_reset: 1 ~ 10, 0 = unlimited

EXAMPLE: Get Status

curl “http://admin:0D34E1@192.168.0.70/xml/outlet_status.xml”

OUTPUT
<?xml version=’1.0′?>
<request>
<site_ip></site_ip>
<site_mode>1</site_mode>
<site_lost>0</site_lost>
<outlet_status>0</outlet_status>
<outlet_mode>1</outlet_mode>
<ping_delay_after_power_on>0</ping_delay_after_power_on>
<power_on_delay>3</power_on_delay>
<no_of_reset>1</no_of_reset>
</request>

# # #

Proxicast, LLC
312 Sunnyfield Drive
Suite 200
Glenshaw, PA 15116

1-877-77PROXI
1-877-777-7694
1-412-213-2477

Fax:
1-412-492-9386

E-Mail:
support@proxicast.com

Internet:
www.proxicast.com

Documents / Resources

proxicast ezOutlet5 Internet Enabled IP and WiFi Remote Power Switch [pdf] Instruction Manual
ezOutlet5 Internet Enabled IP and WiFi Remote Power Switch, ezOutlet5, Internet Enabled IP and WiFi Remote Power Switch, Enabled IP and WiFi Remote Power Switch, Remote Power Switch, Power Switch, Switch

References

Leave a comment

Your email address will not be published. Required fields are marked *