Make classic door bell smart?

In case it uses a magnet, you can also simply use a door contact sensor (one part of it).
When the door bell rings and the magnetic field is established, the “door” sensor will be activated.
Video (in German though).