<?xml version="1.0" encoding="utf-8"?>
<!--E:\voxcommando - v2\export\VcGrp_ tellstick.xml-->
<VoiceCommands version="">
    <!--this is an exported VoxCommando group-->
    <commandGroup open="True" name=" tellstick" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="1505" name="Discrete" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>{1} {2}&amp;&amp;1000</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Launch.Hidden</cmdType>
                <cmdString>C:\Program Files\Telldus\tdtool.exe&amp;&amp;--{2}  "{1}"</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Map.Set</cmdType>
                <cmdString>switchstate&amp;&amp;{1} &amp;&amp;{2}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>turn</phrase>
            <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\tellusdevices.xml</payloadFromXML>
            <payloadList>on,off</payloadList>
            <event>tell.lights</event>
        </command>
        <command id="1503" name="Toggle" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Map.Get</cmdType>
                <cmdString>switchstate&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="True">
                <ifType>LastActionSuccess</ifType>
                <ifParams>&amp;&amp;</ifParams>
                <then>
                    <action>
                        <cmdType>Map.CreateTable</cmdType>
                        <cmdString>switchstate</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Map.Set</cmdType>
                        <cmdString>switchstate&amp;&amp;{1}&amp;&amp;off</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Map.Get</cmdType>
                        <cmdString>switchstate&amp;&amp;{1}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>Reset</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>{LastResult} turning</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{LastResult}&amp;&amp;off</ifParams>
                <then>
                    <action>
                        <cmdType>Map.Set</cmdType>
                        <cmdString>switchstate&amp;&amp;{1}&amp;&amp;on</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>on</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Launch.Hidden</cmdType>
                        <cmdString>C:\Program Files\Telldus\tdtool.exe&amp;&amp;--on "{1}"</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>Map.Set</cmdType>
                        <cmdString>switchstate&amp;&amp;{1}&amp;&amp;off</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>off</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Launch.Hidden</cmdType>
                        <cmdString>C:\Program Files\Telldus\tdtool.exe&amp;&amp;--off "{1}"</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\tellusdevices.xml</payloadFromXML>
            <phrase>please</phrase>
        </command>
        <command id="1557" name="List" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Launch.Hidden</cmdType>
                <cmdString>tellusgetlist.bat</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="True">
                <ifType>LastActionSuccess</ifType>
                <ifParams>&amp;&amp;</ifParams>
                <then>
                    <action>
                        <cmdType>File.WriteLine</cmdType>
                        <cmdString>tellusgetlist.bat&amp;&amp;del telduslist.txt</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>File.AppendLine</cmdType>
                        <cmdString>tellusgetlist.bat&amp;&amp;"C:\Program Files\Telldus\tdtool.exe" --list &gt;&gt;telduslist.txt</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Launch.Hidden</cmdType>
                        <cmdString>tellusgetlist.bat</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <action>
                <cmdType>PayloadXML.Clear</cmdType>
                <cmdString>payloads\tellusdevices.xml</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="True">
                <ifType>LastActionSuccess</ifType>
                <ifParams>&amp;&amp;</ifParams>
                <then>
                    <action>
                        <cmdType>PayloadXML.NewFile</cmdType>
                        <cmdString>payloads\tellusdevices.xml</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType />
                        <cmdString />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <action>
                <cmdType>Map.DropTable</cmdType>
                <cmdString>switchstate</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Map.CreateTable</cmdType>
                <cmdString>switchstate</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>File.Read</cmdType>
                <cmdString>telduslist.txt</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>Parsing list of devices</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.RegEx</cmdType>
                <cmdString>(.*)\t(.*)\t(ON|OFF)\r</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Map.Set</cmdType>
                <cmdString>switchstate&amp;&amp;{Match.{i}.2}&amp;&amp;{Match.{i}.3}&amp;&amp;True</cmdString>
                <cmdRepeat>{#M}</cmdRepeat>
            </action>
            <action>
                <cmdType>PayloadXML.AddPair</cmdType>
                <cmdString>payloads\tellusdevices.xml&amp;&amp;{Match.{i}.2}&amp;&amp;{Match.{i}.2}&amp;&amp;False</cmdString>
                <cmdRepeat>{#M}</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>Parsed {#M} devices</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>Refresh Tellus Devices</phrase>
        </command>
        <command id="1409" name="DiscreteAlternative" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>VC.TriggerEvent</cmdType>
                <cmdString>tell.lights&amp;&amp;{2}&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>turn</phrase>
            <payloadList>on,off</payloadList>
            <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\tellusdevices.xml</payloadFromXML>
        </command>
    </commandGroup>
</VoiceCommands>