Revision 1.1
WebSwitch™ Users Manual
XML Tags*
Monitor Values
<relayXstate>
0= Outlet off (coil off)
1= Outlet on (coil energized)
<rebootXstate>
0= Auto-Reboot off
1= Pinging
2= Waiting for response
3= Rebooting
4= Waiting for Boot
<failuresX>
#= Number of reboot failures
<rbtAttemptsX>
#= Number of reboot attempts during a reboot period (Auto-Reboot only)
<totalreboots>
#= Total number of reboots (Auto-Reboot only)
<inputXstate>
0=Off (voltage not applied to input)
1=On (voltage applied to input)
<units>
F= Fahrenheit
C= Celsius
<sensorXtemp>
x.x=Indicates that no digital temperature sensor is associated with the
sensor.
77.3= Current temperature reading from associated digital temperature
sensor.
H24.9= Current humidity reading from associated humidity sensor.
<extvarX>
This displays the value of each External Variable.
<serialNumber>
00:00:00:00:00:00 The serial number of WebSwitch™.
<time>
1253030401=Time displayed in “epoch time” (number of seconds since
January 1, 1970)
*'X' is replaced by the Outlet number, Input number, Sensor number, or extvar number.
XML Control
Commands can be sent to WebSwitch™ which control the outlet and change its state. Commands are
sent using a variable called relayXState (X is replaced by 1 for outlet 1 or 2 for outlet 2). Examples of
using relayXState are given here.
Command
Description
state.xml?relay1State=0
Turn Outlet 1 OFF
(when in Automatic Reboot mode, outlet turns
off, auto-reboot still enabled)
state.xml?relay1State=1
Turn Outlet 1 ON
(when in Automatic Reboot mode, outlet turns on,
auto-reboot still enabled)
state.xml?relay1State=2
Pulse Outlet 1 (when in Automatic Reboot mode, Outlet will reboot)
state.xml?relay1State=3
Disable automatic reboot (only when outlet is in Automatic Reboot
mode)
state.xml?relay1State=4
Enable automatic reboot (only when outlet is in Automatic Reboot
mode)
state.xml?relay1State=5
Toggle Outlet 1 (only when NOT is Automatic Reboot Mode)
Xytronix Research & Design, Inc.
66