New and improved and much much smaller Versions of this command
1 WeMo Setup
http://voxcommando.com/forum/index.php?topic=1261.msg16583#msg16583Multiple WeMo Setup
http://voxcommando.com/forum/index.php?topic=1261.msg16584#msg16584if your using windows 8.1 and the WeMo Plugin isn't working for you
, I found a way that you can switch between the three different ports(49153, 49154, 49155) with voice command instead of opening the edit command and changing it manually
these commands will create a WeMo.txt file in your VC folder that will simply have the number 1,2 or 3 to keep track of the port it is set to, when VC is started it will read that file and trigger an event that will set the port to what it was when VC was turned off or restarted, it's also used when you ask "what port is the WeMo set to"
when the WeMo isn't connecting to a Port you can simply say "Switch WeMo to port 1 (2 or 3)"
if it worked it will turn the WeMo on/off or off/on and say "tested port (1)"
if you switch to another port that doesn't work voxcommando will hang while it try's to trigger the command (like it does now when that port doesn't work) then it will say "tested port (1)"
then you simply pick a different port
After you paste these commands into VC you need to restart VC then say "switch WeMo to port 1"
so it can create the WeMo.txt file
then simply find the port you need to use
to toggle the WeMo say "WeMo Please"
also added WeMo on and Wemo off commands for each port just add you own events or phrase for each port
"Switch WeMo to port..."
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.1.0-->
<commandGroup open="False" name="switching WeMo Ports" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="988" name="Switch WeMo Ports" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{1}&&1</ifParams>
<then>
<action>
<cmdType>VC.EnableGroup</cmdType>
<params>
<param>WeMo port 49153 (1)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49154 (2)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49155 (3)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>WeMo</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>WeMo</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>Tested port 1</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Write</cmdType>
<params>
<param>{Path.VC}\WeMo.txt</param>
<param>1</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{LastEvent}&&port 1</ifParams>
<then>
<action>
<cmdType>VC.EnableGroup</cmdType>
<params>
<param>WeMo port 49153 (1)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49154 (2)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49155 (3)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{1}&&2</ifParams>
<then>
<action>
<cmdType>VC.EnableGroup</cmdType>
<params>
<param>WeMo port 49154 (2)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49153 (1)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49155 (3)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>WeMo</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>WeMo</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>Tested port 2</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Write</cmdType>
<params>
<param>{Path.VC}\WeMo.txt</param>
<param>2</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{LastEvent}&&port 2</ifParams>
<then>
<action>
<cmdType>VC.EnableGroup</cmdType>
<params>
<param>WeMo port 49154 (2)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49153 (1)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49155 (3)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{1}&&3</ifParams>
<then>
<action>
<cmdType>VC.EnableGroup</cmdType>
<params>
<param>WeMo port 49155 (3)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49153 (1)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49154 (2)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>WeMo</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>WeMo</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>Tested port 3</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Write</cmdType>
<params>
<param>{Path.VC}\WeMo.txt</param>
<param>3</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{LastEvent}&&port 3</ifParams>
<then>
<action>
<cmdType>VC.EnableGroup</cmdType>
<params>
<param>WeMo port 49155 (3)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49153 (1)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.DisableGroup</cmdType>
<params>
<param>WeMo port 49154 (2)</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<phrase>set, switch</phrase>
<phrase>Wemo to port</phrase>
<payloadList>1,2,3</payloadList>
<event>port 1</event>
<event>port 2</event>
<event>port 3</event>
</command>
<command id="989" name="what port" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>File.Read</cmdType>
<params>
<param>{Path.VC}\WeMo.txt</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>We Moe is set to port {LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>what port is the WeMo</phrase>
<phrase>set to, on </phrase>
</command>
<command id="1000" name="startup: light port set" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>File.Read</cmdType>
<params>
<param>{Path.VC}\WeMo.txt</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<params>
<param>port {LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<event>VC.Loaded</event>
</command>
</commandGroup>
TO MANY CHARACTERS TO POST ALL COMMANDS IN ONE POST SO THE FOLLOWING POST WILL CONTAIN THE 3 OTHER COMMANDS NEEDED TO MAKE THIS WORK (I also attached XML's with the commands if you want to use them instead)