return {
    active = true,

    on = {
        devices = {
            'PC'
        }
    },

    logging = {
        level = domoticz.LOG_INFO,
        marker = "AWTRIX3_APP"
    },

    execute = function(domoticz, device)
        local targetDevice = domoticz.devices('AWTRIX3 - Power')

        if device.state == 'On' then
            if targetDevice.state ~= 'On' then
                targetDevice.switchOn()
                domoticz.log('Turned on AWTRIX3 - Power because PC is On.', domoticz.LOG_INFO)
            end
        elseif device.state == 'Off' then
            if targetDevice.state ~= 'Off' then
                targetDevice.switchOff()
                domoticz.log('Turned off AWTRIX3 - Power because PC is Off.', domoticz.LOG_INFO)
            end
        end
    end
}