<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1710" Guid="{F6658EF7-CBFE-431D-A5C0-F1CDCAFD875B}" Time="1478632370.44">
    <Passwords>
        0HLiyjsPANdCU+UNeaLYATsNk4KY7dghfzK1maXZjxZKu+Bb4Tac04RBmiOZzan3WMX7g7CFlBVM
        CO7YkvrBwtXgzOPH1nnLKFgtBc9LkmeU4ZaCBzwMNQ+QbG1sFTQZF2idESzSmqdRFsd9U4g9iqWx
        XAcEEzGR2W/Ra5mepwhyatkVo5NUvWRh7dAF04d2ZtgxsBqNPO3mNOf9SeQIG1z0jG6EV5Bj5D+i
        lzQ/qEXLekt0vcCY9gTsZHA2N5Fi
    </Passwords>
    <Autostart Name="Autostart" Expanded="True">
        <Action Enabled="False">
            EventGhost.Wait(120.0)
        </Action>
        <Plugin Enabled="False" Identifier="ZoomPlayer" Guid="{C5E2609E-C1C4-4432-A532-EDA79A7EE41D}" File="ZoomPlayer">
            gAIoWAkAAABsb2NhbGhvc3RxAE2hEoiJdHEBLg==
        </Plugin>
        <Plugin Enabled="False" Identifier="Winamp" Guid="{4A22DD6A-5E2C-4500-90B4-47F5C58FD9CA}" File="Winamp">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="Task" Guid="{D1748551-C605-4423-B392-FB77E6842437}" File="Task">
            gAIpLg==
        </Plugin>
        <Action Enabled="False">
            EventGhost.EnableExclusive(XmlIdLink(771))
        </Action>
        <Plugin Enabled="False" Identifier="HID" Guid="{05A690D9-27C2-4AC5-B0DD-2F562619E922}" File="HID">
            gAIoWAAAAABxAIiJiVVeXFw/XGhpZCN2aWRfMDVhNCZwaWRfMTAwMCZtaV8wMSZjb2wwMSM3JjI0ZTNjMWM5JjAmMDAwMCN7NGQxZTU1YjItZjE2Zi0xMWNmLTg4Y2ItMDAxMTExMDAwMDMwfXEBTaQFWAUAAABPUnRla3ECTQAQWBoAAABXaXJlbGVzcyBUb3VjaHBhZCBLZXlib2FyZHEDTQEBiUsAdHEELg==
        </Plugin>
        <Plugin Identifier="Webserver" Guid="{E4305D8E-A3D3-4672-B06E-4EA1F0F6C673}" File="Webserver">
            gAIoWAQAAABIVFRQcQBNLhZYHwAAAEM6XFByb2dyYW0gRmlsZXNcRXZlbnRHaG9zdFx3d3dxAVgKAAAARXZlbnRHaG9zdHECWAAAAABxA2gDdHEELg==
        </Plugin>
        <Plugin Enabled="False" Identifier="XBMC" Guid="XBMC" File="XBMC">
            gAIpLg==
        </Plugin>
        <Plugin Enabled="False" Identifier="Keyboard" Guid="{59CBD10F-C1D8-4ADB-999B-9B76BA360F1F}" File="Keyboard">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="CommandFusion" Guid="CommandFusion" File="CommandFusion">
            gAJNVB9YAAAAAHEAiIdxAS4=
        </Plugin>
        <Plugin Enabled="False" Identifier="Suntracker" Guid="{6AE8C0C3-93B4-4446-BC77-FDFA2528E531}" File="SunTracker">
            gAIoVQcxNC4xMTQ0cQBVBzU3LjY5OTVxAVgTAAAATm9ycmFoYW1tYXIsIFN3ZWRlbnECWB0AAAAwMTAxLDA1MDEsMDYwNiwxMjI0LDEyMjUsMTIyNnEDWCIAAAAwMTA2LDA0MDIsMDQwNSwwNTEyLDA1MjIsMDUyMywwNjI1cQRYAgAAADA1cQVYAgAAADA4cQaJiHRxBy4=
        </Plugin>
        <Action Enabled="False">
            Suntracker.SetMovingGhostON()
        </Action>
        <Plugin Identifier="Scheduler" Guid="{5C822DE2-97E7-4DB8-8281-CD77ED216A63}" File="Scheduler">
            gAJYIgAAADAxMDEsMDUwMSwwNjA2LDEyMjQsMTIyNSwxMjI2LDEyMzFxAFgTAAAAMDEwNiwwMzIxLDAzMjQsMDYyMHEBiYdxAi4=
        </Plugin>
        <Plugin Identifier="SchedulGhost" Guid="{39EFE2FF-6CA9-4450-B0E3-1AA125420B37}" File="SchedulGhost">
            gAIoWDAAAABDOlxQcm9ncmFtIEZpbGVzXEV2ZW50R2hvc3RccGx1Z2luc1xTY2hlZHVsR2hvc3RxAFgAAAAAcQFYDAAAAFNjaGVkdWxHaG9zdHECXXEDKF1xBF1xBWVLAHRxBi4=
        </Plugin>
        <Plugin Identifier="BroadcastListener" Guid="{5E8DA56B-24AC-4092-9521-169343C5171C}" File="Broadcaster">
            gAIoWAUAAABpUnVsZXEAWA8AAAAyNTUuMjU1LjI1NS4yNTVxAU01golYAgAAACYmcQJVDDE5Mi4xNjguMS42NHEDdHEELg==
        </Plugin>
        <Plugin Identifier="FileOperations" Guid="{50D933C5-F93B-4A8A-A6CE-95A40F906036}" File="FileOperations">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="USB_UIRT" Guid="{36FD4F40-653C-4626-97CC-BE363C05F933}" File="USB-UIRT">
            gAIoiIiIiHRxAC4=
        </Plugin>
        <Plugin Identifier="Serial" Guid="{D565171F-1703-4212-972C-B824B55329CB}" File="Serial">
            gAIoSwRNgCVLA0sASwBLAYhYAgAAAFxycQBYBgAAAFNlcmlhbHEBSwB0cQIu
        </Plugin>
        <Plugin Identifier="TellStick" Guid="{9ECBA250-AF41-4372-B64B-E42F2C2F2975}" File="TellStick">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="TellStickDuo" Guid="{197BDE4F-0F1A-446C-B8EE-18FDB5077A56}" File="TellStickDuo">
            gAIoiIiJiVgeAAAAL3RtcC9sb2dnaW5nX3RlbGxzdGlja19kdW8udHh0cQBHP+MzMzMzMzN0cQEu
        </Plugin>
        <Action>
            EventGhost.PythonCommand(u"eg.globals.dark='false'")
        </Action>
        <Action>
            EventGhost.PythonCommand(u"eg.globals.m='0'")
        </Action>
        <Action>
            Scheduler.SchedulerAction(['0630', '0830', '1510', '2300', '----', '----', '0630', '0830', '1500', '2300', '----', '----', '0630', '0830', '1509', '2300', '----', '----', '0630', '0830', '1508', '2300', '----', '----', '0630', '0830', '1500', '2359', '----', '----', '0800', '2359', '----', '----', '----', '----', '0800', '2300', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----'], u'Schema', u'Schema ON', u'Schema OFF', '0630', '1510', '----', '0830', '2300', '----', '0630', '1500', '----', '0830', '2300', '----', '0630', '1509', '----', '0830', '2300', '----', '0630', '1508', '----', '0830', '2300', '----', '0630', '1500', '----', '0830', '2359', '----', '0800', '----', '----', '2359', '----', '----', '0800', '----', '----', '2300', '----', '----', '----', '----', '----', '----', '----', '----', u'0101,0501,0606,1224,1225,1226,1231', u'0106,0321,0324,0620', 2, 2, 1.5, False, False, False, 30, '----', '----', '----', '----', '----', '----', False)
        </Action>
        <Action>
            SchedulGhost.EnableSchedule(u'Hourly')
        </Action>
        <Plugin Enabled="False" Identifier="PingPlugin" Guid="{E0E0AFD7-31D5-41FE-B9DA-237234DB07A7}" File="Ping">
            gAIpLg==
        </Plugin>
        <Action Enabled="False">
            PingPlugin.AddHost(u'192.168.1.62', u'DB2', 200, 90, u'DB2_alive', u'DB2_dead', 1, 2)
        </Action>
        <Action Enabled="False">
            PingPlugin.OnePing(u'192.168.1.62', u'DB2', 200, True, u'DB2_alive', u'DB2_dead')
        </Action>
        <Plugin Enabled="False" Identifier="Growl" Guid="{20EFFE03-5448-4ECB-B95B-E7CAE51FD6CA}" File="Growl">
            gAJdcQBYBAAAAFRlc3RxAWFYAAAAAHECaAKHcQMu
        </Plugin>
        <Plugin Identifier="ClimateDataCalculation" Guid="{4CB0A57C-15ED-4F5B-8AFF-75F288785655}" File="ClimateDataCalculation">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="SystemDatabase" Guid="{2E4E12A0-826A-408F-92EA-B6E98595071B}" File="Simple EG database">
            gAIoWBsAAABjOlxQcm9ncmFtIEZpbGVzXEV2ZW50Z2hvc3RxAFgJAAAATXlEQl9sb2FkcQFYGwAAAGM6XFByb2dyYW0gRmlsZXNcRXZlbnRnaG9zdHECWAkAAABNeURCX3NhdmVxA3RxBC4=
        </Plugin>
        <Plugin Enabled="False" Identifier="PushBullet" Guid="{C92AD47A-B959-44D5-A849-9FCCCAAC9572}" File="PushBullet">
            gAIoWAoAAABFdmVudGdob3N0cQBjZWcuQ2xhc3Nlcy5QYXNzd29yZApQYXNzd29yZApxASmBcQJ9cQNVBGd1aWRxBFUme0MzQTBBMERDLTMwNDEtNDRFMi1BQTE2LUU4NUZGMUVDNzRERX1xBXNiWBYAAAB1akJlSlE0STcycXNqelp1SzlKbUhBcQZYCgAAAFB1c2hCdWxsZXRxB0sAWB8AAABDOlxVc2Vyc1xibHZcQXBwRGF0YVxMb2NhbFxUZW1wcQhLA0sPSw9dcQmJWAAAAABxCohVDTE0NTQ2Njg1NTUuNDJxC4hL/0v/S/+HcQxLAEsASwBLAIZxDV1xDl1xD11xEChYAwAAAGJvbnERXXESKF1xEyhYCgAAAEV2ZW50Z2hvc3RxFFgWAAAAdWpCZUpRNEk3MnFzanpadUs5Sm1IQXEVVQJwY3EWiWVdcRcoWAYAAABTYWZhcmlxGFgWAAAAdWpCZUpRNEk3MnFzano3TzNQMEpsNnEZaBaJZV1xGihYCwAAAGJvbiBpUGhvbmU2cRtYFgAAAHVqQmVKUTRJNzJxc2pBaVZzS25TVHNxHGgWiGVlZWFdcR1oASmBcR59cR9oBFUmezlEQzJDOTA4LTBCMDYtNDYyQS04OUUxLUFEMTNDNEVDQUI3Qn1xIHNiiIl0cSEu
        </Plugin>
        <Action>
            EventGhost.TriggerEvent(u'Create_report_dygn', 150.0)
        </Action>
        <Action>
            EventGhost.TriggerEvent(u'Create_report_week', 300.0)
        </Action>
    </Autostart>
    <Folder Name="Temperature">
        <Macro Name="File Operations: Write {eg.result} to file: C:\Program Files\EventGhost\temp" Expanded="True">
            <Event Name="TellStickDuo.fineoffset.temperaturehumidity.167.Temperature:" Enabled="False" />
            <Event Name="TellStickDuo.fineoffset.temperature.167.Temperature:" Enabled="False" />
            <Event Name="TellStickDuo.fineoffset.temperature.99.Temperature:" />
            <Event Name="TellStickDuo.fineoffset.temperature.64.Temperature:" />
            <Action Name="eg.globals.feedback =eg.event.payload" Enabled="False">
                EventGhost.PythonCommand(u'eg.globals.feedback=eg.event.payload')
            </Action>
            <Action Name="Python Script -Temp" Enabled="False">
                EventGhost.PythonScript(u'text=eg.event.payload\nhitta=text.find(\'|\')\neg.globals.temp=text[:hitta]\ns_temp=text[:hitta]\neg.globals.datum=text[hitta+1:hitta+11]\neg.globals.tid=text[hitta+12:]\ntemp=eg.globals.temp\n#eg.globals.temp=temp[0:len(temp)-2]\nwhile (len(temp)&lt;5):\n    temp=\' \'+temp\ntexten=(\'Utetemperatur\', text[:hitta], \'C\')\neg.globals.feedback=\' \'.join(texten)\nm= text[text.find(\'|\')+15:text.find(\'|\')+16]\n#print \'m nu \' + m +\'X next \' + eg.globals.m + \'X\'\nif eg.globals.m==m:\n    file = open("/Program Files/EventGhost/www/temperature.txt","a")\n    file.write(temp+text[text.find(\'|\'):]+\'\\n\')\n    #file.write(text+\'\\n\')\n    eg.TriggerEvent("Graph")\n    print "write to file"\n    file.close()\n    if m==\'0\':\n        m=\'3\'\n    elif m==\'3\':\n        m=\'0\'\n    else:\n        m=\'0\'\n    eg.globals.m=m \n\n\n')
            </Action>
            <Action Name="Python Script -Temp">
                EventGhost.PythonScript(u"text=eg.event.payload\nhitta=text.find('|')\neg.globals.temp=text[:hitta]\ns_temp=text[:hitta]\neg.globals.datum=text[hitta+1:hitta+11]\neg.globals.tid=text[hitta+12:]\ntemp=eg.globals.temp\n#eg.globals.temp=temp[0:len(temp)-2]\nwhile (len(temp)&lt;5):\n    temp=' '+temp\ntexten=('Utetemperatur', text[:hitta], 'C')\neg.globals.feedback=' '.join(texten)\n\n")
            </Action>
            <Action>
                FileOperations.Write(2, u'{eg.event.payload}', u'C:\\Program Files\\EventGhost\\temp.txt', 2, 0, False, True, False, 'cp1252')
            </Action>
        </Macro>
        <Macro Name="Python Script - Hämta från fil" Enabled="False">
            <Action>
                EventGhost.PythonScript(u'file = open("/Program Files/EventGhost/temp.txt","r")\nfile2 = open("/Program Files/EventGhost/www/temperature.txt","w")\ntid="0"\nfor line in file:\n    pass # do something\n    m=line[12:13]\n    if m==tid:\n        temp=line[19:line.find(\'|\')]\n        while (len(temp)&lt;5):\n            temp=\' \'+temp\n        #print temp\n        file2.write(temp+line[line.find(\'|\'):])\n        #print line[line.find(\'|\'):]\n        if tid==\'0\':\n            tid=\'3\'\n        elif tid==\'3\':\n            tid=\'0\'\n    \n    #m=m+3\n    #if m==6:\n    #    m=0\n    #    hh=hh+1\n    #    if hh==24:\n    #        hh=0\n    #tid=str(hh)+\':\'+str(m)\n    #while (len(tid)&lt;4):\n    #    tid=\'0\'+tid\n    #print \'next time: \' + tid\n#s=file.readline()\n#print s\n#print line.find(\'5.9\')\nfile.close()\nfile2.close()\n#    file.write(text+\'\\n\')\n#    print "write to file"\n#    file.close()\n#    if m==\'3\':\n#      hhm_int=int(hhm)+7\n#      hhm=str(hhm_int)\n#      #print \'halv: \' + hhm\n#  else:\n#      hhm_int=int(hhm)+3\n#      hhm=str(hhm_int)\n#      #print \'hel: \' + hhm\n#  while (len(hhm)&lt;3):\n#      hhm=\'0\'+hhm\n#  print \'Next hhm: \' + hhm\n#  eg.globals.hhm=hhm\n#  if eg.globals.hhm==\'240\':\n#      eg.globals.hhm=\'000\'\n#eg.globals.hhm=\'093\'  \n')
            </Action>
        </Macro>
        <Macro Name="Python Script - skapa diagram datum" Enabled="False">
            <Action>
                EventGhost.PythonScript(u'import fileinput\nimport urllib\nimport time, datetime\nyesterday=str(datetime.datetime.now().date()-datetime.timedelta(1))\ntoday=str(datetime.datetime.now().date())\nhitta=0\nfiletemp = open("/Program Files/EventGhost/www/temperature.txt","r")\ns=filetemp.read()\nfile = open("/Program Files/EventGhost/www/irule_temp.html","r")\nm=file.read()\nfor i in range(1, 49):\n    hitta=s.find(yesterday,hitta)\n    ii=str(i)\n    if len(ii)==1:\n        ii="0"+ii\n    ytemp=s[hitta-6:hitta-1].strip()\n    ytime=s[hitta+11:hitta+19]\n    #ytemp.append(s[hitta-6:hitta-1].strip()) \n    #ytime.append(s[hitta+11:hitta+19])\n    m=m.replace("tid"+str(ii),ytime)\n    m=m.replace("yest"+str(ii),ytemp)\n    hitta=hitta+15\n#print eg.globals.tid\nhh=int(eg.globals.tid[:2])\nmin=int(eg.globals.tid[3:4])\nif min&gt;2:\n    min=1\nelse:\n    min=0\nmax=2*hh+min+1\n#print max\nfor i in range(1, 49):\n    hitta=s.find(today,hitta)\n    ii=str(i)\n    if len(ii)==1:\n        ii="0"+ii\n    if i&lt;max+1:\n        ttemp=s[hitta-6:hitta-1].strip()\n        #ytime=s[hitta+11:hitta+19]\n        #m=m.replace("tid"+str(ii),ytime)\n        m=m.replace("today"+str(ii),ttemp)\n    else:\n        m=m.replace("today"+str(ii),"null")\n    hitta=hitta+15\n#print ytemp\n#print ytime\nfiletemp.close()\n\n#print s\n\nfile.close()\n#p="03"\n#m=m.replace("yest01",eg.globals.temp)\n#m=m.replace(\'yest\'+p,"nul")\nfile = open("/Program Files/EventGhost/www/irule_temp2.html","w")\nfile.write(m)\n#print m\nfile.close()')
            </Action>
        </Macro>
        <Macro Name="Python Script - skapa diagram" Enabled="False">
            <Event Name="Main.Graph" Enabled="False" />
            <Action Name="Python Script - Skapa diagram">
                EventGhost.PythonScript(u'import fileinput\nimport urllib\nimport time, datetime\nyesterday=str(datetime.datetime.now().date()-datetime.timedelta(1))\ntoday=str(datetime.datetime.now().date())\nhitta=0\nfiletemp = open("/Program Files/EventGhost/www/temperature.txt","r")\ns=filetemp.read()\nfile = open("/Program Files/EventGhost/www/irule_temp.html","r")\nm=file.read()\nfor i in range(1, 49):\n    hitta=s.find(yesterday,hitta)\n    ii=str(i)\n    if len(ii)==1:\n        ii="0"+ii\n    ytemp=s[hitta-6:hitta-1].strip()\n    ytime=s[hitta+11:hitta+19]\n    #ytemp.append(s[hitta-6:hitta-1].strip()) \n    #ytime.append(s[hitta+11:hitta+19])\n    m=m.replace("tid"+str(ii),ytime)\n    m=m.replace("yest"+str(ii),ytemp)\n    hitta=hitta+15\n#print eg.globals.tid\nhh=int(eg.globals.tid[:2])\nmin=int(eg.globals.tid[3:4])\nif min&gt;2:\n    min=1\nelse:\n    min=0\nmax=2*hh+min+1\n#print max\nfor i in range(1, 49):\n    hitta=s.find(today,hitta)\n    ii=str(i)\n    if len(ii)==1:\n        ii="0"+ii\n    if i&lt;max+1:\n        ttemp=s[hitta-6:hitta-1].strip()\n        #ytime=s[hitta+11:hitta+19]\n        #m=m.replace("tid"+str(ii),ytime)\n        m=m.replace("today"+str(ii),ttemp)\n    else:\n        m=m.replace("today"+str(ii),"null")\n    hitta=hitta+15\n#print ytemp\n#print ytime\nfiletemp.close()\n\n#print s\n\nfile.close()\n#p="03"\n#m=m.replace("yest01",eg.globals.temp)\n#m=m.replace(\'yest\'+p,"nul")\nfile = open("/Program Files/EventGhost/www/irule_temp2.html","w")\nfile.write(m)\n#print m\nfile.close()')
            </Action>
        </Macro>
        <Macro Name="Python Script Array test" Enabled="False">
            <Action>
                EventGhost.PythonScript(u'file = open("/Program Files/EventGhost/www/temperature.txt","r")\ns=file.read()\n#nudatum=eg.globals.datum[2:]\nprint eg.globals.tid\nprint eg.globals.datum\nhitta=s.find(eg.globals.datum + \' 13:0\')\n#hitta=s.find(\'2012-03-)\ndatum=s[hitta:hitta+10]\ntid=s[hitta+11:hitta+19]\ntemp=s[hitta-6:hitta]\nhittaslut=temp.find(\'|\')\ntemp=temp[:hittaslut]\nprint datum\nprint tid\nprint temp\n\n#r=file.readline(10)\n#print rad\n#value=eg.globals.datum\n#if value in s:\n#        print "list contains", value\n#rad=s.readline(10)\n#print rader\n\n#print len(open("/Program Files/EventGhost/temp.txt").readlines())\n#temptid=[0,0,0]\n#test=eg.globals.feedback\n\n#print temptid[0]\n#temptid[2]=8\n#print temptid[0]\n#hitta=text.find(\'|\')\n#temp=text[:hitta]\n')
            </Action>
        </Macro>
        <Macro Name="eg.globals.m='0'" Enabled="False" Expanded="True">
            <Action Enabled="False">
                EventGhost.PythonCommand(u"eg.globals.m='0'")
            </Action>
        </Macro>
        <Folder Name="Climate" Expanded="True">
            <Macro Name="ClimateDataCalculation: RefreshTableNames">
                <Action>
                    ClimateDataCalculation.RefreshTableNames()
                </Action>
            </Macro>
            <Macro Name="ClimateDataCalculation: TempDataCapture: Temperature plant" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.184.Temperature:" Enabled="False" />
                <Action>
                    ClimateDataCalculation.TempDataCapture(u'Temperature plant', u'184', 10, 22.0, 5, True, 2.0, True, u'equal-less-greater')
                </Action>
            </Macro>
            <Macro Name="ClimateDataCalculation: CombinedReport: Plant 12h" Expanded="True">
                <Action>
                    ClimateDataCalculation.CombinedReport(u'EventGhost Combo Report', (u'Temperature plant',), (), (), (), (), 0, 24, True, u'C:\\Program Files\\EventGhost\\www\\HighCharts', u'temp', u'EventGhost Climate Data Report Graph', (), True)
                </Action>
            </Macro>
            <Macro Name="print eg.plugins.ClimateDataCalculation.plugin.lastTempData" Expanded="True">
                <Action>
                    EventGhost.PythonCommand(u'print eg.plugins.ClimateDataCalculation.plugin.lastTempData')
                </Action>
            </Macro>
            <Macro Name="ClimateDataCalculation: TempDataCapture: Temperature outside" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.99.Temperature:" />
                <Event Name="TellStickDuo.fineoffset.temperature.64.Temperature:" />
                <Action>
                    ClimateDataCalculation.TempDataCapture(u'Temperature outside', u'99', 10, 0.0, 2, True, 2.0, False, u'equal-less-greater')
                </Action>
            </Macro>
            <Macro Name="ClimateDataCalculation: CombinedReport: Hjortstigen - dygn" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.99.Temperature:" Enabled="False" />
                <Event Name="Main.Create_report_dygn" />
                <Action>
                    ClimateDataCalculation.CombinedReport(u'Hjortstigen', (u'Temperature outside',), (), (), (), (), 0, 24, True, u'C:\\Program Files\\EventGhost\\www\\HighCharts', u'outside', u'Hjortstigen - Senaste dygnet', (), True)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Create_report_dygn', 600.0)
                </Action>
            </Macro>
            <Macro Name="ClimateDataCalculation: CombinedReport: Hjortstigen - week" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.99.Temperature:" Enabled="False" />
                <Event Name="SchedulGhost.Hourly" Enabled="False" />
                <Event Name="Main.Create_report_week" />
                <Action>
                    ClimateDataCalculation.CombinedReport(u'Hjortstigen', (u'Temperature outside',), (), (), (), (), 7, 0, True, u'C:\\Program Files\\EventGhost\\www\\HighCharts', u'outside_week', u'Hjortstigen - Senaste veckan', (), True)
                </Action>
                <Action>
                    EventGhost.TriggerEvent(u'Create_report_week', 3600.0)
                </Action>
            </Macro>
            <Folder Name="Odling" Expanded="True">
                <Macro Name="ClimateDataCalculation: TempDataCapture: Temperature Odling inne" Expanded="True">
                    <Event Name="TellStickDuo.oregon.1A2D.1.Temperature:" />
                    <Action>
                        ClimateDataCalculation.TempDataCapture(u'Temperature Odling inne', u'1', 10, 21.0, 6, True, 3.0, False, u'equal-less-greater')
                    </Action>
                </Macro>
                <Macro Name="ClimateDataCalculation: TempDataCapture: Humidity Odling inne" Expanded="True">
                    <Event Name="TellStickDuo.oregon.1A2D.1.Humidity:" />
                    <Action>
                        ClimateDataCalculation.TempDataCapture(u'Humidity Odling inne', u'1', 10, 30.0, 5, True, 2.0, False, u'equal-less-greater')
                    </Action>
                </Macro>
                <Macro Name="ClimateDataCalculation: TempDataCapture: Vattennivå Odling inne" Expanded="True">
                    <Event Name="TellStickDuo.oregon.1A2D.2.Temperature:" />
                    <Action>
                        ClimateDataCalculation.TempDataCapture(u'Vattenniv\xe5 Odling inne', u'2', 10, 15.0, 5, True, 2.0, False, u'equal-less-greater')
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Folder Name="MyDB">
            <Macro Name="System Database: Add Item: plant" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.184.Temperature:" Enabled="False" />
                <Action>
                    SystemDatabase.AddItem(u'plant', u'temp', u'test', u'eg.globals.temp')
                </Action>
            </Macro>
            <Macro Name="System Database: Modify Item: plant" Expanded="True">
                <Action>
                    SystemDatabase.ModifyItem(u'plant', u'temp', u'air', u'eg.globals.temp')
                </Action>
            </Macro>
            <Macro Name="&lt;unnamed macro&gt;" />
            <Macro Name="&lt;unnamed macro&gt;" />
            <Macro Name="System Database: Print Database" Expanded="True">
                <Action>
                    SystemDatabase.PrintDB()
                </Action>
            </Macro>
            <Macro Name="System Database: Query Item: plant" Expanded="True">
                <Action>
                    SystemDatabase.QueryItem(u'plant', u'temp', u'air')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="websockets" Expanded="True">
            <Macro Name="Webserver: Broadcast message: {eg.event.payload}" Expanded="True">
                <Action Enabled="False">
                    Webserver.BroadcastMessage(u'{eg.event.payload}', False)
                </Action>
                <Action>
                    Webserver.BroadcastMessage(u'{s_temp}', False)
                </Action>
            </Macro>
            <Macro Name="Webserver: Broadcast values: green" Expanded="True">
                <Event Name="Status.Lights" Enabled="False" />
                <Event Name="TellStickDuo.fineoffset.temperature.184.Temperature:" Enabled="False" />
                <Action>
                    Webserver.BroadcastValue(u'green,blue')
                </Action>
            </Macro>
            <Macro Name="Webserver: Broadcast message: Hallo" Expanded="True">
                <Action>
                    Webserver.BroadcastMessage(u'Hallo', False)
                </Action>
            </Macro>
            <Macro Name="Webserver: Send values: {eg.event.payload[0]}: green" Expanded="True">
                <Action>
                    Webserver.SendValue('127.0.0.1', '1234', 1, u'green')
                </Action>
            </Macro>
            <Macro Name="Webserver: Start client: Server" Expanded="True">
                <Action>
                    Webserver.StartClient(u'Server', u'ws://echo.websocket.org', u'', u'', False)
                </Action>
            </Macro>
            <Macro Name="Webserver: Set temporary value: yyy: Testing" Expanded="True">
                <Action>
                    EventGhost.PythonCommand(u'eg.globals.temp=567')
                </Action>
                <Action>
                    Webserver.SetValue(u's_temp', u'{eg.globals.temp}', False, False)
                </Action>
            </Macro>
            <Macro Name="Webserver: Set temporary value: {yyy}: {eg.event.payload}" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.99.Temperature:" Enabled="False" />
                <Action>
                    Webserver.SetValue(u'yyy', u'{eg.event.payload}', False, False)
                </Action>
            </Macro>
            <Macro Name="Webserver: Set persistent value: yyy: {eg.event.payload}" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.184.Temperature:" Enabled="False" />
                <Action>
                    Webserver.SetPersistentValue(u'zzz', u'{eg.event.payload}', False, False)
                </Action>
            </Macro>
            <Macro Name="&lt;unnamed macro&gt;" />
            <Macro Name="Webserver: Broadcast values: yyy:22" Expanded="True">
                <Action>
                    Webserver.BroadcastValue(u'{yyy:{eg.event.payload},xxx:22}')
                </Action>
            </Macro>
            <Macro Name="Python Script" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.184.Temperature:" />
                <Action Name="Python Script - Send plant_temp to webserver">
                    EventGhost.PythonScript(u"text=eg.event.payload\nhitta=text.find('|')\ntemp=text[:hitta]\neg.globals.plant_datum=text[hitta+1:hitta+11]\neg.globals.plant_tid=text[hitta+12:]\nwhile (len(temp)&lt;5):\n    temp=' '+temp\neg.globals.plant_temp=temp\nc = 'socket_plant'+'|'+temp+'|'+eg.globals.plant_datum+'|'+eg.globals.plant_tid\nprint c\neg.plugins.Webserver.BroadcastMessage(c, False)")
                </Action>
            </Macro>
            <Macro Name="Python Script" Expanded="True">
                <Event Name="TellStickDuo.fineoffset.temperature.99.Temperature:" />
                <Action Name="Python Script - Send out_temp to webserver">
                    EventGhost.PythonScript(u"text=eg.event.payload\nhitta=text.find('|')\ntemp=text[:hitta]\neg.globals.datum=text[hitta+1:hitta+11]\neg.globals.tid=text[hitta+12:]\nwhile (len(temp)&lt;5):\n    temp=' '+temp\neg.globals.temp=temp\nc = 'socket_outside'+'|'+temp+'|'+eg.globals.datum+'|'+eg.globals.tid\nprint c\neg.plugins.Webserver.BroadcastMessage(c, False)")
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Folder Name="Garderoben" Expanded="True">
        <Macro Name="Serial Port: Write Data: Source Derambox/AppleTV" Expanded="True">
            <Event Name="iRule.projector.hdmi1" />
            <Action Name="Serial Port: Write Data: SOURCE 30">
                Serial.Write(u'SOURCE 30\\r')
            </Action>
        </Macro>
        <Macro Name="Serial Port: Write Data: Source Mac iGarderoben" Expanded="True">
            <Action Name="Serial Port: Write Data: SOURCE 21">
                Serial.Write(u'SOURCE 21\\r')
            </Action>
        </Macro>
        <Macro Name="Serial Port: Write Data: PWR ON\r" Expanded="True">
            <Event Name="Serial.:::ERR" />
            <Event Name="Serial.::ERR" />
            <Event Name="Serial.:ERR" />
            <Event Name="Serial.ERR" />
            <Action>
                Serial.Write(u'PWR ON\\r')
            </Action>
        </Macro>
        <Macro Name="Serial Port: Write Data: PWR OFF\r" Expanded="True">
            <Event Name="Serial.:::SOURCE=30" />
            <Event Name="Serial.::SOURCE=30" />
            <Event Name="Serial.:SOURCE=30" />
            <Event Name="Serial.SOURCE=30" />
            <Event Name="Serial.::::::SOURCE=30" />
            <Action>
                Serial.Write(u'PWR OFF\\r')
            </Action>
        </Macro>
        <Macro Name="Reciver och Projektor ON" Expanded="True">
            <Event Name="iRule.garderoben.on" />
            <Event Name="iRule.garderoben.off" />
            <Action Name="Serial Port: Write Data: SOURCE?\r">
                Serial.Write(u'SOURCE?\\r')
            </Action>
            <Action Name="USB-UIRT: Reciver On/Off">
                USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0156 00AB 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0015 0016 0015 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0015 0016 0040 0016 0016 0016 0040 0016 0015 0016 0040 0016 0015 0016 0040 0016 0040 0016 05E9 0156 0056 0016 0E3F', 4, 0)
            </Action>
        </Macro>
        <Macro Name="Reciver och Projektor OFF" Expanded="True">
            <Event Name="iRule.garderoben.off" Enabled="False" />
            <Action Name="USB-UIRT: Reciver On/Off">
                USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0156 00AB 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0015 0016 0015 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0015 0016 0040 0016 0016 0016 0040 0016 0015 0016 0040 0016 0015 0016 0040 0016 0040 0016 05E9 0156 0056 0016 0E3F', 4, 0)
            </Action>
            <Action>
                Serial.Write(u'PWR OFF\\r')
            </Action>
        </Macro>
        <Macro Name="Serial Port: Write Data: PWR ON\r" Expanded="True">
            <Event Name="iRule.Reciever.on" />
            <Action>
                Serial.Write(u'PWR ON\\r')
            </Action>
        </Macro>
        <Macro Name="Serial Port: Write Data: \r" Expanded="True">
            <Action>
                Serial.Write(u'\\r')
            </Action>
        </Macro>
        <Folder Name="AppleTV">
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.AppleTV.up" />
                <Action Name="USB-UIRT: AppleTV Up">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0158 00AC 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0040 0016 0041 0016 0040 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0041 0016 0040 0016 0041 0016 0041 0016 0041 0016 0040 0016 0016 0016 0040 0016 05F0 0158 0056 0016 0E57', 2, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.AppleTV.down" />
                <Action Name="USB-UIRT: AppleTV Down">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0158 00AC 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0016 0016 0041 0016 0040 0016 0041 0016 0040 0016 0041 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 05F1 0158 0056 0016 0E5B', 2, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.AppleTV.left" />
                <Action Name="USB-UIRT: AppleTV Left">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0158 00AC 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0041 0016 0016 0016 0040 0016 0040 0016 0041 0016 0040 0016 0040 0016 0041 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0041 0016 0040 0016 0040 0016 05F0 0158 0056 0016 0E58', 3, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: AppleTV Right" Expanded="True">
                <Event Name="iRule.AppleTV.right" />
                <Action Name="USB-UIRT: AppleTV Right">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0158 00AC 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0040 0016 0041 0016 0040 0016 0016 0016 0040 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0040 0016 0041 0016 0041 0016 0040 0016 0041 0016 05F1 0158 0056 0016 0E5B', 3, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.AppleTV.menulong" />
                <Action Name="USB-UIRT: AppleTV Menulong">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AB 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 05F0 0157 0056 0016 0E56', 8, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.AppleTV.menu" />
                <Action Name="USB-UIRT: AppleTV Menu">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AB 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 05F0 0157 0056 0016 0E56', 4, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.AppleTV.playlong" />
                <Action Name="USB-UIRT: AppleTV Play/Pause">
                    USB_UIRT.TransmitIR(u'0000 006F 0022 0002 0155 00AB 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0586 0155 0055 0016 0E36', 4, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.AppleTV.play" />
                <Action Name="USB-UIRT: AppleTV Play/Pause">
                    USB_UIRT.TransmitIR(u'0000 006F 0022 0002 0155 00AB 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0586 0155 0055 0016 0E36', 2, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Action Name="USB-UIRT: AppleTV OK">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0158 00AC 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0040 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0040 0016 0041 0016 0016 0016 0041 0016 0040 0016 0041 0016 0016 0016 0041 0016 05F1 0158 0056 0016 0E5C', 4, 0)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Reciver">
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Action Name="USB-UIRT: Reciver On/Off">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0156 00AB 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0015 0016 0015 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0015 0016 0040 0016 0016 0016 0040 0016 0015 0016 0040 0016 0015 0016 0040 0016 0040 0016 05E9 0156 0056 0016 0E3F', 4, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.Reciever.hdmi1" />
                <Action Name="USB-UIRT: Reciver HDMI 1">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AB 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 0016 0016 0615 0157 0056 0016 0E44', 4, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.Reciever.hdmi2" />
                <Action Name="USB-UIRT: Reciver HDMI 2">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AB 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0016 0016 0016 0016 0616 0157 0056 0016 0E46', 4, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.Reciever.hdmi3" />
                <Action Name="USB-UIRT: Reciver HDMI 3">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AC 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0016 0016 061A 0158 0056 0016 0E4E', 4, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.Reciever.hdmi4" />
                <Action>
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AB 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0615 0157 0056 0016 0E44', 4, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.Reciever.volup" />
                <Action Name="USB-UIRT: Reciver Vol Up">
                    USB_UIRT.TransmitIR(u'0000 006D 0022 0002 0155 00AA 0016 0015 0016 003F 0016 0015 0016 003F 0016 003F 0016 003F 0016 003F 0016 0015 0016 003F 0016 0015 0016 003F 0016 0015 0016 0015 0016 0015 0016 0015 0016 003F 0016 0015 0016 003F 0016 0015 0016 003F 0016 003F 0016 0015 0016 0015 0016 0015 0016 003F 0016 0015 0016 003F 0016 0015 0016 0015 0016 003F 0016 003F 0016 003F 0016 05E4 0155 0055 0016 0E33', 10, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.Reciever.voldwn" />
                <Action Name="USB-UIRT: Reciver Vol Down">
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AB 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 05EB 0157 0056 0016 0E45', 10, 0)
                </Action>
            </Macro>
            <Macro Name="USB-UIRT: Transmit IR" Expanded="True">
                <Event Name="iRule.reciver.mute" />
                <Action>
                    USB_UIRT.TransmitIR(u'0000 006C 0022 0002 0157 00AB 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0040 0016 0016 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0016 0016 0016 0016 0016 0016 0040 0016 0040 0016 0040 0016 05EC 0157 0056 0016 0E48', 4, 0)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Dreambox" Expanded="True">
            <Macro Name="Webserver: SendEvent: web/remotecontrol?command=2" Expanded="True">
                <Action>
                    Webserver.SendEvent(u'web/remotecontrol?command=2', u'192.168.1.109', 80, u'', u'')
                </Action>
            </Macro>
            <Macro Name="Get program info from DB1 delay" Expanded="True">
                <Event Name="iRule.dreambox1.change" />
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(219), 2, False)
                </Action>
            </Macro>
            <Macro Name="Get program info from DB2 delay" Expanded="True">
                <Event Name="iRule.dreambox.change" />
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(225), 2, False)
                </Action>
            </Macro>
            <Macro Name='DB1 Jump to "Get program info from DB"' id="219" Expanded="True">
                <Event Name="HTTP.reload_db_info1" Enabled="False" />
                <Event Name="HTTP.ClientMessage.db1_epg_refresh" />
                <Event Name="iRule.garderoben.off" />
                <Action>
                    EventGhost.PythonCommand(u"eg.globals.dbip='192.168.1.61'")
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(232), 2, False)
                </Action>
            </Macro>
            <Macro Name='DB2 Jump to "Get program info from DB"' id="225" Expanded="True">
                <Event Name="iRule.garderoben.off" />
                <Event Name="iRule.reload.db.info" />
                <Event Name="HTTP.reload_db_info" Enabled="False" />
                <Event Name="HTTP.ClientMessage.db2_epg_refresh" />
                <Action>
                    EventGhost.PythonCommand(u"eg.globals.dbip='192.168.1.62'")
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(232), 2, False)
                </Action>
            </Macro>
            <Macro Name="Get program info from DB" id="232" Expanded="True">
                <Action Name="Python Script Get program info from DB">
                    EventGhost.PythonScript(u'def gettext(vad,var):\n    start=s.find(vad,var)\n    start=start+len(vad)\n    vad=vad.replace(\'&lt;\',\'&lt;/\')\n    stop=s.find(vad,var)    \n    value=s[start:stop]\n    return value\nimport urllib\nimport codecs\ndbstring="http://" + eg.globals.dbip + "/web/getcurrent"\n# Get a file-like object for the Python Web site\'s home page.\nf = urllib.urlopen(dbstring)\n# Read from the object, storing the page\'s contents in \'s\'.\ns = f.read()\n#s=unicode(s,"utf8")\ns=s.replace(\'\xe5\',\'&amp;aring\')\ns=s.replace(\'\xe4\',\'&amp;auml\')\ns=s.replace(\'\xf6\',\'&amp;ouml\')\ns=s.replace(\'\xc5\',\'&amp;Aring\')\ns=s.replace(\'\xc4\',\'&amp;Auml\')\ns=s.replace(\'\xd6\',\'&amp;Ouml\')\ns=s.replace(\'\xe9\',\'&amp;eacute\')\ns=s.replace(\'\xc9\',\'&amp;Eacute\')\ns=s.replace(\'\xfc\',\'&amp;uuml\')\ns=s.replace(\'\xdc\',\'&amp;Uuml\')\nf.close()\nchan="kanallogos/blue.png"\n# ****** H\xe4mta Kanal\nvad=\'&lt;e2eventservicename&gt;\'\nkanal=gettext(vad, 0)\n#print kanal\n# ****** H\xe4mta Program\nvad=\'&lt;e2eventname&gt;\'\nprogram=gettext(vad,0)\n#print program\n# ****** H\xe4mta programinfo\nvad=\'&lt;e2eventdescription&gt;\'\ndesc=gettext(vad,0)\n#desc=unicode(desc,"utf8")\n#desc=desc.replace(\'\xc3\xa4\',\'a\')\ndesc=desc\n#print desc\n# ****** H\xe4mta tid kvar\nvad=\'&lt;e2eventremaining&gt;\'\ntid=gettext(vad,0)\ntvtime=str(int(round(float(tid)/60)))\n#print eg.globals.time\n# ****** H\xe4mta programinfo ext\nvad=\'&lt;e2eventdescriptionextended&gt;\'\nextended=gettext(vad,0)\n#extended=unicode(extended,"utf8")\n#print extended\npos=s.find(\'&lt;/e2event&gt;\')+ 5\n# ****** H\xe4mta N\xe4sta Program\nvad=\'&lt;e2eventname&gt;\'\nnextprogram=gettext(vad,pos)\n#print nextprogram\n# ****** H\xe4mta n\xe4sta programinfo\nvad=\'&lt;e2eventdescription&gt;\'\ndesc=gettext(vad,pos)\n#desc=unicode(desc,"utf8")\n#desc=desc.replace(\'\xc3\xa4\',\'a\')\nnextdesc=desc\n#print desc\n# ****** H\xe4mta n\xe4sta programinfo ext\nvad=\'&lt;e2eventdescriptionextended&gt;\'\nnextextended=gettext(vad,pos)\n#print nextprogram\nif kanal=="TV3 (S)":\n    chan="picon/tv3.png"\nelif kanal=="SVT1 J&amp;oumlnk&amp;oumlping":\n    chan="picon/svt1.png"\nelif kanal=="SVT2 J&amp;oumlnk&amp;oumlping":\n    chan="picon/svt2.png"\nelif kanal=="TV4":\n    chan="picon/tv4.png"\nelif kanal=="Kanal 5 V&amp;aumlst":\n    chan="picon/kanal5.png" \nelif kanal=="TV6":\n    chan="picon/tv6.png" \nelif kanal=="SVTB/SVT24":\n    chan="picon/svtb.png" \nelif kanal=="TV8":\n    chan="picon/tv8.png" \nelif kanal=="Kanal 9":\n    chan="picon/kanal9.png" \nif kanal=="TV10":\n    chan="picon/10.png"\nelif kanal=="TV11":\n    chan="picon/tv11.png"\nelif kanal=="Kunskapskanalen":\n    chan="picon/kunskapskanalen.png"\nelif kanal=="TV4 Komedi":\n    chan="picon/tv4komedi.png"\nelif kanal=="Sjuan":\n    chan="picon/sjuan.png" \nelif kanal=="TV4 Science Fiction":\n    chan="picon/tv4sciencefiction.png" \nelif kanal=="TV4 Fakta":\n    chan="picon/tv4fakta.png" \nelif kanal=="TV4 Guld":\n    chan="picon/tv4guld.png" \nelif kanal=="Discovery (S)":\n    chan="picon/discovery.png"\nelif kanal=="Nickelodeon (S)":\n    chan="picon/nick.png"\nelif kanal=="Disney Junior":\n    chan="picon/disneyjr.png"\nelif kanal=="TV4 Sport":\n    chan="picon/tv4sport.png" \nelif kanal=="Viasat Sport Sverige":\n    chan="picon/viasatsport.png" \nelif kanal=="Viasat Fotboll":\n    chan="picon/viasatfotboll.png" \nelif kanal=="Viasat Golf":\n    chan="picon/viasatgolf.png" \nelif kanal=="Viasat Hockey":\n    chan="picon/viasathockey.png"\nelif kanal=="CANAL+ SPORT 1 (S)":\n    chan="picon/canal+sport1.png"\nelif kanal=="CANAL+ SPORT 2":\n    chan="picon/canal+sport2.png"\nelif kanal=="CANAL+ HOCKEY":\n    chan="picon/canal+hockey.png"\nelif kanal=="CANAL+ FOTBOLL":\n    chan="picon/canal+fotboll.png"\nelif kanal=="CANAL+ SPORT EXTRA":\n    chan="picon/canal+sportextra.png"\nelif kanal=="CANAL+ EXTRA 1":\n    chan="picon/canal+extra1.png"\nelif kanal=="CANAL+ EXTRA 2":\n    chan="picon/canal+extra2.png"\nelif kanal=="CANAL+ EXTRA 3":\n    chan="picon/canal+extra3.png"\nelif kanal=="CANAL+ EXTRA 4":\n    chan="picon/canal+extra4.png"\nelif kanal=="Eurosport":\n    chan="picon/eurosport.png"\nelif kanal=="Viasat Motor":\n    chan="picon/viasatmotor.png" \nelif kanal=="SVT1 HD":\n    chan="picon/svt1.png"\nelif kanal=="SVT2 HD":\n    chan="picon/svt2.png"\nelif kanal=="TV4 HD":\n    chan="picon/tv4.png"\nelif kanal=="CANAL+ ACTION":\n    chan="picon/canal+action.png"\nelif kanal=="CANAL+ EMOTION":\n    chan="picon/canal+emotion.png"\nelif kanal=="CANAL+ FIRST HD":\n    chan="picon/canal+firsthd.png"\nelif kanal=="CANAL+ FIRST":\n    chan="picon/canal+first.png"\nelif kanal=="CANAL+ HITS":\n    chan="picon/canal+hits.png"\nelif kanal=="CANAL+ SERIES":\n    chan="picon/canal+series.png"\nelif kanal=="SF Kanalen":\n    chan="picon/canal+sf.png"\nelif kanal=="Viasat Film":\n    chan="picon/viasatfilm.png"\n \nelse:\n    desc=kanal+" " +desc\nif eg.globals.dbip=="192.168.1.61":\n    eg.globals.kanal=kanal\n    eg.globals.chan=chan\n    eg.globals.program=program\n    eg.globals.desc=desc\n    eg.globals.tvtime=tvtime\n    eg.globals.extended=extended\n    eg.globals.nextdesc=nextdesc\n    eg.globals.nextprogram=nextprogram\n    eg.globals.nextextended=nextextended\n    c = \'socket_dbinfo\'+\'|\'+kanal+\'|\'+program+\'|\'+tvtime+\'|\'+nextprogram\nelif eg.globals.dbip=="192.168.1.62":\n    eg.globals.kanal_db2=kanal\n    eg.globals.chan_db2=chan\n    eg.globals.program_db2=program\n    eg.globals.desc_db2=desc\n    eg.globals.tvtime_db2=tvtime\n    eg.globals.extended_db2=extended\n    eg.globals.nextdesc_db2=nextdesc\n    eg.globals.nextprogram_db2=nextprogram\n    eg.globals.nextextended_db2=nextextended  \n    c = \'socket_db2info\'+\'|\'+kanal+\'|\'+program+\'|\'+tvtime+\'|\'+nextprogram\nprint c\neg.plugins.Webserver.BroadcastMessage(c, False)')
                </Action>
            </Macro>
            <Folder Name="DB1" Expanded="True">
                <Macro Name="db1 rrw" Expanded="True">
                    <Event Name="iRule.dreambox.rrw" />
                    <Action Name="USB-UIRT: Transmit IR_old db" Enabled="False">
                        USB_UIRT.TransmitIR(u'0000 0069 0000 0012 0008 002F 0008 005A 0008 001F 0008 0070 0008 0034 0008 0034 0008 0024 0008 0055 0008 020A 0005 002F 0008 002A 0008 004A 0008 001F 0008 002F 0008 001F 0008 001F 0008 001F 0008 0C9F', 4, 0)
                    </Action>
                    <Action>
                        USB_UIRT.TransmitIR(u'0000 006B 0022 0002 0157 00AD 0016 0015 0016 0040 0016 0015 0016 0015 0016 003F 0016 0040 0016 0015 0016 0015 0016 0040 0016 0015 0016 0040 0016 0040 0016 0016 0016 0015 0016 0040 0016 0040 0016 0040 0016 0040 0016 0015 0016 0015 0016 0015 0016 003F 0016 0015 0016 0015 0016 0015 0016 0016 0016 0040 0016 0040 0016 0040 0016 0016 0016 003F 0016 0040 0016 05E7 0157 0056 0016 0E37', 4, 0)
                    </Action>
                </Macro>
                <Macro Name="db1 play" Expanded="True">
                    <Event Name="iRule.dreambox1.play" />
                    <Action Name="USB-UIRT: Transmit IR_old db" Enabled="False">
                        USB_UIRT.TransmitIR(u'0000 0069 0000 0012 0005 002F 0008 0024 0008 0049 0008 001E 0008 002F 0008 0024 0008 001E 0008 001E 0008 0CB6 0008 002F 0008 0059 0008 001E 0008 006F 0008 0034 0008 0034 0008 0024 0008 0054 0008 0203', 4, 0)
                    </Action>
                    <Action>
                        USB_UIRT.TransmitIR(u'0000 006B 0022 0002 0157 00AD 0016 0015 0016 003F 0016 0016 0016 0015 0016 003F 0016 003F 0016 0015 0016 0015 0016 003F 0016 0015 0016 003F 0016 0040 0016 0015 0016 0015 0016 003F 0016 003F 0016 0015 0016 0015 0016 003F 0016 0015 0016 0015 0016 003F 0016 0015 0016 0015 0016 003F 0016 003F 0016 0015 0016 003F 0016 003F 0016 0015 0016 003F 0016 003F 0016 05E5 0157 0056 0016 0E33', 4, 0)
                    </Action>
                </Macro>
                <Macro Name="db1 stop" Expanded="True">
                    <Event Name="iRule.dreambox1.stop" />
                    <Action Name="USB-UIRT: Transmit IR_old db" Enabled="False">
                        USB_UIRT.TransmitIR(u'0000 0069 0000 0012 0008 002F 0008 0059 0008 001E 0008 006F 0008 0034 0008 0034 0008 0024 0008 0054 0008 020A 0005 002F 0008 006A 0008 0049 0008 001E 0008 002F 0008 0034 0008 001E 0008 001E 0008 0C8B', 4, 0)
                    </Action>
                    <Action>
                        USB_UIRT.TransmitIR(u'0000 006B 0022 0002 0158 00AD 0016 0015 0016 0040 0016 0015 0016 0015 0016 0040 0016 0040 0016 0015 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0016 0016 0015 0016 0040 0016 0040 0016 0040 0016 0016 0016 0040 0016 0016 0016 0015 0016 0040 0016 0016 0016 0016 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 05EB 0158 0056 0016 0E3B', 4, 0)
                    </Action>
                </Macro>
                <Macro Name="db1 ffw" Expanded="True">
                    <Event Name="iRule.dreambox1.ffw" />
                    <Action Name="USB-UIRT: Transmit IR_old db" Enabled="False">
                        USB_UIRT.TransmitIR(u'0000 0069 0000 0012 0008 002F 0008 0059 0008 001F 0008 006F 0008 0034 0008 0034 0008 0024 0008 0054 0008 020A 0005 002F 0008 006F 0008 0049 0008 001E 0008 002F 0008 002F 0008 001E 0008 001E 0008 0C8B', 4, 0)
                    </Action>
                    <Action>
                        USB_UIRT.TransmitIR(u'0000 006B 0022 0002 0158 00AD 0016 0015 0016 0040 0016 0016 0016 0015 0016 0040 0016 0040 0016 0016 0016 0016 0016 0040 0016 0016 0016 0040 0016 0040 0016 0015 0016 0015 0016 0040 0016 0040 0016 0016 0016 0040 0016 0040 0016 0015 0016 0016 0016 0040 0016 0016 0016 0016 0016 0040 0016 0016 0016 0015 0016 0040 0016 0040 0016 0015 0016 0040 0016 0040 0016 05E8 0158 0056 0016 0E3A', 4, 0)
                    </Action>
                </Macro>
                <Macro Name="db1 rec" Expanded="True">
                    <Event Name="iRule.dreambox1.rec" />
                    <Action Name="USB-UIRT: Transmit IR rec_old db" Enabled="False">
                        USB_UIRT.TransmitIR(u'0000 006A 0000 0012 0006 002E 0008 0064 0008 0049 0008 001E 0008 002E 0008 0039 0008 001E 0008 001E 0008 0C84 0008 002E 0008 0059 0008 001E 0008 006E 0008 0034 0008 0034 0008 0024 0008 0054 0008 0201', 4, 0)
                    </Action>
                    <Action Name="USB-UIRT: Transmit IR rec">
                        USB_UIRT.TransmitIR(u'0000 006A 0000 0012 0006 002E 0008 0064 0008 0049 0008 001E 0008 002E 0008 0039 0008 001E 0008 001E 0008 0C84 0008 002E 0008 0059 0008 001E 0008 006E 0008 0034 0008 0034 0008 0024 0008 0054 0008 0201', 4, 0)
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Macro Name="Ping: fix DB2" Expanded="True">
            <Event Name="Main.DB2_dead" Enabled="False" />
            <Action>
                TellStick.TurnOff(23)
            </Action>
            <Action>
                EventGhost.Wait(5.0)
            </Action>
            <Action>
                TellStick.TurnOn(23)
            </Action>
            <Action Name="Python Script - Wait 5 min and send EndOfSleep">
                EventGhost.PythonScript(u'eg.scheduler.AddTask(300, eg.TriggerEvent, \'EndOfSleep\', \'DB"\')')
            </Action>
        </Macro>
        <Macro Name="Python Script" Expanded="True">
            <Event Name="Main.EndOfSleep" />
            <Action>
                PingPlugin.OnePing(u'192.168.1.62', u'DB2', 200, True, u'DB2_alive', u'DB2_dead')
            </Action>
        </Macro>
    </Folder>
    <Folder Name="feedback">
        <Macro Name='eg.globals.feedback ="yo, feedback" ' />
    </Folder>
    <Folder Name="Nexa" Expanded="True">
        <Folder Name="ljus script">
            <Folder Name="DarkAndTime" Expanded="True">
                <Macro Name="time='true'" Expanded="True">
                    <Event Name="Main.Schema ON" />
                    <Action>
                        EventGhost.PythonCommand(u"eg.globals.time='true'")
                    </Action>
                    <Action Enabled="False">
                        EventGhost.NewJumpIf(XmlIdLink(286), 2, False)
                    </Action>
                    <Action Name="Python Script - Tänd om DarkAndTime">
                        EventGhost.PythonScript(u'print \'Dark=\' + eg.globals.dark + \' Time=\' +eg.globals.time\nif eg.globals.dark == \'true\' and eg.globals.time == \'true\':\n    eg.TriggerEvent("DarkAndTime")\n')
                    </Action>
                </Macro>
                <Macro Name="time='false'" Expanded="True">
                    <Event Name="Main.Schema OFF" />
                    <Action>
                        EventGhost.PythonCommand(u"eg.globals.time='false'")
                    </Action>
                    <Action Name="Python Script - Släck om Dark (notDarkAndTime)">
                        EventGhost.PythonScript(u'print \'Dark=\' + eg.globals.dark + \' Time=\' +eg.globals.time\nif eg.globals.dark==\'true\':\n    eg.TriggerEvent("notDarkAndTime")\n\n')
                    </Action>
                </Macro>
                <Folder Name="Dark" Expanded="True">
                    <Macro Name='Trigger event "still_dark_q" after 300.00 seconds' Expanded="True">
                        <Event Name="TellStickDuo.Ljus_ute.ON" />
                        <Action>
                            EventGhost.PythonCommand(u"eg.globals.dark = 'true'")
                        </Action>
                        <Action Name='Trigger event "still_dark_q" after 300.00 seconds'>
                            EventGhost.TriggerEvent(u'still_dark_q', 300.0)
                        </Action>
                    </Macro>
                    <Macro Name="Python Script - Still dark?" Expanded="True">
                        <Event Name="Main.still_dark_q" />
                        <Action>
                            EventGhost.PythonScript(u'print \'Still dark=\' + eg.globals.dark\nif eg.globals.dark == \'true\':\n    eg.TriggerEvent("Dark")\n    eg.globals.darktime=eg.Utils.time.strftime("%H:%M:%S")')
                        </Action>
                    </Macro>
                    <Macro Name="Python Script - Tänd om DarkAndTime" id="286" Expanded="True">
                        <Event Name="Main.Dark" />
                        <Action Name="Python Script - Tänd om DarkAndTime">
                            EventGhost.PythonScript(u'print \'Dark=\' + eg.globals.dark + \' Time=\' +eg.globals.time\nif eg.globals.dark == \'true\' and eg.globals.time == \'true\':\n    eg.TriggerEvent("DarkAndTime")\neg.globals.dark_time=eg.Utils.time.strftime("%H:%M:%S")\neg.globals.dark_status="Morkt"\ndate=eg.Utils.time.strftime("%Y-%m-%d")\nc = \'socket_dark\' + \'|\' + \'m\xf6rkt\' + \'|\' + date +\'|\' + eg.globals.darktime\nprint c\neg.plugins.Webserver.BroadcastMessage(c, False)\n')
                        </Action>
                    </Macro>
                </Folder>
                <Folder Name="Light" Expanded="True">
                    <Macro Name='Trigger event "still_light_q" after 300.00 seconds' Expanded="True">
                        <Event Name="TellStickDuo.Ljus_ute.OFF" />
                        <Action>
                            EventGhost.PythonCommand(u"eg.globals.dark = 'false'")
                        </Action>
                        <Action Name='Trigger event "still_light_q" after 300.00 seconds'>
                            EventGhost.TriggerEvent(u'still_light_q', 300.0)
                        </Action>
                    </Macro>
                    <Macro Name="Python Script - Still Light?" Expanded="True">
                        <Event Name="Main.still_light_q" />
                        <Action>
                            EventGhost.PythonScript(u'print \'Dark outside=\' + eg.globals.dark\nif eg.globals.dark == \'false\':\n    eg.TriggerEvent("Light")\n    eg.globals.lighttime=eg.Utils.time.strftime("%H:%M:%S")\n    print eg.globals.lighttime')
                        </Action>
                    </Macro>
                    <Macro Name="Python Script - Ljust, släck om Time" Expanded="True">
                        <Event Name="Main.Light" />
                        <Action Name="Python Script - Släck om Time (notDarkAndTime)">
                            EventGhost.PythonScript(u'print \'Dark=\' + eg.globals.dark + \' Time=\' +eg.globals.time\nif eg.globals.time==\'true\':\n    eg.TriggerEvent("notDarkAndTime")\neg.globals.light_time=eg.Utils.time.strftime("%H:%M:%S")\neg.globals.dark_status="Ljust"\ndate=eg.Utils.time.strftime("%Y-%m-%d")\nc = \'socket_dark\' + \'|\' + \'ljust\' + \'|\' + date +\'|\' + eg.globals.lighttime\nprint c\neg.plugins.Webserver.BroadcastMessage(c, False)\n\n')
                        </Action>
                    </Macro>
                </Folder>
            </Folder>
            <Folder Name="Move Vardagsrum" Expanded="True">
                <Macro Name="Python Script - Tänd om DarkAndMove" Expanded="True">
                    <Event Name="TellStickDuo.rorelse_vardagsrum.ON" />
                    <Action Name="Python Script - Tänd om DarkAndMove">
                        EventGhost.PythonScript(u'print \'Dark=\' + eg.globals.dark + \' Status=\' + eg.globals.vardagsrum\neg.globals.movevardagsrum=\'true\'\neg.globals.movevardagsrum_time=eg.Utils.time.strftime("%H:%M:%S")\nc = \'socket_movevardagsrum\' + \'|\' + \'Ja\' + \'|\' + eg.Utils.time.strftime("%Y-%m-%d") +\'|\' + eg.globals.movevardagsrum_time\nprint c\neg.plugins.Webserver.BroadcastMessage(c, False)\nif eg.globals.dark == \'true\':\n    eg.TriggerEvent("DarkAndMove")\n')
                    </Action>
                </Macro>
                <Macro Name="Vardagsrum_blink">
                    <Event Name="Main.Vardagsrum_blink" />
                    <Action Enabled="False">
                        TellStickDuo.Dim(4, 74)
                    </Action>
                    <Action Enabled="False">
                        EventGhost.Wait(1.01)
                    </Action>
                    <Action>
                        TellStickDuo.Dim(4, 227)
                    </Action>
                </Macro>
                <Macro Name="Python Script Check move" Expanded="True">
                    <Event Name="TellStickDuo.rorelse_vardagsrum.OFF" />
                    <Action Name="Python Script - check move">
                        EventGhost.PythonScript(u'eg.globals.movevardagsrum=\'false\'\neg.globals.movevardagsrum_time=eg.Utils.time.strftime("%H:%M:%S")\nc = \'socket_movevardagsrum\' + \'|\' + \'Nja\' + \'|\' + eg.Utils.time.strftime("%Y-%m-%d") +\'|\' + eg.globals.movevardagsrum_time\nprint c\nif eg.globals.dark == \'true\':\n    print \'Nu\'\n    print \'vill\'\n    print \'sensorn\'\n    print \'slacka\'\n    print \'i\'\n    print \'vardagsrummet\'\n    eg.scheduler.AddTask(0, eg.TriggerEvent, \'vardagsrum_move_dimdown\', \'Vardagsrum"\')\n    eg.scheduler.AddTask(60, eg.TriggerEvent, \'vardagsrum_move_q\', \'Vardagsrum"\')\n')
                    </Action>
                    <Action Enabled="False">
                        EventGhost.NewJumpIf(XmlIdLink(396), 2, False)
                    </Action>
                </Macro>
                <Macro Name="Python Script - Rörelse off?" Expanded="True">
                    <Event Name="Main.vardagsrum_move_q" />
                    <Action Name="Python Script - nomove">
                        EventGhost.PythonScript(u'print \'Rorelse i vardagsrum: \' + eg.globals.movevardagsrum + \' Dark=\' + eg.globals.dark \nif eg.globals.movevardagsrum==\'false\' and eg.globals.dark == \'true\':\n    eg.globals.nomovevardagsrum_time=eg.Utils.time.strftime("%H:%M:%S")\n    eg.TriggerEvent("notDarkAndMove")\n    eg.globals.movevardagsrum_time=eg.Utils.time.strftime("%H:%M:%S")\n    c = \'socket_movevardagsrum\' + \'|\' + \'Nej\' + \'|\' + eg.Utils.time.strftime("%Y-%m-%d") +\'|\' + eg.globals.movevardagsrum_time\n    print c\n')
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Status" Expanded="True">
                <Macro Name="eg.globals.matsal='On'" Expanded="True">
                    <Event Name="TellStickDuo.knapp_vardagsrum_left.ON" />
                    <Event Name="TellStickDuo.knapp_kok_right.ON" />
                    <Action Name='eg.TriggerEvent("Status.Lights")'>
                        EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / On", prefix="Status")')
                    </Action>
                </Macro>
                <Macro Name="eg.globals.matsal='Off'" Expanded="True">
                    <Event Name="TellStickDuo.knapp_vardagsrum_left.OFF" />
                    <Event Name="TellStickDuo.knapp_kok_right.OFF" />
                    <Action Name='eg.TriggerEvent("Status.Lights")'>
                        EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / Off", prefix="Status")')
                    </Action>
                </Macro>
                <Macro Name="eg.globals.vardagsrum='On'" Expanded="True">
                    <Event Name="TellStickDuo.knapp_vardagrum_right.ON" />
                    <Event Name="TellStickDuo.Knapp_kok_left.ON" />
                    <Action Name='eg.TriggerEvent("Status.Lights")'>
                        EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / On", prefix="Status")')
                    </Action>
                </Macro>
                <Macro Name="eg.globals.vardagsrum='Off'" Expanded="True">
                    <Event Name="TellStickDuo.knapp_vardagrum_right.OFF" />
                    <Event Name="TellStickDuo.Knapp_kok_left.OFF" />
                    <Action Name='eg.TriggerEvent("Status.Lights")'>
                        EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / Off", prefix="Status")')
                    </Action>
                </Macro>
                <Macro Name="eg.globals.ivar_tak='On'" Expanded="True">
                    <Event Name="TellStickDuo.Ivar_tak.ON" />
                    <Action Name='eg.TriggerEvent("Status.Lights")'>
                        EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Ivar_tak / On", prefix="Status")')
                    </Action>
                </Macro>
                <Macro Name="eg.globals.ivar_tak='Off'" Expanded="True">
                    <Event Name="TellStickDuo.Ivar_tak.OFF" />
                    <Action Name='eg.TriggerEvent("Status.Lights")'>
                        EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Ivar_tak / Off", prefix="Status")')
                    </Action>
                </Macro>
                <Macro Name="Python Script - Fixa status" Expanded="True">
                    <Event Name="Status.Lights" />
                    <Action>
                        EventGhost.PythonScript(u'tid=eg.Utils.time.strftime("%H:%M:%S")\ndate=eg.Utils.time.strftime("%Y-%m-%d")\np = eg.event.payload\np = p.split(\'/\')\nlampa = p[0].strip()\nstatus = p[1].strip()\nif lampa=="Vardagsrum":\n    eg.globals.vardagsrum=status\n    eg.globals.vardagsrum_time=tid\nelif lampa=="Matsal":\n    eg.globals.matsal=status\n    eg.globals.matsal_time=tid\nelif lampa=="Orange":\n    eg.globals.orange=status\n    eg.globals.orange_time=tid\nelif lampa=="Green":\n    eg.globals.green=status\n    eg.globals.green_time=tid\nelif lampa=="Nere":\n    eg.globals.nere=status\n    eg.globals.nere_time=tid\nelif lampa=="Ivar_tak":\n    eg.globals.ivar_tak=status\n    eg.globals.ivar_tak_time=tid\nc = \'socket_\' + lampa + \'|\' +status+ \'|\' + date + \'|\' + tid\nprint c\neg.plugins.Webserver.BroadcastMessage(c, False)')
                    </Action>
                </Macro>
            </Folder>
        </Folder>
        <Folder Name="Vardagsrum">
            <Macro Name="TellStick: Turn off Vardagsrum" id="343" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_60" />
                <Event Name="iRule.Vardagsrum.Off" />
                <Event Name="Main.notDarkAndMove" />
                <Action>
                    TellStick.TurnOff(4)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / Off", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 11%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_61" />
                <Action Name="TellStick: Dim Vardagsrum to 11%">
                    TellStick.Dim(4, 29)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 22%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 22%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_62" />
                <Action Name="TellStick: Dim Vardagsrum to 22%">
                    TellStick.Dim(4, 56)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 11%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 33%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_63" />
                <Event Name="iRule.Vardagsrum.33" />
                <Action Name="TellStick: Dim Vardagsrum to 33%">
                    TellStick.Dim(4, 81)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 33%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 44%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_64" />
                <Event Name="iRule.matsal.44" />
                <Action Name="TellStick: Dim Vardagsrum to 44%">
                    TellStick.Dim(4, 102)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 44%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 55%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_65" />
                <Event Name="iRule.Vardagsrum.55" />
                <Action Name="TellStick: Dim Vardagsrum to 55%">
                    TellStick.Dim(4, 126)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 55%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 66%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_66" />
                <Event Name="iRule.Vardagsrum.66" />
                <Action Name="TellStick: Dim Vardagsrum to 66%">
                    TellStick.Dim(4, 153)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 66%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 77%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_67" />
                <Event Name="iRule.Vardagsrum.77" />
                <Action Name="TellStick: Dim Vardagsrum to 77%">
                    TellStick.Dim(4, 174)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 77%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum to 88%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_68" />
                <Event Name="iRule.Vardagsrum.88" />
                <Event Name="Main.DarkAndMove" />
                <Action Name="TellStick: Dim Vardagsrum to 88%">
                    TellStick.Dim(4, 219)
                </Action>
                <Action>
                    EventGhost.Wait(1.0)
                </Action>
                <Action Name="TellStick: Dim Vardagsrum to 88%">
                    TellStick.Dim(4, 219)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 88%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Turn on Vardagsrum" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_69" />
                <Event Name="iRule.Vardagsrum.on" />
                <Action Enabled="False">
                    TellStick.TurnOn(4)
                </Action>
                <Action Name="TellStick: Dim Vardagsrum to 98%">
                    TellStick.Dim(4, 247)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 100%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Vardagsrum vid noMove" id="396" Expanded="True">
                <Event Name="Main.vardagsrum_move_dimdown" />
                <Action>
                    TellStickDuo.Dim(4, 206)
                </Action>
                <Action>
                    EventGhost.Wait(1.0)
                </Action>
                <Action>
                    TellStickDuo.Dim(4, 182)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / 70%", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Turn off Matsal" id="402" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_70" />
                <Event Name="iRule.matsal.off" />
                <Action>
                    TellStick.TurnOff(2)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / Off", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 11%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_71" />
                <Action Name="TellStick: Dim Matsal to 11%">
                    TellStick.Dim(2, 11)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 11 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 22%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_72" />
                <Action Name="TellStick: Dim Matsal to 22%">
                    TellStick.Dim(2, 50)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 22 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 33%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_73" />
                <Event Name="iRule.matsal.33" />
                <Action Name="TellStick: Dim Matsal to 33%">
                    TellStick.Dim(2, 81)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 33 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 44%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_74" />
                <Action Name="TellStick: Dim Matsal to 44%">
                    TellStick.Dim(2, 102)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 44 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 55%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_75" />
                <Event Name="iRule.Matsal.55" />
                <Action Name="TellStick: Dim Matsal to 55%">
                    TellStick.Dim(2, 133)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 55 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 66%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_76" />
                <Event Name="iRule.matsal.66" />
                <Action Name="TellStick: Dim Matsal to 66%">
                    TellStick.Dim(2, 140)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 66 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 77%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_77" />
                <Event Name="iRule.matsal.77" />
                <Action Name="TellStick: Dim Matsal to 77%">
                    TellStick.Dim(2, 192)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 77 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Dim Matsal to 88%" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_78" />
                <Event Name="iRule.matsal.88" />
                <Action Name="TellStick: Dim Matsal to 88%">
                    TellStick.Dim(2, 219)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 88 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Turn on Matsal" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_79" />
                <Event Name="iRule.Matsal.on" />
                <Action>
                    TellStick.TurnOn(2)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Matsal / 100 %", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Turn on Vardagsrum Orange" id="449" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_81" />
                <Event Name="iRule.orange.on" />
                <Event Name="TellStickDuo.knapp_vardagsrum_en.ON" />
                <Event Name="Main.DarkAndTime" Enabled="False" />
                <Action>
                    TellStick.TurnOn(1)
                </Action>
                <Action>
                    TellStickDuo.TurnOn(1)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Orange / On", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Turn off Vardagsrum Orange" id="457" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_80" />
                <Event Name="iRule.orange.off" />
                <Event Name="TellStickDuo.Nexa Dimmer.OFF" />
                <Event Name="TellStickDuo.knapp_vardagsrum_en.OFF" />
                <Event Name="Main.notDarkAndTime" />
                <Event Name="Main.Schema OFF" />
                <Action>
                    TellStick.TurnOff(1)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Orange / Off", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStick: Turn on Vardagsrum Green" id="466" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_83" />
                <Event Name="TellStickDuo.Nexa Dimmer.ON" />
                <Event Name="Main.DarkAndTime" Enabled="False" />
                <Event Name="iRule.green.on" />
                <Event Name="TellStickDuo.knapp_vardagsrum_en.ON" />
                <Action>
                    TellStick.TurnOn(5)
                </Action>
                <Action>
                    EventGhost.Wait(1.0)
                </Action>
                <Action>
                    TellStick.TurnOn(5)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Green / On", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off Vardagsrum Green" id="476" Expanded="True">
                <Event Name="CommandFusion.DigitalPress_82" />
                <Event Name="TellStickDuo.Nexa Dimmer.OFF" />
                <Event Name="iRule.green.off" />
                <Event Name="TellStickDuo.knapp_vardagsrum_en.OFF" />
                <Event Name="Main.notDarkAndTime" />
                <Event Name="Main.Schema OFF" />
                <Action>
                    EventGhost.Wait(1.0)
                </Action>
                <Action>
                    TellStickDuo.TurnOff(5)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Green / Off", prefix="Status")')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Nere">
            <Folder Name="Gillestuga">
                <Macro Name="TellStick:Lampa Turn on Gillestuga bord">
                    <Event Name="USB_UIRT.JVC.B352" />
                    <Event Name="CommandFusion.DigitalPress_85" />
                    <Event Name="iRule.gillestuga.on" />
                    <Action>
                        TellStickDuo.TurnOn(6)
                    </Action>
                </Macro>
                <Macro Name="TellStick:Lampa Turn off Gillestuga bord" Expanded="True">
                    <Event Name="USB_UIRT.JVC.A303" />
                    <Event Name="CommandFusion.DigitalPress_84" />
                    <Event Name="iRule.gillestuga.off" />
                    <Event Name="TellStickDuo.knapp_gillestuga.OFF" />
                    <Action>
                        TellStickDuo.TurnOff(6)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn on gillestuga_horn" Expanded="True">
                    <Event Name="iRule.gillestuga.horn.on" />
                    <Action>
                        TellStickDuo.TurnOn(24)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn off gillestuga_horn" Expanded="True">
                    <Event Name="iRule.gillestuga.horn.off" />
                    <Action>
                        TellStickDuo.TurnOff(24)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn on gillestuga_fonster" Expanded="True">
                    <Event Name="iRule.gillestuga.fonster.on" />
                    <Action>
                        TellStickDuo.TurnOn(17)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn off gillestuga_fonster" Expanded="True">
                    <Event Name="iRule.gillestuga.fonster.off" />
                    <Action>
                        TellStickDuo.TurnOff(17)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn on gillestuga_tallrik" Expanded="True">
                    <Event Name="iRule.gillestuga.tallrik.on" />
                    <Action>
                        TellStickDuo.TurnOn(21)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn off gillestuga_tallrik" Expanded="True">
                    <Event Name="iRule.gillestuga.tallrik.off" />
                    <Action>
                        TellStickDuo.TurnOff(21)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn on gillestuga_uplight" Expanded="True">
                    <Event Name="iRule.gillestuga.uplight.on" />
                    <Action>
                        TellStickDuo.TurnOn(35)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn off gillestuga_uplight" Expanded="True">
                    <Event Name="iRule.gillestuga.uplight.off" />
                    <Action>
                        TellStickDuo.TurnOff(35)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo:Lampor Turn on Gillestuga" Expanded="True">
                    <Event Name="TellStickDuo.knapp_gillestuga.ON" Enabled="False" />
                    <Action>
                        TellStickDuo.TurnOn(17)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOn(24)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOn(34)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOn(35)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOn(21)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Lampor Turn OFF Gillestuga">
                    <Event Name="TellStickDuo.knapp_gillestuga.OFF" Enabled="False" />
                    <Action>
                        TellStickDuo.TurnOff(18)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(19)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(34)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(24)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(17)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(21)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(35)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(6)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Lampor Gillestuga Nattljus" id="547">
                    <Event Name="iRule.gillestuga.nattljus.on" />
                    <Action>
                        TellStickDuo.Dim(34, 45)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(24)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(17)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(21)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(35)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(6)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(18)
                    </Action>
                    <Action>
                        EventGhost.Wait(0.5)
                    </Action>
                    <Action>
                        TellStickDuo.TurnOff(19)
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="Syrum">
                <Macro Name="TellStickDuo: Turn off syrum_tak" Expanded="True">
                    <Event Name="iRule.Syrum.Off" />
                    <Action>
                        TellStickDuo.TurnOff(34)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 12%">
                    <Action>
                        TellStickDuo.Dim(34, 28)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 21%" Expanded="True">
                    <Event Name="iRule.Syrum.22" />
                    <Action>
                        TellStickDuo.Dim(34, 56)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 33%" Expanded="True">
                    <Event Name="iRule.Syrum.33" />
                    <Action>
                        TellStickDuo.Dim(34, 87)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 43%" Expanded="True">
                    <Event Name="iRule.Syrum.44" />
                    <Action>
                        TellStickDuo.Dim(34, 112)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 54%" Expanded="True">
                    <Event Name="TellStickDuo.knapp_gillestuga.ON" />
                    <Action>
                        EventGhost.Wait(2.0)
                    </Action>
                    <Action>
                        TellStickDuo.Dim(34, 140)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 65%" Expanded="True">
                    <Event Name="iRule.Syrum.66" />
                    <Action>
                        TellStickDuo.Dim(34, 168)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 77%" Expanded="True">
                    <Action>
                        TellStickDuo.Dim(34, 199)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Dim knapp_vardagrum_right to 88%" Expanded="True">
                    <Event Name="iRule.Syrum.88" />
                    <Action>
                        TellStickDuo.Dim(34, 227)
                    </Action>
                </Macro>
                <Macro Name="TellStickDuo: Turn on syrum_tak" Expanded="True">
                    <Event Name="iRule.Syrum.on" />
                    <Action>
                        TellStickDuo.TurnOn(34)
                    </Action>
                </Macro>
            </Folder>
            <Macro Name="TellStickDuo: Turn off Sovrum_bakom">
                <Event Name="iRule.sovrum.bakom.off" />
                <Action>
                    TellStickDuo.TurnOff(18)
                </Action>
                <Action>
                    TellStickDuo.TurnOff(19)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn on Sovrum_bakom">
                <Event Name="iRule.sovrum.bakom.on" />
                <Action>
                    TellStickDuo.TurnOn(18)
                </Action>
                <Action>
                    TellStickDuo.TurnOn(19)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off Nere-extra" id="602">
                <Action>
                    TellStickDuo.TurnOff(41)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / Off", prefix="Status")')
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn on Nere-extra" id="605" Expanded="True">
                <Action>
                    TellStickDuo.TurnOn(41)
                </Action>
                <Action Name='eg.TriggerEvent("Status.Lights")'>
                    EventGhost.PythonCommand(u'eg.TriggerEvent("Lights",payload="Vardagsrum / Off", prefix="Status")')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Ute" Expanded="True">
            <Macro Name="TellStick: Turn onUte" Expanded="True">
                <Event Name="Main.DarkAndTime" Enabled="False" />
                <Event Name="TellStickDuo.Ljus_ute.ON" Enabled="False" />
                <Event Name="TellStickDuo.Nexa Dimmer.ON" Enabled="False" />
                <Event Name="Main.TreeON" Enabled="False" />
                <Action>
                    TellStick.TurnOn(13)
                </Action>
            </Macro>
            <Macro Name="TellStick: Turn off Ute" Expanded="True">
                <Event Name="Main.notDarkAndTime" Enabled="False" />
                <Event Name="TellStickDuo.Ljus_ute.OFF" Enabled="False" />
                <Event Name="TellStickDuo.Nexa Dimmer.OFF" Enabled="False" />
                <Event Name="Main.TreeOFF" Enabled="False" />
                <Action>
                    TellStick.TurnOff(13)
                </Action>
            </Macro>
            <Macro Name='SunTracker:  "Tree"' Expanded="True">
                <Action Enabled="False">
                    Suntracker.SuntrackerAction([u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330'], u'Tree', u'TreeON', u'TreeOFF', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0001', u'0630', u'2330', u'0101,0501,0606,1224,1225,1226', u'0106,0402,0405,0512,0522,0523,0625', 2, 2, 1.5, False, False, False, False, 10, 40, 10, 40, 3, 10, 40, 80, True, 0, 0, 10, '14.1144', '57.6995', u'Norrahammar, Sweden', 30, u'05', u'08')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Alla" Expanded="True">
            <Macro Name="TellStickDuo: Turn off Alla" id="624" Expanded="True">
                <Event Name="iRule.lampor.alla.off" />
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(402), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(457), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(476), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(343), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(457), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(0.5)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(547), 2, False)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Vardagsrum_dubbelklick">
            <Macro Name="TellStickDuo: Dubbel Vardagsrum_left" Expanded="True">
                <Event Name="TellStickDuo.knapp_vardagsrum_left.OFF" />
                <Action Enabled="False">
                    EventGhost.JumpIfLongPress(0.10000000000000001, XmlIdLink(449))
                </Action>
                <Action>
                    EventGhost.JumpIfDoubleEvent(2.5, XmlIdLink(624))
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOn(1)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Dubbel Vardagsrum_right" Expanded="True">
                <Event Name="TellStickDuo.knapp_vardagrum_right.OFF" />
                <Action Enabled="False">
                    EventGhost.JumpIfLongPress(0.10000000000000001, XmlIdLink(449))
                </Action>
                <Action>
                    EventGhost.JumpIfDoubleEvent(1.5, XmlIdLink(624))
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOn(1)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Prydnad/julstjärnor" Expanded="True">
            <Macro Name="TellStickDuo: Turn on prydnad" Expanded="True">
                <Event Name="Main.Schema ON" Enabled="False" />
                <Event Name="Main.DarkAndTime" />
                <Event Name="TellStickDuo.Ljus_ute.ON" Enabled="False" />
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(605), 2, True)
                </Action>
                <Action>
                    EventGhost.Wait(3.0)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(449), 2, True)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(466), 2, True)
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOn(38)
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOn(39)
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOn(37)
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOn(42)
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOn(40)
                </Action>
                <Action Enabled="False">
                    EventGhost.Wait(2.0)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off prydnad" Expanded="True">
                <Event Name="Main.Schema OFF" Enabled="False" />
                <Event Name="Main.notDarkAndTime" />
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(602), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(457), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    EventGhost.NewJumpIf(XmlIdLink(476), 0, True)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOff(38)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOff(40)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action Enabled="False">
                    TellStickDuo.TurnOff(42)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off Ivar-extra" Expanded="True">
                <Event Name="Main.Ivarsfonster OFF" />
                <Action>
                    TellStickDuo.TurnOff(39)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off Vera-extra" Expanded="True">
                <Event Name="Main.Verasfonster OFF" />
                <Action>
                    TellStickDuo.TurnOff(40)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off sovrum-extra" Expanded="True">
                <Event Name="Main.Sovrumsfonster OFF" />
                <Action>
                    TellStickDuo.TurnOff(37)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn on Vera_night" Expanded="True">
                <Event Name="Main.Vera_night ON" />
                <Action>
                    TellStickDuo.TurnOn(44)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off Vera_night" Expanded="True">
                <Event Name="Main.Vera_night OFF" />
                <Action>
                    TellStickDuo.TurnOff(44)
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Folder Name="Scheman" Expanded="True">
        <Macro Name='SunTracker:  "Suntracker Thai"' Enabled="False" Expanded="True">
            <Action Enabled="False">
                Suntracker.SuntrackerAction([u'0559', u'0750', u'2302', u'----', u'0630', u'2234', u'----', u'0630', u'2312', u'----', u'0630', u'2242', u'----', u'0645', u'2345', u'----', u'0715', u'2325', u'0559', u'0715', u'2212', u'----', u'----', u'----'], u'Suntracker Thai', u'Thai ON', u'Thai OFF', u'0559', u'0750', u'2302', u'----', u'0630', u'2234', u'----', u'0630', u'2312', u'----', u'0630', u'2242', u'----', u'0645', u'2345', u'----', u'0715', u'2325', u'0559', u'0715', u'2212', u'----', u'----', u'----', u'0101,0501,0606,1224,1225,1226', u'0106,0402,0405,0512,0522,0523,0625', 1, 1, 1.5, False, False, True, False, 29, 99, 10, 40, 3, 5, 82, 99, False, 0, 0, 10, '14.1144', '57.6995', u'Norrahammar, Sweden', 30, u'05', u'08')
            </Action>
        </Macro>
        <Macro Name='Scheduler:  "Vera_night"' Enabled="False" Expanded="True">
            <Action Name='Scheduler:  "Vera_night"'>
                Scheduler.SchedulerAction(['0600', '0830', '----', '----', '----', '----', '0600', '0830', '----', '----', '----', '----', '0600', '0830', '----', '----', '----', '----', '0600', '0830', '----', '----', '----', '----', '0600', '0830', '----', '----', '----', '----', '0830', '1130', '----', '----', '----', '----', '0830', '1130', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----'], u'Vera_night', u'Vera_night ON', u'Vera_night OFF', '0600', '----', '----', '0830', '----', '----', '0600', '----', '----', '0830', '----', '----', '0600', '----', '----', '0830', '----', '----', '0600', '----', '----', '0830', '----', '----', '0600', '----', '----', '0830', '----', '----', '0830', '----', '----', '1130', '----', '----', '0830', '----', '----', '1130', '----', '----', '----', '----', '----', '----', '----', '----', u'0101,0501,0606,1224,1225,1226,1231', u'0106,0321,0324,0620', 2, 2, 1.5, False, False, False, 30, '----', '----', '----', '----', '----', '----', False)
            </Action>
        </Macro>
        <Macro Name='Scheduler:  "Verasfonster"' Enabled="False" Expanded="True">
            <Action Name='Scheduler:  "Verasfonster"'>
                Scheduler.SchedulerAction(['0650', '2130', '----', '----', '----', '----', '0650', '2130', '----', '----', '----', '----', '0650', '2130', '----', '----', '----', '----', '0650', '2130', '----', '----', '----', '----', '0650', '2200', '----', '----', '----', '----', '0930', '2200', '----', '----', '----', '----', '0930', '2130', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----'], u'Verasfonster', u'Verasfonster ON', u'Verasfonster OFF', '0650', '----', '----', '2130', '----', '----', '0650', '----', '----', '2130', '----', '----', '0650', '----', '----', '2130', '----', '----', '0650', '----', '----', '2130', '----', '----', '0650', '----', '----', '2200', '----', '----', '0930', '----', '----', '2200', '----', '----', '0930', '----', '----', '2130', '----', '----', '----', '----', '----', '----', '----', '----', u'0101,0501,0606,1224,1225,1226,1231', u'0106,0321,0324,0620', 2, 2, 1.5, False, False, False, 30)
            </Action>
        </Macro>
        <Macro Name='Scheduler:  "Ivarsfonster"' Enabled="False" Expanded="True">
            <Action Name='Scheduler:  "Ivarsfonster"'>
                Scheduler.SchedulerAction(['0650', '2000', '----', '----', '----', '----', '0650', '2000', '----', '----', '----', '----', '0650', '2000', '----', '----', '----', '----', '0650', '2000', '----', '----', '----', '----', '0650', '2100', '----', '----', '----', '----', '0930', '2100', '----', '----', '----', '----', '0930', '2000', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----'], u'Ivarsfonster', u'Ivarsfonster ON', u'Ivarsfonster OFF', '0650', '----', '----', '2000', '----', '----', '0650', '----', '----', '2000', '----', '----', '0650', '----', '----', '2000', '----', '----', '0650', '----', '----', '2000', '----', '----', '0650', '----', '----', '2100', '----', '----', '0930', '----', '----', '2100', '----', '----', '0930', '----', '----', '2000', '----', '----', '----', '----', '----', '----', '----', '----', u'0101,0501,0606,1224,1225,1226,1231', u'0106,0321,0324,0620', 2, 2, 1.5, False, False, False, 30)
            </Action>
        </Macro>
        <Macro Name='Scheduler:  "Sovrumsfonster"' Enabled="False" Expanded="True">
            <Action Name='Scheduler:  "Sovrumsfonster"'>
                Scheduler.SchedulerAction(['0650', '2215', '----', '----', '----', '----', '0650', '2215', '----', '----', '----', '----', '0650', '2215', '----', '----', '----', '----', '0650', '2215', '----', '----', '----', '----', '0650', '2215', '----', '----', '----', '----', '0930', '2215', '----', '----', '----', '----', '0930', '2215', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----'], u'Sovrumsfonster', u'Sovrumsfonster ON', u'Sovrumsfonster OFF', '0650', '----', '----', '2215', '----', '----', '0650', '----', '----', '2215', '----', '----', '0650', '----', '----', '2215', '----', '----', '0650', '----', '----', '2215', '----', '----', '0650', '----', '----', '2215', '----', '----', '0930', '----', '----', '2215', '----', '----', '0930', '----', '----', '2215', '----', '----', '----', '----', '----', '----', '----', '----', u'0101,0501,0606,1224,1225,1226,1231', u'0106,0321,0324,0620', 2, 2, 1.5, False, False, False, 30)
            </Action>
        </Macro>
        <Macro Name="Scheduler:  kok_varme" Expanded="True">
            <Action Enabled="False">
                Scheduler.SchedulerAction(['0630', '0800', '1510', '1700', '----', '----', '0630', '0800', '1500', '1700', '----', '----', '0630', '0800', '1509', '1700', '----', '----', '0630', '0800', '1508', '1700', '----', '----', '0630', '0800', '1500', '1700', '----', '----', '0800', '1000', '----', '----', '----', '----', '0800', '1000', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----'], u'kok_varme', u'kok_varme ON', u'kok_varme OFF', '0630', '1510', '----', '0800', '1700', '----', '0630', '1500', '----', '0800', '1700', '----', '0630', '1509', '----', '0800', '1700', '----', '0630', '1508', '----', '0800', '1700', '----', '0630', '1500', '----', '0800', '1700', '----', '0800', '----', '----', '1000', '----', '----', '0800', '----', '----', '1000', '----', '----', '----', '----', '----', '----', '----', '----', u'0101,0501,0606,1224,1225,1226,1231', u'0106,0321,0324,0620', 2, 2, 1.5, False, False, False, 30)
            </Action>
        </Macro>
        <Macro Name='Scheduler:  "Schema"' Expanded="True">
            <Action>
                Scheduler.SchedulerAction(['0645', '2300', '----', '----', '----', '----', '0645', '2300', '----', '----', '----', '----', '0645', '2300', '----', '----', '----', '----', '0645', '2300', '----', '----', '----', '----', '0645', '2359', '----', '----', '----', '----', '0830', '2359', '----', '----', '----', '----', '0830', '2300', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----', '----'], u'Schema', u'Schema ON', u'Schema OFF', '0645', '----', '----', '2300', '----', '----', '0645', '----', '----', '2300', '----', '----', '0645', '----', '----', '2300', '----', '----', '0645', '----', '----', '2300', '----', '----', '0645', '----', '----', '2359', '----', '----', '0830', '----', '----', '2359', '----', '----', '0830', '----', '----', '2300', '----', '----', '----', '----', '----', '----', '----', '----', u'0101,0501,0606,1224,1225,1226,1231', u'0106,0321,0324,0620', 2, 2, 1.5, False, False, False, 30, '----', '----', '----', '----', '----', '----', False)
            </Action>
        </Macro>
        <Folder Name="SchedulGhost">
            <Macro Name="Adjust and start egg timer" Expanded="True">
                <Action>
                    SchedulGhost.SetEggTimer()
                </Action>
            </Macro>
            <Macro Name="Start egg timer" Expanded="True">
                <Action>
                    SchedulGhost.StartEggTimer()
                </Action>
            </Macro>
            <Macro Name="Show currently running egg-timers" Expanded="True">
                <Action>
                    SchedulGhost.ShowRunningEggTimers()
                </Action>
            </Macro>
            <Macro Name="Abort egg timer(s)" Expanded="True">
                <Action>
                    SchedulGhost.AbortEggTimers()
                </Action>
            </Macro>
            <Macro Name="Show SchedulGhost" Expanded="True">
                <Action>
                    SchedulGhost.ShowSchedulGhost()
                </Action>
            </Macro>
            <Macro Name="Hide SchedulGhost" Expanded="True">
                <Action>
                    SchedulGhost.HideSchedulGhost()
                </Action>
            </Macro>
            <Macro Name="Enable schedule" Expanded="True">
                <Action>
                    SchedulGhost.EnableSchedule()
                </Action>
            </Macro>
            <Macro Name="Disable schedule" Expanded="True">
                <Action>
                    SchedulGhost.DisableSchedule()
                </Action>
            </Macro>
            <Macro Name="Enable all schedules" Expanded="True">
                <Action>
                    SchedulGhost.EnableAll()
                </Action>
            </Macro>
            <Macro Name="Disable all schedules" Expanded="True">
                <Action>
                    SchedulGhost.DisableAll()
                </Action>
            </Macro>
            <Macro Name="Get schedule" Expanded="True">
                <Action>
                    SchedulGhost.GetSchedule()
                </Action>
            </Macro>
            <Macro Name="Add schedule" Expanded="True">
                <Action>
                    SchedulGhost.AddSchedule()
                </Action>
            </Macro>
            <Macro Name="Delete schedule" Expanded="True">
                <Action>
                    SchedulGhost.DeleteSchedule()
                </Action>
            </Macro>
            <Macro Name="Run schedule immediately" Expanded="True">
                <Action>
                    SchedulGhost.RunScheduleImmediately(u'Hourly', False)
                </Action>
            </Macro>
        </Folder>
        <Folder Name="Lampor" Expanded="True">
            <Macro Name="TellStickDuo: Turn on lampor">
                <Event Name="Main.Sunset" Enabled="False" />
                <Action>
                    TellStickDuo.TurnOn(2)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    TellStickDuo.TurnOn(4)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    TellStickDuo.TurnOn(12)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    TellStickDuo.TurnOn(6)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off lampor">
                <Event Name="Main.Sunrise" Enabled="False" />
                <Action>
                    TellStickDuo.TurnOff(2)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    TellStickDuo.TurnOff(4)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    TellStickDuo.TurnOff(12)
                </Action>
                <Action>
                    EventGhost.Wait(2.0)
                </Action>
                <Action>
                    TellStickDuo.TurnOff(6)
                </Action>
            </Macro>
            <Macro Name="SunTracker: Sunstate" Expanded="True">
                <Action>
                    EventGhost.PythonCommand('Suntracker.GetContentsOfVariable()')
                </Action>
            </Macro>
        </Folder>
        <Folder Name="sovrumsfönster" Expanded="True">
            <Macro Name="TellStickDuo: Turn on Sovrum_extra" Expanded="True">
                <Event Name="Main.Sovrumsfonster ON" />
                <Action>
                    TellStickDuo.TurnOn(37)
                </Action>
            </Macro>
            <Macro Name="TellStickDuo: Turn off Sovrum_extra" Expanded="True">
                <Event Name="Main.Sovrumsfonster OFF" />
                <Action>
                    TellStickDuo.TurnOff(37)
                </Action>
            </Macro>
        </Folder>
    </Folder>
    <Macro Name="Ping: Add Host: 192.168.1.62" Enabled="False">
        <Action>
            PingPlugin.AddHost(u'192.168.1.62', u'DB2', 200, 90, u'DB2_alive', u'DB2_dead', 1, 2)
        </Action>
    </Macro>
    <Folder Name="Growl" Enabled="False">
        <Macro Name="Growl: Notify: Test: Title: dESCRIPTION" Expanded="True">
            <Action>
                Growl.Notify(u'Test', u'Title', u'Fr\xe5n Eventghost', u'C:\\Users\\Public\\Pictures\\Sample Pictures\\Penguins.jpg', False, 0, 'MB2nnLoGMek=', False)
            </Action>
        </Macro>
    </Folder>
    <Macro Name="MySQL version" Enabled="False" Expanded="True">
        <Action>
            EventGhost.PythonScript(u'#!/usr/bin/python\n\nimport MySQLdb\n\n# Open database connection\ndb = MySQLdb.connect("localhost","temp","temp","MySQL56" )\n\n# prepare a cursor object using cursor() method\ncursor = db.cursor()\n\n# execute SQL query using execute() method.\ncursor.execute("SELECT VERSION()")\n\n# Fetch a single row using fetchone() method.\ndata = cursor.fetchone()\n\nprint "Database version : %s " % data\n\n# disconnect from server\ndb.close()#!/usr/bin/python\n\nimport MySQLdb\n\n# Open database connection\ndb = MySQLdb.connect("localhost","testuser","test123","TESTDB" )\n\n# prepare a cursor object using cursor() method\ncursor = db.cursor()\n\n# execute SQL query using execute() method.\ncursor.execute("SELECT VERSION()")\n\n# Fetch a single row using fetchone() method.\ndata = cursor.fetchone()\n\nprint "Database version : %s " % data\n\n# disconnect from server\ndb.close()')
        </Action>
    </Macro>
    <Macro Name="MySQL Create database test" Enabled="False" Expanded="True">
        <Action>
            EventGhost.PythonScript(u"#!/usr/bin/python\n\nimport MySQLdb\ndb=MySQLdb.connect(user='root') \nc=db.cursor() \nc.execute('CREATE DATABASE test') ")
        </Action>
    </Macro>
    <Folder Name="Keyboard Emulation" id="771" Enabled="False">
        <Macro Name="Up" id="772" Enabled="False">
            <Event Name="Up" />
            <Action>
                Window.SendKeys(u'{Up}')
            </Action>
            <Action>
                EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
            </Action>
        </Macro>
        <Macro Name="Down" id="776" Enabled="False">
            <Event Name="Down" />
            <Action>
                Window.SendKeys(u'{Down}')
            </Action>
            <Action>
                EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
            </Action>
        </Macro>
        <Macro Name="Right" id="780" Enabled="False">
            <Event Name="Right" />
            <Action>
                Window.SendKeys(u'{Right}')
            </Action>
            <Action>
                EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
            </Action>
        </Macro>
        <Macro Name="Left" id="784" Enabled="False">
            <Event Name="Left" />
            <Action>
                Window.SendKeys(u'{Left}')
            </Action>
            <Action>
                EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
            </Action>
        </Macro>
        <Macro Name="Ok -&gt; Enter Key" id="788">
            <Event Name="Ok" />
            <Action>
                Window.SendKeys(u'{Enter}')
            </Action>
        </Macro>
        <Macro Name="Delete -&gt; Escape Key" Enabled="False">
            <Event Name="Delete" />
            <Action>
                Window.SendKeys(u'{Esc}')
            </Action>
        </Macro>
        <Macro Name="Power -&gt; Alt+F4" Enabled="False">
            <Event Name="Power" />
            <Action>
                Window.SendKeys(u'{Alt+F4}')
            </Action>
        </Macro>
        <Macro Name="Forward -&gt; Tabulator" Enabled="False">
            <Event Name="Forward" />
            <Action>
                Window.SendKeys(u'{Tab}')
            </Action>
        </Macro>
        <Macro Name="Rewind -&gt; Shift+Tabulator" Enabled="False">
            <Event Name="Rewind" />
            <Action>
                Window.SendKeys(u'{Shift+Tab}')
            </Action>
        </Macro>
        <Macro Name="ChannelUp -&gt; Plus" Enabled="False">
            <Event Name="ChannelUp" />
            <Action>
                Window.SendKeys(u'+')
            </Action>
        </Macro>
        <Macro Name="ChannelDown -&gt; Minus" Enabled="False">
            <Event Name="ChannelDown" />
            <Action>
                Window.SendKeys(u'-')
            </Action>
        </Macro>
        <Macro Name="Rename -&gt; Start Menu" Enabled="False">
            <Event Name="Rename" />
            <Action>
                Window.SendKeys(u'{Win}')
            </Action>
        </Macro>
        <Macro Name="Play -&gt; Space" Enabled="False">
            <Event Name="Play" />
            <Action>
                Window.SendKeys(u'{Space}')
            </Action>
        </Macro>
    </Folder>
    <Folder Name="XBMC" Enabled="False">
        <Macro Name="Up">
            <Action>
                XBMC.Up()
            </Action>
        </Macro>
        <Macro Name="Down" Expanded="True">
            <Action>
                XBMC.Down()
            </Action>
        </Macro>
        <Macro Name="Left" Expanded="True">
            <Action>
                XBMC.Left()
            </Action>
        </Macro>
        <Macro Name="Right" Expanded="True">
            <Action>
                XBMC.Right()
            </Action>
        </Macro>
        <Macro Name="Page Up" Expanded="True">
            <Action>
                XBMC.PageUp()
            </Action>
        </Macro>
        <Macro Name="Page Down">
            <Action>
                XBMC.PageDown()
            </Action>
        </Macro>
        <Macro Name="Select" Expanded="True">
            <Action>
                XBMC.Select()
            </Action>
        </Macro>
        <Macro Name="Previous Menu">
            <Action>
                XBMC.PreviousMenu()
            </Action>
        </Macro>
        <Macro Name="Context Menu">
            <Action>
                XBMC.ContextMenu()
            </Action>
        </Macro>
        <Macro Name="Play">
            <Event Name="HID.Button.6" />
            <Event Name="USB_UIRT.NEC.601FE11E" />
            <Action>
                XBMC.Play()
            </Action>
        </Macro>
        <Macro Name="Pause" Expanded="True">
            <Action>
                XBMC.Pause()
            </Action>
        </Macro>
        <Macro Name="Stop" Expanded="True">
            <Event Name="HID.Button.17" />
            <Event Name="USB_UIRT.NEC.601FB14E" />
            <Action>
                XBMC.Stop()
            </Action>
        </Macro>
        <Macro Name="Fast Forward" Expanded="True">
            <Event Name="USB_UIRT.NEC.601FD52A" />
            <Event Name="HID.Button.16" />
            <Action>
                XBMC.FastForward()
            </Action>
        </Macro>
        <Macro Name="Rewind" Expanded="True">
            <Event Name="USB_UIRT.NEC.601F956A" />
            <Event Name="HID.Button.15" />
            <Action>
                XBMC.Rewind()
            </Action>
        </Macro>
        <Macro Name="Skip Next" Expanded="True">
            <Event Name="USB_UIRT.NEC.601F916E" />
            <Action>
                XBMC.SkipNext()
            </Action>
        </Macro>
        <Macro Name="Skip Previous" Expanded="True">
            <Event Name="USB_UIRT.NEC.601FA15E" />
            <Action>
                XBMC.SkipPrevious()
            </Action>
        </Macro>
        <Macro Name="Record" Expanded="True">
            <Action>
                XBMC.Record()
            </Action>
        </Macro>
        <Macro Name="Big Skip Backward">
            <Action>
                XBMC.BigSkipBackward()
            </Action>
        </Macro>
        <Macro Name="Big Skip Forward">
            <Action>
                XBMC.BigSkipForward()
            </Action>
        </Macro>
        <Macro Name="Small Skip Backward">
            <Action>
                XBMC.SmallSkipBackward()
            </Action>
        </Macro>
        <Macro Name="Small Skip Forward">
            <Action>
                XBMC.SmallSkipForward()
            </Action>
        </Macro>
        <Macro Name="Aspect Ratio">
            <Action>
                XBMC.AspectRatio()
            </Action>
        </Macro>
        <Macro Name="Codec Info">
            <Action>
                XBMC.CodecInfo()
            </Action>
        </Macro>
        <Macro Name="Full Screen">
            <Action>
                XBMC.FullScreen()
            </Action>
        </Macro>
        <Macro Name="Repeat" Expanded="True">
            <Action>
                XBMC.Repeat()
            </Action>
        </Macro>
        <Macro Name="Show Subtitles">
            <Action>
                XBMC.ShowSubtitles()
            </Action>
        </Macro>
        <Macro Name="Show OSD">
            <Action>
                XBMC.OSD()
            </Action>
        </Macro>
        <Macro Name="Show Time">
            <Action>
                XBMC.ShowTime()
            </Action>
        </Macro>
        <Macro Name="Volume Up">
            <Action>
                XBMC.VolumeUp()
            </Action>
        </Macro>
        <Macro Name="Volume Down">
            <Action>
                XBMC.VolumeDown()
            </Action>
        </Macro>
        <Macro Name="Mute">
            <Action>
                XBMC.Mute()
            </Action>
        </Macro>
        <Macro Name="Scroll Up">
            <Action>
                XBMC.ScrollUp()
            </Action>
        </Macro>
        <Macro Name="Scroll Down">
            <Action>
                XBMC.ScrollDown()
            </Action>
        </Macro>
        <Macro Name="Close">
            <Action>
                XBMC.Close()
            </Action>
        </Macro>
        <Macro Name="Number 0">
            <Action>
                XBMC.Number0()
            </Action>
        </Macro>
        <Macro Name="Number 1">
            <Action>
                XBMC.Number1()
            </Action>
        </Macro>
        <Macro Name="Number 2">
            <Action>
                XBMC.Number2()
            </Action>
        </Macro>
        <Macro Name="Number 3">
            <Action>
                XBMC.Number3()
            </Action>
        </Macro>
        <Macro Name="Number 4">
            <Action>
                XBMC.Number4()
            </Action>
        </Macro>
        <Macro Name="Number 5">
            <Action>
                XBMC.Number5()
            </Action>
        </Macro>
        <Macro Name="Number 6">
            <Action>
                XBMC.Number6()
            </Action>
        </Macro>
        <Macro Name="Number 7">
            <Action>
                XBMC.Number7()
            </Action>
        </Macro>
        <Macro Name="Number 8">
            <Action>
                XBMC.Number8()
            </Action>
        </Macro>
        <Macro Name="Number 9">
            <Action>
                XBMC.Number9()
            </Action>
        </Macro>
        <Macro Name="Playlist">
            <Action>
                XBMC.Playlist()
            </Action>
        </Macro>
        <Macro Name="Queue">
            <Action>
                XBMC.Queue()
            </Action>
        </Macro>
        <Macro Name="Move Item Up">
            <Action>
                XBMC.MoveItemUp()
            </Action>
        </Macro>
        <Macro Name="Move Item Down">
            <Action>
                XBMC.MoveItemDown()
            </Action>
        </Macro>
        <Macro Name="Delete">
            <Action>
                XBMC.Delete()
            </Action>
        </Macro>
        <Macro Name="Random">
            <Action>
                XBMC.Random()
            </Action>
        </Macro>
        <Macro Name="Repeat">
            <Action>
                XBMC.Repeat()
            </Action>
        </Macro>
        <Macro Name="Party Mode">
            <Action>
                XBMC.PartyMode()
            </Action>
        </Macro>
        <Macro Name="Parent Dir">
            <Action>
                XBMC.ParentDir()
            </Action>
        </Macro>
        <Macro Name="Info">
            <Action>
                XBMC.Info()
            </Action>
        </Macro>
        <Macro Name="Take Screen Shot">
            <Action>
                XBMC.TakeScreenShot()
            </Action>
        </Macro>
        <Macro Name="Eject Tray">
            <Action>
                XBMC.EjectTray()
            </Action>
        </Macro>
        <Macro Name="Play DVD">
            <Action>
                XBMC.PlayDVD()
            </Action>
        </Macro>
        <Macro Name="Show Home Screen">
            <Action>
                XBMC.Home()
            </Action>
        </Macro>
        <Macro Name="Show Videos Screen">
            <Action>
                XBMC.MyVideos()
            </Action>
        </Macro>
        <Macro Name="Show Music Screen">
            <Action>
                XBMC.MyMusic()
            </Action>
        </Macro>
        <Macro Name="Show Pictures Screen">
            <Action>
                XBMC.MyPictures()
            </Action>
        </Macro>
        <Macro Name="Show Movies Screen">
            <Action>
                XBMC.MyMovies()
            </Action>
        </Macro>
        <Macro Name="Show TV Shows Screen">
            <Action>
                XBMC.MyTVShows()
            </Action>
        </Macro>
        <Macro Name="Show Weather Screen">
            <Action>
                XBMC.Weather()
            </Action>
        </Macro>
        <Macro Name="Show Settings Screen">
            <Action>
                XBMC.Settings()
            </Action>
        </Macro>
        <Macro Name="Show Favorites Screen">
            <Action>
                XBMC.Favorites()
            </Action>
        </Macro>
        <Macro Name="Show System Info Screen">
            <Action>
                XBMC.SystemInfo()
            </Action>
        </Macro>
        <Macro Name="Last FM Love">
            <Action>
                XBMC.LastFMLove()
            </Action>
        </Macro>
        <Macro Name="Last FM Ban">
            <Action>
                XBMC.LastFMBan()
            </Action>
        </Macro>
        <Macro Name="Update Video Library">
            <Action>
                XBMC.UpdateVideoLibrary()
            </Action>
        </Macro>
        <Macro Name="Update Music Library">
            <Action>
                XBMC.UpdateMusicLibrary()
            </Action>
        </Macro>
        <Macro Name="Show Shutdown Menu">
            <Action>
                XBMC.ShutdownMenu()
            </Action>
        </Macro>
        <Macro Name="Quit XBMC">
            <Event Name="USB_UIRT.NEC.601FD12E" />
            <Action>
                XBMC.Quit()
            </Action>
        </Macro>
        <Macro Name="Shutdown Computer">
            <Action>
                XBMC.Shutdown()
            </Action>
        </Macro>
        <Macro Name="Powerdown Computer">
            <Action>
                XBMC.Powerdown()
            </Action>
        </Macro>
        <Macro Name="Suspend Computer">
            <Action>
                XBMC.Suspend()
            </Action>
        </Macro>
        <Macro Name="Hibernate Computer">
            <Action>
                XBMC.Hibernate()
            </Action>
        </Macro>
        <Macro Name="Reset Computer">
            <Action>
                XBMC.Reset()
            </Action>
        </Macro>
        <Macro Name="Start Program: XBMC.exe">
            <Event Name="USB_UIRT.NEC.7B04B44A" />
            <Action>
                System.Execute(u'C:\\Program\\XBMC\\XBMC.exe', u'-fs -p', 2, False, 2, u'')
            </Action>
        </Macro>
        <Macro Name="Up" Expanded="True">
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(772))
            </Action>
        </Macro>
        <Macro Name="Ner" Expanded="True">
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(776))
            </Action>
        </Macro>
        <Macro Name="Vänster" Expanded="True">
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(784))
            </Action>
        </Macro>
        <Macro Name="Höger" Expanded="True">
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(780))
            </Action>
        </Macro>
        <Macro Name="Enter" Expanded="True">
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(788))
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: {UP}" Expanded="True">
            <Event Name="USB_UIRT.NEC.7B04A45A" />
            <Action>
                Window.SendKeys(u'{UP}', False)
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: {DOWN}" Expanded="True">
            <Event Name="USB_UIRT.NEC.7B04E41A" />
            <Action>
                Window.SendKeys(u'{DOWN}', False)
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: {LEFT}" Expanded="True">
            <Event Name="USB_UIRT.NEC.7B04847A" />
            <Action>
                Window.SendKeys(u'{LEFT}', False)
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: {RIGHT}" Expanded="True">
            <Event Name="USB_UIRT.NEC.7B04C43A" />
            <Action>
                Window.SendKeys(u'{RIGHT}', False)
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: {Enter}" Expanded="True">
            <Event Name="USB_UIRT.NEC.7B04946A" />
            <Action>
                Window.SendKeys(u'{Enter}', False)
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: Esc" Expanded="True">
            <Event Name="USB_UIRT.NEC.7B048778" />
            <Action>
                Window.SendKeys(u'{Escape}', False)
            </Action>
        </Macro>
    </Folder>
    <Folder Name="Pushbullet" Expanded="True">
        <Macro Name="PushBullet: Push" Expanded="True">
            <Action>
                PushBullet.Push(0, [[u'Eventghost', u'ujBeJQ4I72qsjzZuK9JmHA', 'pc', False], [u'Safari', u'ujBeJQ4I72qsjz7O3P0Jl6', 'pc', False], [u'bon iPhone6', u'ujBeJQ4I72qsjAiVsKnSTs', 'pc', True]], [u'Hej', u'sj\xe4lv'], u'klart')
            </Action>
        </Macro>
        <Macro Name="&lt;unnamed macro&gt;" />
    </Folder>
</EventGhost>
