I do this with a Shelly 1L configured to use MQTT
It has 2 sensors and a switch (that is used to control 5 absolutely awesome Ansell batten lights).
The Shelly can fire and timer the lights natively, or use HA to do it and more.
HA sends 2 push notifications with the 2 camera images if the door opens and we’re away.