<?xml version="1.0" encoding="utf-8"?>
<!--C:\Users\naomi\Desktop\VcGrp_homeShutdown.xml-->
<VoiceCommands version="">
    <!--this is an exported VoxCommando group-->
    <commandGroup open="True" name="homeShutdown" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="257" name="Do you want to shut everything down?" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <cmdString>Initiating the house shutdown procedure.</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <cmdString>I will turn off all the lights and activate the alarm system.</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <cmdString>The shut down process will occurr in 60 seconds.</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>shuttingDown&amp;&amp;True</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>counter&amp;&amp;60</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>VC.TriggerEvent</cmdType>
                <cmdString>countdownStart</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>I am leaving</phrase>
            <phrase optional="true">the house</phrase>
        </command>
        <command id="260" name="Countdown" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <if ifBlockDisabled="False" ifNot="True">
                <ifType>(A)==(B)</ifType>
                <ifParams>{var.shuttingDown}&amp;&amp;True</ifParams>
                <then>
                    <action>
                        <cmdType>VC.StopMacro</cmdType>
                        <cmdString />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)==(B)</ifType>
                <ifParams>{var.counter}&amp;&amp;0</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>Time is up. Shutting everything down now.</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>VC.TriggerEvent</cmdType>
                        <cmdString>shutdownHouse</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>{var.counter}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>PY.ExecString</cmdType>
                        <cmdString>result={var.counter}-1</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Results.SetVar</cmdType>
                        <cmdString>counter</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>VC.SetEventTimer</cmdType>
                        <cmdString>1s&amp;&amp;countdownStart</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <event>countdownStart</event>
        </command>
        <command id="261" name="Shuts down house" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Replace this placeholder command with whatever actions are needed to communicate with your home automation system.">
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>Replace this with HA action that is sent to turn everything off.</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>This command actually shuts everything off.</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <event>shutdownHouse</event>
        </command>
        <command id="262" name="Cancel shutdown" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>shuttingDown&amp;&amp;False</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>Understood. Now cancelling the shutdown procedure.</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase optional="true">Computer</phrase>
            <phrase>Cancel shut down, Belay that order, Abort shut down</phrase>
        </command>
        <command id="256" name="confirmation chitchat" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>OK. Do you want me to shut everything down?</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <event>Confirm.Do you want to shut everything down?</event>
        </command>
        <command id="275" name="confirmation cancel chitchat" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>Understood. The house will remain in the current mode.</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <event>Confirm.Cancel.Do you want to shut everything down?</event>
        </command>
    </commandGroup>
</VoiceCommands>