Hello. I have a problem with connecting the time fan, I will present in the pictures everything how it looks for me and I am asking for help.
This is the fan I bought:

Here is the diagram in the manual
;
Previously, I had a regular on / off switch connected to the light bulb in the bathroom connected to the contact with two brown wires like this:

Now I let go of a new three-wire cable from this box where there is an on / off switch for the bathroom:

And this is what all the wires in this box with the on / off switch look like:

I have all electrics connected in boxes in sockets, including 3 yellow wires, as you can see, because they are probably from the socket in the bathroom and from the second switch in the bathroom. please help, how should I connect this fan.
This is the fan I bought:

Here is the diagram in the manual

Previously, I had a regular on / off switch connected to the light bulb in the bathroom connected to the contact with two brown wires like this:

Now I let go of a new three-wire cable from this box where there is an on / off switch for the bathroom:

And this is what all the wires in this box with the on / off switch look like:

I have all electrics connected in boxes in sockets, including 3 yellow wires, as you can see, because they are probably from the socket in the bathroom and from the second switch in the bathroom. please help, how should I connect this fan.