<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1640" Guid="{FACE0CC2-E837-4110-947D-84A22899F707}" Time="1388804811.34">
    <Autostart Name="Autostart" Expanded="True">
        <Plugin Identifier="OnkyoISCP" Guid="{5B3B8AEB-08D7-4FD0-8BEE-8FE50C231E09}" File="OnkyoISCP">
            gAJYDwAAADE5Mi4xNjguMTY4LjE5NHEATeDqWAEAAAAxcQGHcQIu
        </Plugin>
        <Action>
            OnkyoISCP.SendCommand(u'PWRQSTN')
        </Action>
    </Autostart>
    <Folder Name="Receiver" Expanded="True">
        <Folder Name="Checks if Receiver's On" Expanded="True">
            <Macro Name="Off" Expanded="True">
                <Event Name="OnkyoISCP.PWR00" />
                <Action>
                    EventGhost.PythonCommand(u'ReceiverOn = False')
                </Action>
            </Macro>
            <Macro Name="On" Expanded="True">
                <Event Name="OnkyoISCP.PWR01" />
                <Action>
                    EventGhost.PythonCommand(u'ReceiverOn = True')
                </Action>
            </Macro>
        </Folder>
        <Macro Name="Start" Expanded="True">
            <Event Name="Remote.Start" />
            <Action>
                EventGhost.PythonCommand(u'ReceiverOn == True')
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(18), 0, False)
            </Action>
            <Action Name="Run macros starting AV equipment">
                EventGhost.Comment()
            </Action>
        </Macro>
        <Macro Name="Receiver's On" id="18" Expanded="True">
            <Action Name="Run macros without starting everything">
                EventGhost.Comment()
            </Action>
        </Macro>
    </Folder>
</EventGhost>
