1. The meaning: expecting something to happen
S'attendre à quelque chose means thinking it will happen. The verb is reflexive: je m'attends, tu t'attends, il s'attend…
2. S'y attendre
You replace à + something with y: je m'y attends, je ne m'y attendais pas.
3. S'attendre à ce que + subjunctive
Before a clause: s'attendre à ce que, followed by the subjunctive.
4. Don't confuse: attendre and s'attendre à
Attendre means waiting until something happens. S'attendre à means expecting it to happen.