<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1540" Guid="{63DA672A-F7CB-4A47-BEC2-3DDC63516286}" Time="1327848817.68">
    <Autostart Name="Autostart" Expanded="True">
        <Plugin Identifier="Winamp" Guid="{4A22DD6A-5E2C-4500-90B4-47F5C58FD9CA}" File="Winamp">
            gAIpLg==
        </Plugin>
        <Action>
            System.Execute(u'C:\\Program Files\\Winamp\\winamp.exe', u'', 1, False, 2, u'', False)
        </Action>
        <Plugin Identifier="TellStick" Guid="{9ECBA250-AF41-4372-B64B-E42F2C2F2975}" File="TellStick">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="Serial" Guid="{D565171F-1703-4212-972C-B824B55329CB}" File="Serial">
            gAIoSwhNgCVLA0sASwBLAIlYAgAAAFxycQBYBgAAAFNlcmlhbHEBSwB0cQIu
        </Plugin>
        <Plugin Identifier="Weather" Guid="{E0ED124C-F85C-497B-8FFF-6A2B745F9076}" File="Weather">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="SchedulGhost" Guid="{39EFE2FF-6CA9-4450-B0E3-1AA125420B37}" File="SchedulGhost">
            gAIoWBsAAABDOlxQcm9ncmFtIEZpbGVzXEV2ZW50R2hvc3RxAFgAAAAAcQFYDAAAAFNjaGVkdWxHaG9zdHECXXEDKF1xBF1xBWVLAHRxBi4=
        </Plugin>
        <Plugin Identifier="Speech" Guid="{76A1638D-1D7D-4582-A726-A17B1A6FC723}" File="Speech">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="xPL" Guid="{E462E85F-D366-40B2-B230-36D2A2A7CA6E}" File="xPL">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="Webserver" Guid="{E4305D8E-A3D3-4672-B06E-4EA1F0F6C673}" File="Webserver">
            gAIoWAQAAABIVFRQcQBLUFheAAAAQzpcRG9jdW1lbnRzIGFuZCBTZXR0aW5nc1xXaW5kb3dzXEJ1cmVhdVxPbGl2aWVyXDA4IC0gSG9tZVw3NCAtIERvbW90aXF1ZVwxMCAtIEhvbWUgU2VydmVyXEhTSHEBWAoAAABFdmVudEdob3N0cQJYAAAAAHEDaAN0cQQu
        </Plugin>
        <Action Name="Python Script : Initialize Globals">
            EventGhost.PythonScript(u'\neg.globals.tempe_parents_bedroom = 18.0\neg.globals.tempe_oceane_bedroom = 18.0\neg.globals.tempe_coraline_bedroom = 18.0\neg.globals.tempe_2nd_floor_bathroom = 18.0\neg.globals.tempe_laboratory = 18.0\n\neg.globals.tempe_living_room = 18.0\neg.globals.tempe_library = 18.0\neg.globals.tempe_music_room = 18.0\neg.globals.tempe_1st_floor_bathroom = 18.0\neg.globals.tempe_garage = 18.0\neg.globals.tempe_exterior = 18.0\n\neg.globals.hygro_living_room = 50.0\neg.globals.hygro_1st_floor_bathroom = 50.0\neg.globals.hygro_2nd_floor_bathroom = 50.0\n\neg.globals.tempe_external_web = 18.0\neg.globals.trend_tempe_external_web = "undefined"\neg.globals.tempe_external_today_low_web = 18.0\neg.globals.tempe_external_today_high_web = 18.0\neg.globals.sun_is_up = "undefined"\n\neg.globals.light_all_off = "False"\neg.globals.light_parents_bedroom = "undefined"\neg.globals.light_oceane_bedroom = "undefined"\neg.globals.light_coraline_bedroom = "undefined"\neg.globals.light_laboratory = "undefined"\neg.globals.light_2nd_floor_linen_room = "undefined"\neg.globals.light_2nd_floor_corridor = "undefined"\neg.globals.light_staircase = "undefined"\neg.globals.light_1st_floor_linen_room = "undefined"\neg.globals.light_library_left = "undefined"\neg.globals.light_library_right = "undefined"\neg.globals.light_library_back = "undefined"\neg.globals.light_1st_floor_linen_room = "undefined"\n\neg.globals.ventilation_1st_floor_s1 = "undefined"\neg.globals.ventilation_1st_floor_s2 = "undefined"\neg.globals.ventilation_1st_floor_override = "False"\neg.globals.ventilation_1st_floor_setting = "undefined"\neg.globals.ventilation_2nd_floor_s1 = "undefined"\neg.globals.ventilation_2nd_floor_s2 = "undefined"\neg.globals.ventilation_2nd_floor_override = "False"\neg.globals.ventilation_2nd_floor_setting = "undefined"\n\neg.globals.dns_313 = "undefined"\n\neg.globals.shutter_living_room = "undefined"\neg.globals.shutters_2nd_floor = "undefined"\n\neg.globals.working_day = "undefined"\neg.globals.week_end = "undefined"\n\n')
        </Action>
        <Action>
            System.Execute(u'C:\\Program Files\\TextAloud\\TextAloudMP3.exe', u'', 0, False, 2, u'', False)
        </Action>
        <Action Name="Wait: 35.0 sec">
            EventGhost.Wait(30.0)
        </Action>
        <Action>
            Window.FindWindow(u'TextAloudMP3.exe', u'TextAloud', u'TApplication', None, None, None, False, 1.0, 0)
        </Action>
        <Action>
            Window.Close()
        </Action>
        <Action>
            EventGhost.Wait(1.0)
        </Action>
        <Action>
            Speech.TextToSpeech(u'LH Michelle', -1, u'   ', 0, 50)
        </Action>
        <Action>
            Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u'Hello Oliver, It is {TIME}.', 0, 50)
        </Action>
        <Action Enabled="False">
            System.Execute(u'C:\\Program Files\\e-Speaking\\e-Speaking.exe', u'', 1, False, 2, u'', False)
        </Action>
        <Action>
            EventGhost.TriggerEvent(u'Play_WinAmp', 0.0)
        </Action>
        <Action>
            EventGhost.TriggerEvent(u'Start', 0.0)
        </Action>
    </Autostart>
    <Folder Name="Shutters">
        <Folder Name="All">
            <Macro Name="Open all shutters">
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm opening all shutters", 0, 50)
                </Action>
                <Action>
                    Serial.Write(u'RLY21')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY20')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
                <Action>
                    TellStick.TurnOn(16)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Sunshade all windows">
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm sunshading all windows", 0, 50)
                </Action>
                <Action>
                    Serial.Write(u'RLY41')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY40')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
                <Action>
                    TellStick.TurnOff(16)
                </Action>
                <Action>
                    EventGhost.Wait(14.0)
                </Action>
                <Action>
                    TellStick.TurnOff(16)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Close all shutters">
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm closing all shutters", 0, 50)
                </Action>
                <Action>
                    Serial.Write(u'RLY31')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY30')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
                <Action>
                    TellStick.TurnOff(16)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="2nd floor">
            <Macro Name="Open 2nd floor shutters">
                <Event Name="Main.Open_2nd_floor_shutters" />
                <Event Name="HTTP.Open_2nd_floor_shutters" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm opening 2nd floor shutters", 0, 50)
                </Action>
                <Action>
                    Serial.Write(u'RLY21')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY20')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.shutters_2nd_floor = "opened"')
                </Action>
                <Action Name="Log To File">
                    EventGhost.PythonScript(u'# Log To File\nimport sys, time, os\n\ns = str(eg.globals.shutters_2nd_floor) + ";Shutters_2nd_floor"\nfName = \'Shutter.csv\'\n\nmajorVersion, minorVersion = sys.getwindowsversion()[0:2]\n\ntimeStamp = str(\n    time.strftime("%d/%m/%Y %H:%M:%S;", time.localtime())\n)\nlogStr = timeStamp+s+"\\n"\nfileHandle = None\n\nif majorVersion &gt; 5:\n    progData = os.environ[\'ALLUSERSPROFILE\']\n    if not os.path.exists(progData+"/EventGhost/Log") and not os.path.isdir(progData+"/EventGhost/Log"):\n        os.makedirs(progData+"/EventGhost/Log")\n    fileHandle = open(progData+\'/EventGhost/Log/\'+fName, \'a\')\n    fileHandle.write(logStr)\n    fileHandle.close()\nelse:\n    if not os.path.exists(\'Log\') and not os.path.isdir(\'Log\'):\n        os.mkdir(\'Log\')\n    fileHandle = open(\'Log/\'+fName, \'a\')\n    fileHandle.write(logStr)\n    fileHandle.close()\n')
                </Action>
            </Macro>
            <Macro Name="Sunshade 2nd floor windows">
                <Event Name="Main.Sunshade_2nd_floor_windows" />
                <Event Name="HTTP.Sunshade_2nd_floor_windows" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm sunshading 2nd floor windows", 0, 50)
                </Action>
                <Action>
                    Serial.Write(u'RLY41')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY40')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.shutters_2nd_floor = "sun_shading"')
                </Action>
                <Action Name="Log To File">
                    EventGhost.PythonScript(u'# Log To File\nimport sys, time, os\n\ns = str(eg.globals.shutters_2nd_floor) + ";Shutters_2nd_floor"\nfName = \'Shutter.csv\'\n\nmajorVersion, minorVersion = sys.getwindowsversion()[0:2]\n\ntimeStamp = str(\n    time.strftime("%d/%m/%Y %H:%M:%S;", time.localtime())\n)\nlogStr = timeStamp+s+"\\n"\nfileHandle = None\n\nif majorVersion &gt; 5:\n    progData = os.environ[\'ALLUSERSPROFILE\']\n    if not os.path.exists(progData+"/EventGhost/Log") and not os.path.isdir(progData+"/EventGhost/Log"):\n        os.makedirs(progData+"/EventGhost/Log")\n    fileHandle = open(progData+\'/EventGhost/Log/\'+fName, \'a\')\n    fileHandle.write(logStr)\n    fileHandle.close()\nelse:\n    if not os.path.exists(\'Log\') and not os.path.isdir(\'Log\'):\n        os.mkdir(\'Log\')\n    fileHandle = open(\'Log/\'+fName, \'a\')\n    fileHandle.write(logStr)\n    fileHandle.close()\n')
                </Action>
            </Macro>
            <Macro Name="Close 2nd floor shutters">
                <Event Name="Main.Close_2nd_floor_shutters" />
                <Event Name="HTTP.Close_2nd_floor_shutters" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm closing 2nd floor shutters", 0, 50)
                </Action>
                <Action>
                    Serial.Write(u'RLY31')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY30')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.shutters_2nd_floor = "closed"')
                </Action>
                <Action Name="Log To File">
                    EventGhost.PythonScript(u'# Log To File\nimport sys, time, os\n\ns = str(eg.globals.shutters_2nd_floor) + ";Shutters_2nd_floor"\nfName = \'Shutter.csv\'\n\nmajorVersion, minorVersion = sys.getwindowsversion()[0:2]\n\ntimeStamp = str(\n    time.strftime("%d/%m/%Y %H:%M:%S;", time.localtime())\n)\nlogStr = timeStamp+s+"\\n"\nfileHandle = None\n\nif majorVersion &gt; 5:\n    progData = os.environ[\'ALLUSERSPROFILE\']\n    if not os.path.exists(progData+"/EventGhost/Log") and not os.path.isdir(progData+"/EventGhost/Log"):\n        os.makedirs(progData+"/EventGhost/Log")\n    fileHandle = open(progData+\'/EventGhost/Log/\'+fName, \'a\')\n    fileHandle.write(logStr)\n    fileHandle.close()\nelse:\n    if not os.path.exists(\'Log\') and not os.path.isdir(\'Log\'):\n        os.mkdir(\'Log\')\n    fileHandle = open(\'Log/\'+fName, \'a\')\n    fileHandle.write(logStr)\n    fileHandle.close()\n')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Parents">
            <Macro Name="Open parents shutters">
                <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=on,device=j15," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm opening parents shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY21')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY20')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Sunshalde parents windows">
                <Event Name="Main.Shunshade_parents_windows" Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm sunshading parents windows", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY41')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY40')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Close parents shutters">
                <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=off,device=j15," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm closing parents shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY31')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY30')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Oceane">
            <Macro Name="Open Oceane shutters">
                <Event Name="xPL.xpl-trig:homeeasy.basic:mal-rfxcom.xplaptop:*:address=0x00357456,unit=5,command=on," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm opening Oceane shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY21')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY20')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Sunshade Oceane windows">
                <Event Name="Main.Shunshade_oceane_windows" Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm sunshading Ocean windows", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY41')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY40')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Close Oceane shutters">
                <Event Name="xPL.xpl-trig:homeeasy.basic:mal-rfxcom.xplaptop:*:address=0x00357456,unit=5,command=off," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm closing Ocean shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY31')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY30')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Coraline">
            <Macro Name="Open Coraline shutters">
                <Event Name="xPL.xpl-trig:homeeasy.basic:mal-rfxcom.xplaptop:*:address=0x0020a2f2,unit=9,command=on," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm opening Caroline shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY21')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY20')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Sunshade Coraline windows">
                <Event Name="Main.Shunshade_coraline_windows" Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm sunshading Caroline windows", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY41')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY40')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Close Coraline shutters">
                <Event Name="xPL.xpl-trig:homeeasy.basic:mal-rfxcom.xplaptop:*:address=0x0020a2f2,unit=9,command=off," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm closing Coraline shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY31')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY30')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Living room">
            <Macro Name="Open living room shutters">
                <Event Name="HTTP.Open_living_room_shutters" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm opening living room shutters", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOn(16)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Sunshade living room windows" Expanded="True">
                <Event Name="Main.Sunshade_living_room_windows" Enabled="False" />
                <Event Name="HTTP.Sunshade_living_room_windows" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm sunshading living room windows", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOff(16)
                </Action>
                <Action>
                    EventGhost.Wait(12.0)
                </Action>
                <Action>
                    TellStick.TurnOff(16)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Close living room shutters">
                <Event Name="HTTP.Close_living_room_shutters" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm closing living room shutters", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOff(16)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Others">
            <Macro Name="Open other shutters">
                <Event Name="xPL.xpl-trig:homeeasy.basic:mal-rfxcom.xplaptop:*:address=0x00356ba2,unit=1,command=on," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm opening other shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY21')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY20')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Sunshade other windows">
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm sunshading other windows", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY41')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY40')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
            <Macro Name="Close other shutters">
                <Event Name="xPL.xpl-trig:homeeasy.basic:mal-rfxcom.xplaptop:*:address=0x00356ba2,unit=1,command=off," Enabled="False" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm closing other shutters", 0, 50)
                </Action>
                <Action Name="Wakes-up RC">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Slect parents shutter">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY31')
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    Serial.Write(u'RLY30')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action Name="Return to All shutters selection">
                    EventGhost.Comment()
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY11')
                </Action>
                <Action>
                    EventGhost.Wait(0.29999999999999999)
                </Action>
                <Action>
                    Serial.Write(u'RLY10')
                </Action>
                <Action>
                    EventGhost.Wait(6.0)
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Folder Name="Lighting">
        <Folder Name="All">
            <Macro Name="Swtich OFF all lightings">
                <Event Name="SchedulGhost.Stand_alone" />
                <Event Name="SchedulGhost.Switch_off_all_lightings" />
                <Event Name="HTTP.Switch_all_lights_OFF" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.light_all_off = "True"')
                </Action>
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching off all lightings", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOff(10)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(19)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(11)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(13)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(15)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(14)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(2)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(3)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(4)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(5)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(6)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(17)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(7)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="1st floor">
            <Folder Name="1st floor linen room">
                <Macro Name="Switch light ON of 1st floor linen room" Expanded="True">
                    <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=on,device=g4," />
                    <Event Name="HTTP.Switch_light_ON_of_1st_floor_linen_room" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of first floor linen room.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(5)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of 1st floor linen room" Expanded="True">
                    <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=off,device=g4," />
                    <Event Name="HTTP.Switch_light_OFF_of_1st_floor_linen_room" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of first floor linen room.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(5)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Staircase">
                <Macro Name="Switch light ON of staircase" Expanded="True">
                    <Event Name="HTTP.Switch_light_ON_of_staircase" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of staircase", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(6)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of staircase" Expanded="True">
                    <Event Name="HTTP.Switch_light_OFF_of_staircase" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of staircase", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(6)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Library right">
                <Macro Name="Switch light ON of library right" Expanded="True">
                    <Event Name="HTTP.Switch_light_ON_of_library_right" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of library right.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(3)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of library right" Expanded="True">
                    <Event Name="HTTP.Switch_light_OFF_of_library_right" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of library right.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(3)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Library left">
                <Macro Name="Switch light ON of library left" Expanded="True">
                    <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=on,device=g2," />
                    <Event Name="HTTP.Switch_light_ON_of_library_left" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of library left.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(2)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of library left" Expanded="True">
                    <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=off,device=g2," />
                    <Event Name="HTTP.Switch_light_OFF_of_library_left" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of library left.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(2)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Library back">
                <Macro Name="Switch light ON of library back">
                    <Event Name="HTTP.Switch_light_ON_of_library_back" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of library back.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(4)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of library back">
                    <Event Name="HTTP.Switch_light_OFF_of_library_back" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of library back.", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(4)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Folder Name="2nd floor">
            <Folder Name="Parents bedroom">
                <Macro Name="Switch light ON of parents bedroom" Expanded="True">
                    <Event Name="HTTP.Switch_light_ON_of_parents_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of parents bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(10)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of parents bedroom" Expanded="True">
                    <Event Name="HTTP.Switch_light_OFF_of_parents_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of parents bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(10)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch plug ON of parents bedroom" Expanded="True">
                    <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=on,device=j14," />
                    <Event Name="HTTP.Switch_light_ON_of_parents_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching plug on, of parents bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(19)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch plug OFF of parents bedroom" Expanded="True">
                    <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=off,device=j14," />
                    <Event Name="HTTP.Switch_light_OFF_of_parents_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching plug off, of parents bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(19)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Oceane bedroom">
                <Macro Name="Switch light ON of Oceane bedroom" Expanded="True">
                    <Event Name="HTTP.Switch_light_ON_of_Oceane_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of Oceane bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(14)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of Oceane bedroom" Expanded="True">
                    <Event Name="HTTP.Switch_light_OFF_of_Oceane_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of Oceane bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(14)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Coraline bedroom">
                <Macro Name="Switch light ON of Coraline bedroom" Expanded="True">
                    <Event Name="HTTP.Switch_light_ON_of_Coraline_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of Coraline bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(15)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of Coraline bedroom" Expanded="True">
                    <Event Name="HTTP.Switch_light_OFF_of_Coraline_bedroom" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of Coraline bedroom", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(15)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="2nd floor linen room">
                <Macro Name="Switch light ON of 2nd floor linen room" Expanded="True">
                    <Event Name="HTTP.Switch_light_ON_of_2nd_floor_linen_room" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of 2nd floor linen room", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(13)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of 2nd floor linen room" Expanded="True">
                    <Event Name="HTTP.Switch_light_OFF_of_2nd_floor_linen_room" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of 2nd floor linen room", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(13)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="2nd floor corridor">
                <Macro Name="Switch light ON of 2nd floor corridor">
                    <Event Name="HTTP.Switch_light_ON_of_2nd_floor_corridor" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of 2nd floor corridor", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(17)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                    <Action>
                        TellStick.TurnOn(7)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of 2nd floor corridor">
                    <Event Name="HTTP.Switch_light_OFF_of_2nd_floor_corridor" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of 2nd floor corridor", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(7)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                    <Action>
                        TellStick.TurnOff(17)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Laboratory">
                <Macro Name="Switch light ON of laboratory">
                    <Event Name="HTTP.Switch_light_ON_of_laboratory" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light on, of laboratory", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOn(11)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
                <Macro Name="Switch light OFF of laboratory">
                    <Event Name="HTTP.Switch_light_OFF_of_laboratory" />
                    <Action>
                        Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching light off, of laboratory", 0, 30)
                    </Action>
                    <Action>
                        TellStick.TurnOff(11)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.55000000000000004)
                    </Action>
                </Macro>
            </Folder>
        </Folder>
    </Folder>
    <Folder Name="Ventilation">
        <Folder Name="1st floor">
            <Macro Name="Set 1st floor ventilation to HIGH speed">
                <Event Name="Main.Set_1st_floor_ventilation_to_high_speed" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm setting first floor ventilation to high speed", 0, 70)
                </Action>
                <Action>
                    TellStick.TurnOn(20)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOn(21)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Set 1st floor ventilation to LOW speed">
                <Event Name="Main.Set_1st_floor_ventilation_to_low_speed" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm setting first floor ventilation to low speed", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOn(20)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(21)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Switch OFF 1st floor ventilation">
                <Event Name="Main.Set_1st_floor_ventilation_to_off" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching off first floor ventilation", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOff(21)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(20)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Force 1st floor ventilation to HIGH speed">
                <Event Name="HTTP.Force_1st_floor_ventilation_to_HIGH_speed" />
                <Event Name="xPL.Force_1st_floor_ventilation_to_HIGH_speed" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_1st_floor_override = "True"')
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Set_1st_floor_ventilation_to_high_speed', 0.0)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'End_1st_floor_ventilation_manual_override', 3600.0)
                </Action>
            </Macro>
            <Macro Name="Force 1st floor ventilation to LOW speed">
                <Event Name="HTTP.Force_1st_floor_ventilation_to_LOW_speed" />
                <Event Name="xPL.Force_1st_floor_ventilation_to_LOW_speed" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_1st_floor_override = "True"')
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Set_1st_floor_ventilation_to_low_speed', 0.0)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'End_1st_floor_ventilation_manual_override', 3600.0)
                </Action>
            </Macro>
            <Macro Name="Force 1st floor ventilation to OFF">
                <Event Name="HTTP.Force_1st_floor_ventilation_to_OFF" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_1st_floor_override = "True"')
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Set_1st_floor_ventilation_to_off', 0.0)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'End_1st_floor_ventilation_manual_override', 3600.0)
                </Action>
            </Macro>
            <Macro Name="Force 1st floor ventilation to AUTO Mode">
                <Event Name="HTTP.Force_1st_floor_ventilation_to_AUTO_mode" />
                <Event Name="Main.End_1st_floor_ventilation_manual_override" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_1st_floor_override = "False"')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="2nd floor">
            <Macro Name="Set 2nd floor ventilation to HIGH speed">
                <Event Name="Main.Set_2nd_floor_ventilation_to_high_speed" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm setting upstairs ventilation to high speed", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOn(8)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOn(9)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Set 2nd floor ventilation to LOW speed">
                <Event Name="Main.Set_2nd_floor_ventilation_to_low_speed" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm setting upstairs ventilation to low speed", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOn(8)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(9)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Switch OFF 2nd floor ventilation">
                <Event Name="Main.Set_2nd_floor_ventilation_to_off" />
                <Action>
                    Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching off upstairs ventilation", 0, 50)
                </Action>
                <Action>
                    TellStick.TurnOff(9)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
                <Action>
                    TellStick.TurnOff(8)
                </Action>
                <Action>
                    EventGhost.Wait(0.55000000000000004)
                </Action>
            </Macro>
            <Macro Name="Force 2nd floor ventilation to HIGH speed" Expanded="True">
                <Event Name="HTTP.Force_2nd_floor_ventilation_to_HIGH_speed" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_2nd_floor_override = "True"')
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Set_2nd_floor_ventilation_to_high_speed', 0.0)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'End_2nd_floor_ventilation_manual_override', 3600.0)
                </Action>
            </Macro>
            <Macro Name="Force 2nd floor ventilation to LOW speed" Expanded="True">
                <Event Name="HTTP.Force_2nd_floor_ventilation_to_LOW_speed" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_2nd_floor_override = "True"')
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Set_2nd_floor_ventilation_to_low_speed', 0.0)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'End_2nd_floor_ventilation_manual_override', 3600.0)
                </Action>
            </Macro>
            <Macro Name="Force 2nd floor ventilation to OFF" Expanded="True">
                <Event Name="HTTP.Force_2nd_floor_ventilation_to_OFF" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_2nd_floor_override = "True"')
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Set_2nd_floor_ventilation_to_off', 0.0)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'End_2nd_floor_ventilation_manual_override', 3600.0)
                </Action>
            </Macro>
            <Macro Name="Force 2nd floor ventilation to AUTO mode" Expanded="True">
                <Event Name="HTTP.Force_2nd_floor_ventilation_to_AUTO_mode" />
                <Event Name="Main.End_2nd_floor_ventilation_manual_override" />
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.ventilation_2nd_floor_override = "False"')
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Folder Name="DNS-313">
        <Macro Name="Switch ON DNS-313">
            <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=on,device=g5," />
            <Event Name="HTTP.Switch_ON_DNS-313" />
            <Action>
                Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching on DNS-313.", 0, 50)
            </Action>
            <Action>
                TellStick.TurnOn(18)
            </Action>
            <Action>
                EventGhost.Wait(1.0)
            </Action>
            <Action>
                Serial.Write(u'RLY51')
            </Action>
            <Action>
                EventGhost.Wait(0.40000000000000002)
            </Action>
            <Action>
                Serial.Write(u'RLY50')
            </Action>
            <Action>
                EventGhost.Wait(0.29999999999999999)
            </Action>
        </Macro>
        <Macro Name="Switch OFF DNS-313">
            <Event Name="xPL.xpl-trig:x10.basic:mal-rfxcom.xplaptop:*:command=off,device=g5," />
            <Event Name="HTTP.Switch_OFF_DNS-313" />
            <Action>
                Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm switching off DNS-313.", 0, 50)
            </Action>
            <Action>
                Serial.Write(u'RLY51')
            </Action>
            <Action>
                EventGhost.Wait(0.40000000000000002)
            </Action>
            <Action>
                Serial.Write(u'RLY50')
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.dns_313 = "off"')
            </Action>
            <Action>
                EventGhost.Wait(5.0)
            </Action>
            <Action>
                TellStick.TurnOff(18)
            </Action>
            <Action>
                EventGhost.Wait(0.55000000000000004)
            </Action>
        </Macro>
        <Macro Name="Lunch Thunderbird">
            <Event Name="System.DriveMounted.H" Enabled="False" />
            <Event Name="System.DriveMounted.E" Enabled="False" />
            <Action>
                Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', -1, u"I'm lunching Thunderbird", 0, 60)
            </Action>
            <Action>
                System.Execute(u'C:\\Program Files\\Thunderbird\\thunderbird.exe', u'', 0, False, 2, u'')
            </Action>
        </Macro>
    </Folder>
    <Folder Name="Winamp">
        <Macro Name="Toggle Play">
            <Action>
                Winamp.TogglePlay()
            </Action>
        </Macro>
        <Macro Name="Play">
            <Event Name="Main.Play_WinAmp" />
            <Action>
                Winamp.Play()
            </Action>
        </Macro>
        <Macro Name="Pause">
            <Action>
                Winamp.Pause()
            </Action>
        </Macro>
        <Macro Name="Discrete Pause">
            <Action>
                Winamp.DiscretePause()
            </Action>
        </Macro>
        <Macro Name="Stop">
            <Action>
                Winamp.Stop()
            </Action>
        </Macro>
        <Macro Name="Previous Track">
            <Action>
                Winamp.PreviousTrack()
            </Action>
        </Macro>
        <Macro Name="Next Track">
            <Action>
                Winamp.NextTrack()
            </Action>
        </Macro>
        <Macro Name="Fast Forward">
            <Action>
                Winamp.FastForward()
            </Action>
        </Macro>
        <Macro Name="Fast Rewind">
            <Action>
                Winamp.FastRewind()
            </Action>
        </Macro>
        <Macro Name="Fadeout">
            <Action>
                Winamp.Fadeout()
            </Action>
        </Macro>
        <Macro Name="Volume Up">
            <Action>
                Winamp.VolumeUp()
            </Action>
        </Macro>
        <Macro Name="Volume Down">
            <Action>
                Winamp.VolumeDown()
            </Action>
        </Macro>
        <Macro Name="Exit" Expanded="True">
            <Action>
                Winamp.Exit()
            </Action>
        </Macro>
        <Macro Name="Show File Info">
            <Action>
                Winamp.ShowFileinfo()
            </Action>
        </Macro>
        <Macro Name="Choose File">
            <Action>
                Winamp.ChooseFile()
            </Action>
        </Macro>
        <Macro Name="Execute Visualisation">
            <Action>
                Winamp.ExVis()
            </Action>
        </Macro>
        <Macro Name="Change Shuffel Status">
            <Action>
                Winamp.ChangeShuffleStatus()
            </Action>
        </Macro>
        <Macro Name="Change Repeat Status">
            <Action>
                Winamp.ChangeRepeatStatus()
            </Action>
        </Macro>
        <Macro Name="Set Volume Level">
            <Action>
                Winamp.SetVolume()
            </Action>
        </Macro>
        <Macro Name="Change Volume Level">
            <Action>
                Winamp.ChangeVolume()
            </Action>
        </Macro>
        <Folder Name="Information retrieval">
            <Macro Name="Get Currently Playing Song Title">
                <Action>
                    Winamp.GetPlayingSongTitle()
                </Action>
            </Macro>
            <Macro Name="Get Shuffle Status">
                <Action>
                    Winamp.GetShuffleStatus()
                </Action>
            </Macro>
            <Macro Name="Get Repeat Status">
                <Action>
                    Winamp.GetRepeatStatus()
                </Action>
            </Macro>
            <Macro Name="Get Volume Level">
                <Action>
                    Winamp.GetVolume()
                </Action>
            </Macro>
            <Macro Name="Get Sample Rate">
                <Action>
                    Winamp.GetSampleRate()
                </Action>
            </Macro>
            <Macro Name="Get Bit Rate">
                <Action>
                    Winamp.GetBitRate()
                </Action>
            </Macro>
            <Macro Name="Get Channels">
                <Action>
                    Winamp.GetChannels()
                </Action>
            </Macro>
            <Macro Name="Get Playlist Position">
                <Action>
                    Winamp.GetPosition()
                </Action>
            </Macro>
            <Macro Name="Get Playlist Length">
                <Action>
                    Winamp.GetLength()
                </Action>
            </Macro>
            <Macro Name="Get Song Elapsed">
                <Action>
                    Winamp.GetElapsed()
                </Action>
            </Macro>
            <Macro Name="Get Song Duration">
                <Action>
                    Winamp.GetDuration()
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Folder Name="Weather">
        <Macro Name="Get Toulouse weather data">
            <Event Name="Main.Get_weather_data " />
            <Action>
                Weather.GetWeatherFromGoogle(u'Toulouse, France', u'')
            </Action>
            <Action Name="Weather: GetWeatherFieldValue: Current Tempe">
                Weather.GetWeatherFieldValue(u'current_conditions', u'temp_c', -1)
            </Action>
            <Action Name="Update External Temp and Trend eg.globals">
                EventGhost.PythonScript(u'if eg.globals.trend_tempe_external_web == "undefined" :\n    eg.globals.tempe_external_web = float(eg.result)\n    eg.globals.trend_tempe_external_web = "Neutral"\n    eg.Print("External temperature : " + str( eg.globals.tempe_external_web ) )\n    eg.Print("Trend : " + eg.globals.trend_tempe_external_web )\nelse :\n    if (eg.globals.tempe_external_web &lt;&gt; float(eg.result)) :\n        if eg.result &gt; eg.globals.tempe_external_web:\n            eg.globals.trend_tempe_external_web = "Up"\n        else:\n            eg.globals.trend_tempe_external_web = "Down"\n        eg.globals.tempe_external_web = float(eg.result)\n        eg.Print("External temperature : " + str( eg.globals.tempe_external_web ) )\n        eg.Print("Trend : " + eg.globals.trend_tempe_external_web )\n\n# robustness on external sensor (eg.globals.tempe_exterior)\nif ( (eg.globals.tempe_exterior &gt; (eg.globals.tempe_external_web + 3.0) ) or (eg.globals.tempe_exterior &lt; (eg.globals.tempe_external_web - 3.0) ) ) :\n    eg.globals.tempe_exterior = eg.globals.tempe_external_web')
            </Action>
            <Action Name="Weather: GetWeatherFieldValue: Today's HIGH">
                Weather.GetWeatherFieldValue(u'forecasts', u'high', 0)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.tempe_external_today_high_web = round((float(eg.result)-32.0)*5.0/9.0,1)')
            </Action>
            <Action Name="Weather: GetWeatherFieldValue:  Today's LOW">
                Weather.GetWeatherFieldValue(u'forecasts', u'low', 0)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.tempe_external_today_low_web = round((float(eg.result)-32.0)*5.0/9.0,1)')
            </Action>
        </Macro>
        <Macro Name="Say Toulouse weather data">
            <Event Name="Main.Start" />
            <Event Name="Main.Say_weather_forcast" />
            <Action>
                Weather.GetWeatherFromGoogle(u'Toulouse, France', u'en')
            </Action>
            <Action>
                Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', 0, u'{eg.result[\'current_conditions\'][\'condition\'] + " and " + eg.result[\'current_conditions\'][\'temp_c\'] + " degrees celcius now in Toulouse. The forecast for tomorrow is " + eg.result[\'forecasts\'][0][\'condition\'] }', 0, 50)
            </Action>
            <Action Name="Weather: GetWeatherFieldValue: Today's HIGH">
                Weather.GetWeatherFieldValue(u'forecasts', u'high', 0)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.tempe_external_today_high_web = (float(eg.result)-32.0)*5.0/9.0')
            </Action>
            <Action>
                Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', 0, u'"Temperature will be between " {int(round(eg.globals.tempe_external_today_high_web))}', 0, 50)
            </Action>
            <Action Name="Weather: GetWeatherFieldValue:  Today's LOW">
                Weather.GetWeatherFieldValue(u'forecasts', u'low', 0)
            </Action>
            <Action>
                EventGhost.PythonCommand(u'eg.globals.tempe_external_today_low_web = (float(eg.result)-32.0)*5.0/9.0')
            </Action>
            <Action>
                Speech.TextToSpeech(u'Acapela Telecom HQ TTS English (US) (Heather 22 kHz)', 0, u'"and  " {int(round(eg.globals.tempe_external_today_low_web))} " degrees celcius."', 0, 50)
            </Action>
        </Macro>
    </Folder>
    <Folder Name="SunTracker">
        <Macro Name="Compute Sun Position">
            <Event Name="Main.Compute_sun_position" />
            <Action Name="Compute Sun Position">
                EventGhost.PythonScript(u'\nimport math, time\nfrom math import pi\n\n# Print Bebug?\nDBG = 0\n\n# Long/Long at the location of interest\nlongitude = 1.4333\nlatitude = 43.6\n\n# Some conversion factors between radians and degrees\nRADEG = 180.0 / pi\nDEGRAD = pi / 180.0\nINV360 = 1.0 / 360.0\n\n# The trigonometric functions in degrees\ndef sind(x):\n    """Returns the sin in degrees"""\n    return math.sin(x * DEGRAD)\n\ndef cosd(x):\n    """Returns the cos in degrees"""\n    return math.cos(x * DEGRAD)\n\ndef tand(x):\n    """Returns the tan in degrees"""\n    return math.tan(x * DEGRAD)\n\ndef atand(x):\n    """Returns the arc tan in degrees"""\n    return math.atan(x) * RADEG\n\ndef asind(x):\n    """Returns the arc sin in degrees"""\n    return math.asin(x) * RADEG\n\ndef acosd(x):\n    """Returns the arc cos in degrees"""\n    return math.acos(x) * RADEG\n\ndef atan2d(y, x):\n    """Returns the atan2 in degrees"""\n    return math.atan2(y, x) * RADEG\n\n#eg.Print("-------------------------------------")\n\nd = int(time.strftime("%j", time.localtime()))\n\ndelta = asind( sind(23.45) * sind(360/365.0*(d-81)) )\n\nB = 360 / 365.0 * ( d - 81 )\n\nEoT = 9.87 * sind(2*B) - 7.53 * cosd(B) - 1.5 * sind(B)\n\nif ( float(time.strftime("%H", time.localtime())) &gt; float(time.strftime("%H", time.gmtime())) ) :\n    LSTM =  15.0 * ( float(time.strftime("%H", time.localtime())) - float(time.strftime("%H", time.gmtime())) ) # Local Standard Time Meridian\nelse :\n    LSTM =  15.0 * ( 24.0 + float(time.strftime("%H", time.localtime())) - float(time.strftime("%H", time.gmtime())) ) # Local Standard Time Meridian\n\nTC = 4.0 * (longitude - LSTM) + EoT # Time Correction Factor\n\nLT = float(time.strftime("%H", time.localtime())) + float(time.strftime("%M", time.localtime())) / 60.0  # Local Time\n\nLST = LT + TC/60.0 # Local Solar Time\n\nHRA = 15.0 * (LST - 12.0) # Hour Angle\n\nphi = latitude\n\neg.globals.sun_rise = 12.0 - 1 / 15.0 * acosd( -sind(phi) * sind(delta) / cosd(phi) / cosd(delta) ) - TC / 60.0\n\neg.globals.sun_set = 12.0 + 1 / 15.0 * acosd( -sind(phi) * sind(delta) / cosd(phi) / cosd(delta) ) - TC / 60.0\n\neg.globals.sun_elevation = asind(sind(delta)*sind(phi)+cosd(delta)*cosd(phi)*cosd(HRA))\n\nif eg.globals.sun_elevation &gt;= -3.0 :\n    eg.globals.sun_is_up = True\nelse :\n    eg.globals.sun_is_up = False\n\nif HRA &lt; 0 :\n    eg.globals.sun_azimuth = acosd((sind(delta)*cosd(phi)-cosd(delta)*sind(phi)*cosd(HRA))/cosd(eg.globals.sun_elevation))\nelse :\n    eg.globals.sun_azimuth = 360 - acosd((sind(delta)*cosd(phi)-cosd(delta)*sind(phi)*cosd(HRA))/cosd(eg.globals.sun_elevation))\n\nif DBG :\n    eg.Print("d : " + str(d))\n    eg.Print("LT : " + str(LT))\n    eg.Print("LSTM : " + str(LSTM))\n    eg.Print("B : " + str(B))\n    eg.Print("EoT : " + str(EoT))\n    eg.Print("TC : " + str(TC))\n    eg.Print("LST : " + str(LST))\n    eg.Print("HRA : " + str(HRA))\n    eg.Print("delta : " + str(delta))\n    eg.Print("Elevation : " + str(eg.globals.sun_elevation))\n    eg.Print("SunRise : " + str(eg.globals.sun_rise))\n    eg.Print("SunSet : " + str(eg.globals.sun_set))\n    eg.Print("Azimuth : " + str(eg.globals.sun_azimuth))\n    eg.Print("-------------------------------------")\n')
            </Action>
        </Macro>
    </Folder>
    <Folder Name="Monitoring" Expanded="True">
        <Macro Name="1 min monitoring">
            <Event Name="Main.Monitor_every_minute" />
            <Action Name="Determine if working day - week end">
                EventGhost.PythonScript(u'import time\n\nif ( time.strftime("%A", time.localtime())=="mercredi" or time.strftime("%A", time.localtime())=="samedi" or time.strftime("%A", time.localtime())=="dimanche" ) :\n    eg.globals.working_day = "no"\nelse:\n    eg.globals.working_day = "yes"\n\nif ( time.strftime("%A", time.localtime())=="samedi" or time.strftime("%A", time.localtime())=="dimanche" ) :\n    eg.globals.week_end = "yes"\nelse:\n    eg.globals.week_end = "no"\n')
            </Action>
            <Action Name="Automation of 2nd floor Shutters">
                EventGhost.PythonScript(u'#Auto Shutters\nimport time\n\n#Auto Open (Light management)\nif ( (eg.globals.shutters_2nd_floor != "opened") and (eg.globals.sun_is_up == True)) :\n    if ( (eg.globals.working_day == "yes") and (int(time.strftime("%H", time.localtime())) &gt;= 8) ) :\n        eg.TriggerEvent("Open_2nd_floor_shutters")\n    if ( (eg.globals.working_day == "no") and (int(time.strftime("%H", time.localtime())) &gt;= 9) ) :\n        eg.TriggerEvent("Open_2nd_floor_shutters")\n\n#Auto Close (Light management)\nif ( ( (eg.globals.shutters_2nd_floor == "opened") or (eg.globals.shutters_2nd_floor == "sun_shading") )\nand (eg.globals.sun_is_up == False) ) :\n    eg.TriggerEvent("Close_2nd_floor_shutters")\n\n#Activate SunShading (Heat Management)\nif ( (eg.globals.tempe_external_web &gt;= 18.0 or eg.globals.sun_elevation &gt;= 15.0) \nand (eg.globals.tempe_external_today_high_web &gt;= 24.0) and (eg.globals.tempe_parents_bedroom &gt;= 22.0)\nand (eg.globals.shutters_2nd_floor != "sun_shading" )) :\n    eg.TriggerEvent("Sunshade_2nd_floor_windows")\n\n#De-activate SunShading (Heat Management)\nif ( (eg.globals.shutters_2nd_floor == "sun_shading" and (eg.globals.sun_is_up == True) )\nand ( (eg.globals.tempe_parents_bedroom &lt;= 20.0) \nor (eg.globals.tempe_external_web &lt; 18.0 and eg.globals.sun_elevation &gt;= 15.0)\nor (eg.globals.tempe_external_today_high_web &lt; 24.0) ) ) :\n    eg.TriggerEvent("Open_2nd_floor_shutters")\n\n')
            </Action>
            <Action Name="Automation of 1st floor ventilation">
                EventGhost.PythonScript(u'#Auto Vent 1st floor bathroom\nimport time\n\nvent_setting = "Unchanged"\n\n#Determines current ventilation setting\nif ( (eg.globals.ventilation_1st_floor_s1 == "on") and (eg.globals.ventilation_1st_floor_s2 == "on") ) :\n    prev_vent_setting = "High"\nelif ( (eg.globals.ventilation_1st_floor_s1 == "on") and (eg.globals.ventilation_1st_floor_s2 == "off") ) :\n    prev_vent_setting = "Low"\nelif ( (eg.globals.ventilation_1st_floor_s1 == "off") ) :\n    prev_vent_setting = "Off"\nelif ( (eg.globals.ventilation_1st_floor_s1 == "undefined") or (eg.globals.ventilation_1st_floor_s2 == "undefined") ) :\n    prev_vent_setting = "undefined"\n    vent_setting = "Low"\n\n#Auto S1=&gt;S2 (COND C)\nif ( (prev_vent_setting == "Low") and ( (eg.globals.hygro_1st_floor_bathroom &gt;= 72.0)\nor ( (eg.globals.tempe_1st_floor_bathroom &gt; 24.0) and (eg.globals.tempe_exterior &lt;= (eg.globals.tempe_1st_floor_bathroom - 4.0)) ) #Inspire air froid\nor ( (eg.globals.tempe_1st_floor_bathroom &lt; 18.0) and (eg.globals.tempe_exterior &gt;= (eg.globals.tempe_1st_floor_bathroom + 4.0)) ) ) ) : #Inspire air chaud\n    vent_setting = "High"\n\n#Auto S2=&gt;S1 (COND D)\nif ( (prev_vent_setting == "High") and  (eg.globals.hygro_1st_floor_bathroom &lt;= 70.0)\nand ( (eg.globals.tempe_1st_floor_bathroom &lt; 22.0) or (eg.globals.tempe_exterior &gt; (eg.globals.tempe_1st_floor_bathroom - 2.0)) ) #Arrete d\'inspirer air froid\nand ( (eg.globals.tempe_1st_floor_bathroom &gt; 20.0) or (eg.globals.tempe_exterior &lt; (eg.globals.tempe_1st_floor_bathroom + 2.0)) ) ) : #Arrete d\'inspirer air chaud\n    vent_setting = "Low"\n\n#Auto S1=&gt;OFF (COND F)\nif ( (prev_vent_setting == "Low") \nand ( ( (eg.globals.tempe_1st_floor_bathroom &gt; 22.0) and (eg.globals.tempe_exterior &gt; (eg.globals.tempe_1st_floor_bathroom + 8.0)) ) #Arrete d\'inspirer air chaud\nor ( (eg.globals.tempe_1st_floor_bathroom &lt; 22.0) and (eg.globals.tempe_exterior &lt; (eg.globals.tempe_1st_floor_bathroom - 8.0)) ) ) ) : #Arrete d\'inspirer air froid\n    vent_setting = "Off"\n\n#Auto OFF=&gt;S1 (COND A)\nif ( (prev_vent_setting == "Off") \nand ( ( (eg.globals.tempe_1st_floor_bathroom &lt; 22.0) or (eg.globals.tempe_exterior &lt; (eg.globals.tempe_1st_floor_bathroom + 6.0)) ) #Arrete d\'inspirer air chaud\nand ( (eg.globals.tempe_1st_floor_bathroom &gt; 22.0) or (eg.globals.tempe_exterior &gt; (eg.globals.tempe_1st_floor_bathroom - 6.0)) ) ) ) : #Arrete d\'inspirer air froid\n    vent_setting = "Low"\n\n#Clock Override\nif ( (int(time.strftime("%H", time.localtime())) &gt; 5) and (int(time.strftime("%H", time.localtime())) &lt; 8) and (eg.globals.week_end == "no") ) :\n    if (prev_vent_setting != "High") :\n        vent_setting = "High"\n    else:\n        vent_setting = "Unchanged"\n\n#Manual Override\nif ( eg.globals.ventilation_1st_floor_override == "True" ) :\n    vent_setting = "Unchanged"\n\neg.globals.ventilation_1st_floor_setting = vent_setting\n\n#Change vent setting\nif ( vent_setting == "Low" ) :\n    eg.TriggerEvent("Set_1st_floor_ventilation_to_low_speed")\nelif ( vent_setting == "High" ) :\n    eg.TriggerEvent("Set_1st_floor_ventilation_to_high_speed")\nelif ( vent_setting == "Off" ) :\n    eg.TriggerEvent("Set_1st_floor_ventilation_to_off")\nelse:\n    eg.globals.ventilation_1st_floor_setting = prev_vent_setting\n\n\n#debug\n#eg.Print("eg.globals.ventilation_1st_floor_s1 : " + eg.globals.ventilation_1st_floor_s1)\n#eg.Print("eg.globals.ventilation_1st_floor_s2 : " + eg.globals.ventilation_1st_floor_s2)\n')
            </Action>
            <Action Name="Automation of 2nd floor ventilation">
                EventGhost.PythonScript(u'#Auto Vent 2nd floor bathroom\nimport time\n\nvent_setting = "Unchanged"\n\n#Determines current ventilation setting\nif ( (eg.globals.ventilation_2nd_floor_s1 == "on") and (eg.globals.ventilation_2nd_floor_s2 == "on") ) :\n    prev_vent_setting = "High"\nelif ( (eg.globals.ventilation_2nd_floor_s1 == "on") and (eg.globals.ventilation_2nd_floor_s2 == "off") ) :\n    prev_vent_setting = "Low"\nelif ( (eg.globals.ventilation_2nd_floor_s1 == "off") ) :\n    prev_vent_setting = "Off"\nelif ( (eg.globals.ventilation_2nd_floor_s1 == "undefined") or (eg.globals.ventilation_2nd_floor_s2 == "undefined") ) :\n    prev_vent_setting = "undefined"\n    vent_setting = "Low"\n\n#Auto S1=&gt;S2 (COND C)\nif ( (prev_vent_setting == "Low") and ( (eg.globals.hygro_2nd_floor_bathroom &gt;= 72.0)\nor ( (eg.globals.tempe_2nd_floor_bathroom &gt; 24.0) and (eg.globals.tempe_exterior &lt;= (eg.globals.tempe_2nd_floor_bathroom - 4.0)) ) #Inspire air froid\nor ( (eg.globals.tempe_2nd_floor_bathroom &lt; 18.0) and (eg.globals.tempe_exterior &gt;= (eg.globals.tempe_2nd_floor_bathroom + 4.0)) ) ) ) : #Inspire air chaud\n    vent_setting = "High"\n\n#Auto S2=&gt;S1 (COND D)\nif ( (prev_vent_setting == "High") and  (eg.globals.hygro_2nd_floor_bathroom &lt;= 70.0)\nand ( (eg.globals.tempe_2nd_floor_bathroom &lt; 22.0) or (eg.globals.tempe_exterior &gt; (eg.globals.tempe_2nd_floor_bathroom - 2.0)) ) #Arrete d\'inspirer air froid\nand ( (eg.globals.tempe_2nd_floor_bathroom &gt; 20.0) or (eg.globals.tempe_exterior &lt; (eg.globals.tempe_2nd_floor_bathroom + 2.0)) ) ) : #Arrete d\'inspirer air chaud\n    vent_setting = "Low"\n\n#Auto S1=&gt;OFF (COND F)\nif ( (prev_vent_setting == "Low") \nand ( ( (eg.globals.tempe_2nd_floor_bathroom &gt; 22.0) and (eg.globals.tempe_exterior &gt; (eg.globals.tempe_2nd_floor_bathroom + 8.0)) ) #Arrete d\'inspirer air chaud\nor ( (eg.globals.tempe_2nd_floor_bathroom &lt; 22.0) and (eg.globals.tempe_exterior &lt; (eg.globals.tempe_2nd_floor_bathroom - 8.0)) ) ) ) : #Arrete d\'inspirer air froid\n    vent_setting = "Off"\n\n#Auto OFF=&gt;S1 (COND A)\nif ( (prev_vent_setting == "Off") \nand ( ( (eg.globals.tempe_2nd_floor_bathroom &lt; 22.0) or (eg.globals.tempe_exterior &lt; (eg.globals.tempe_2nd_floor_bathroom + 6.0)) ) #Arrete d\'inspirer air chaud\nand ( (eg.globals.tempe_2nd_floor_bathroom &gt; 22.0) or (eg.globals.tempe_exterior &gt; (eg.globals.tempe_2nd_floor_bathroom - 6.0)) ) ) ) : #Arrete d\'inspirer air froid\n    vent_setting = "Low"\n\n#Clock Overide\n#if ( (int(time.strftime("%H", time.localtime())) &gt; 5) and (int(time.strftime("%H", time.localtime())) &lt; 8) and (eg.globals.week_end == "no") ) :\n#    if (prev_vent_setting != "High") :\n#        vent_setting = "High"\n#    else:\n#        vent_setting = "Unchanged"\n\n#Manual Override\nif ( eg.globals.ventilation_2nd_floor_override == "True" ) :\n    vent_setting = "Unchanged"\n\neg.globals.ventilation_2nd_floor_setting = vent_setting\n\n#Change vent setting\nif ( vent_setting == "Low" ) :\n    eg.TriggerEvent("Set_2nd_floor_ventilation_to_low_speed")\nelif ( vent_setting == "High" ) :\n    eg.TriggerEvent("Set_2nd_floor_ventilation_to_high_speed")\nelif ( vent_setting == "Off" ) :\n    eg.TriggerEvent("Set_2nd_floor_ventilation_to_off")\nelse:\n    eg.globals.ventilation_2nd_floor_setting = prev_vent_setting\n\n#debug\n#eg.Print("eg.globals.ventilation_2nd_floor_s1 : " + eg.globals.ventilation_2nd_floor_s1)\n#eg.Print("eg.globals.ventilation_2nd_floor_s2 : " + eg.globals.ventilation_2nd_floor_s2)\n')
            </Action>
            <Action Enabled="False">
                EventGhost.TriggerEvent(u'Print_eg.globals', 0.0)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Compute_sun_position', 0.0)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Get_weather_data ', 0.0)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Monitor_every_minute', 60.0)
            </Action>
        </Macro>
        <Macro Name="Start periodic monitoring">
            <Event Name="Main.Start" />
            <Action Name="Start Program: Internet Explorer">
                System.Execute(u'C:\\Program Files\\DropMyRights\\DropMyRights.exe', u'"C:\\Program Files\\Internet Explorer\\iexplore.exe"', 0, False, 2, u'C:\\Program Files\\DropMyRights\\', False)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Get_weather_data ', 0.0)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Compute_sun_position', 0.0)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Monitor_every_minute', 60.0)
            </Action>
        </Macro>
    </Folder>
    <Folder Name="Debug" Expanded="True">
        <Macro Name="Print eg.globals">
            <Event Name="Main.Print_eg.globals" />
            <Action Name="Python Script : Print Globals">
                EventGhost.PythonScript(u'\neg.Print(" ")\neg.Print("eg.globals.tempe_parents_bedroom : " + "%.1f" % eg.globals.tempe_parents_bedroom)\neg.Print("eg.globals.tempe_oceane_bedroom : " + "%.1f" % eg.globals.tempe_oceane_bedroom)\neg.Print("eg.globals.tempe_coraline_bedroom : " + "%.1f" % eg.globals.tempe_coraline_bedroom)\neg.Print("eg.globals.tempe_2nd_floor_bathroom : " + "%.1f" % eg.globals.tempe_2nd_floor_bathroom)\neg.Print("eg.globals.tempe_laboratory : " + "%.1f" % eg.globals.tempe_laboratory)\n\neg.Print(" ")\neg.Print("eg.globals.tempe_living_room : " + "%.1f" % eg.globals.tempe_living_room)\neg.Print("eg.globals.tempe_1st_floor_bathroom : " + "%.1f" % eg.globals.tempe_1st_floor_bathroom)\neg.Print("eg.globals.tempe_library : " + "%.1f" % eg.globals.tempe_library)\neg.Print("eg.globals.tempe_music_room : " + "%.1f" % eg.globals.tempe_music_room)\neg.Print("eg.globals.tempe_garage : " + "%.1f" % eg.globals.tempe_garage)\n\neg.Print(" ")\neg.Print("eg.globals.tempe_exterior : " + "%.1f" % eg.globals.tempe_exterior)\n\neg.Print(" ")\neg.Print("eg.globals.hygro_living_room : " + "%.1f" % eg.globals.hygro_living_room)\neg.Print("eg.globals.hygro_1st_floor_bathroom : " + "%.1f" % eg.globals.hygro_1st_floor_bathroom)\n\neg.Print(" ")\neg.Print("eg.globals.hygro_2nd_floor_bathroom : " + "%.1f" % eg.globals.hygro_2nd_floor_bathroom)\n\neg.Print(" ")\neg.Print("eg.globals.tempe_external_web : " + "%.1f" % eg.globals.tempe_external_web)\neg.Print("eg.globals.trend_tempe_external_web : " + eg.globals.trend_tempe_external_web)\neg.Print("eg.globals.tempe_external_today_high_web : " + "%.1f" % eg.globals.tempe_external_today_high_web)\neg.Print("eg.globals.tempe_external_today_low_web : " + "%.1f" % eg.globals.tempe_external_today_low_web)\n\neg.Print(" ")\neg.Print("eg.globals.sun_is_up : " + str(eg.globals.sun_is_up))\neg.Print("eg.globals.sun_azimuth : " + "%.1f" % eg.globals.sun_azimuth)\neg.Print("eg.globals.sun_elevation : " + "%.1f" % eg.globals.sun_elevation)\neg.Print("eg.globals.sun_rise : " + "%.2f" % eg.globals.sun_rise)\neg.Print("eg.globals.sun_set : " + "%.2f" % eg.globals.sun_set)\n\neg.Print(" ")\neg.Print("eg.globals.light_all_off : " + eg.globals.light_all_off)\neg.Print("eg.globals.light_parents_bedroom : " + eg.globals.light_parents_bedroom)\neg.Print("eg.globals.light_oceane_bedroom : " + eg.globals.light_oceane_bedroom)\neg.Print("eg.globals.light_coraline_bedroom : " + eg.globals.light_coraline_bedroom)\neg.Print("eg.globals.light_2nd_floor_linen_room : " + eg.globals.light_2nd_floor_linen_room)\neg.Print("eg.globals.light_laboratory : " + eg.globals.light_laboratory)\neg.Print("eg.globals.light_2nd_floor_corridor : " + eg.globals.light_2nd_floor_corridor)\neg.Print("eg.globals.light_staircase : " + eg.globals.light_staircase)\neg.Print("eg.globals.light_library_left : " + eg.globals.light_library_left)\neg.Print("eg.globals.light_library_right : " + eg.globals.light_library_right)\neg.Print("eg.globals.light_library_back : " + eg.globals.light_library_back)\neg.Print("eg.globals.light_1st_floor_linen_room : " + eg.globals.light_1st_floor_linen_room)\n\neg.Print(" ")\neg.Print("eg.globals.ventilation_1st_floor_s1 : " + eg.globals.ventilation_1st_floor_s1)\neg.Print("eg.globals.ventilation_1st_floor_s2 : " + eg.globals.ventilation_1st_floor_s2)\neg.Print("eg.globals.ventilation_1st_floor_override : " + eg.globals.ventilation_1st_floor_override)\neg.Print("eg.globals.ventilation_1st_floor_setting : " + eg.globals.ventilation_1st_floor_setting)\neg.Print("eg.globals.ventilation_2nd_floor_s1 : " + eg.globals.ventilation_2nd_floor_s1)\neg.Print("eg.globals.ventilation_2nd_floor_s2 : " + eg.globals.ventilation_2nd_floor_s2)\neg.Print("eg.globals.ventilation_2nd_floor_override : " + eg.globals.ventilation_2nd_floor_override)\neg.Print("eg.globals.ventilation_2nd_floor_setting : " + eg.globals.ventilation_2nd_floor_setting)\n\neg.Print(" ")\neg.Print("eg.globals.dns_313 : " + eg.globals.dns_313)\n\neg.Print(" ")\neg.Print("eg.globals.shutter_living_room : " + eg.globals.shutter_living_room)\neg.Print("eg.globals.shutters_2nd_floor : " + eg.globals.shutters_2nd_floor)\n\neg.Print(" ")\neg.Print("eg.globals.working_day : " + eg.globals.working_day)\neg.Print("eg.globals.week_end : " + eg.globals.week_end)\n\neg.Print(" ")\n\n')
            </Action>
        </Macro>
    </Folder>
</EventGhost>
