Im in a similar situation having broken 4 ribs and my clavicle as well as a punctured lung and pulmonary embolism (moto accident...tank slap tossed me off).
I had my surgery a week ago and am able to get on the trainer for 20-30 min or so, easy pedaling.
In your case I think you most likely need 2 weeks before trying to push any pedals.
My buddy had his out last year and after 3 weeks he was riding with me, though easy riding but still, he was out.
First week is surely the worst.