A door actuator, adapted to pivot a door leaf in at least one direction, with • a drive unit (4, 5, 18), and • a closer shaft for actuating the door leaf, which shaft is driven via a mechanical operative connection with the drive unit (4, 5, 18) by means of the drive unit into the at least one direction, wherein • the mechanical operative connection includes at least one element, which upon driving the closer shaft by means of the drive unit (4, 5, 18) performs a movement, and • an electrical switch is provided, which is mechanical actuated in such a manner by means of the mobile element that an electrical information on an opening position of the swing leaf is provided, wherein • the movement of the at least one element is a linear movement, • wherein the drive unit (4, 5, 18) includes furthermore a spring force accumulator with a closer spring, which - is operatively connected to the closer shaft, - is tensioned via an opening movement of the door leaf, and - is released via a closing movement of the door leaf, • wherein the mechanical operative connection is connected between the closer spring and the closer shaft, • wherein the mobile element is formed by means of a link plate carriage, which is mechanical operatively connected to a rod, which extends through the closer spring, • wherein the spring force accumulator extends along the direction of the movement of the link-plate carriage, respectively of the rod, characterized in that • a tappet, which cooperates with the electrical switch, is disposed in the area of a free end of the rod and facing away from the link-plate carriage, wherein • the operative connection between the tappet and the electrical switch comprises a rocker element, which is pivotably accommodated in the door actuator in a rocker axis, • wherein the rocker element has a first actuation conformation, which is controllable by means of the tappet, and • the rocker element has a second actuation conformation, which serves for triggering the electrical switch. • a drive unit (4, 5, 18), and • a closer shaft for actuating the door leaf, which shaft is driven via a mechanical operative connection with the drive unit (4, 5, 18) by means of the drive unit into the at least one direction, wherein • the mechanical operative connection includes at least one element, which upon driving the closer shaft by means of the drive unit (4, 5, 18) performs a movement, and • an electrical switch is provided, which is mechanical actuated in such a manner by means of the mobile element that an electrical information on an opening position of the swing leaf is provided, wherein • the movement of the at least one element is a linear movement, • wherein the drive unit (4, 5, 18) includes furthermore a spring force accumulator with a closer spring, which - is operatively connected to the closer shaft, - is tensioned via an opening movement of the door leaf, and - is released via a closing movement of the door leaf, - is operatively connected to the closer shaft, - is tensioned via an opening movement of the door leaf, and - is released via a closing movement of the door leaf, • wherein the mechanical operative connection is connected between the closer spring and the closer shaft, • wherein the mobile element is formed by means of a link plate carriage, which is mechanical operatively connected to a rod, which extends through the closer spring, • wherein the spring force accumulator extends along the direction of the movement of the link-plate carriage, respectively of the rod, • a tappet, which cooperates with the electrical switch, is disposed in the area of a free end of the rod and facing away from the link-plate carriage, wherein • the operative connection between the tappet and the electrical switch comprises a rocker element, which is pivotably accommodated in the door actuator in a rocker axis, • wherein the rocker element has a first actuation conformation, which is controllable by means of the tappet, and • the rocker element has a second actuation conformation, which serves for triggering the electrical switch.