I did something similar with my Reolink doorbell, but used Home Assistant as the middleman.
When motion is detected, Home Assistant grabs a snapshot and sends it to MagicMirror. I use MMM-MessageCenter to display the notification and keep the snapshot in the message history, so I can still see who was at the door afterward.
[image: 1786470806528-8bc1bd39-c9be-42ff-bad6-c864b697f8e5-image-resized.jpeg]
I went with snapshots rather than live video since it is lightweight and, for my use, I mostly just wanted to see who came to the door.