Hadn’t thought of that. I use my cameras for that. A diy solution might be in ESPHome projects. I’ll have to look after shopping today. Maybe @markus can offer something after he wakes.
Yes I believe something like that might do nicely. He said mqtt so could be nice. Wifi works for me. I find my wifi devices to be the most stable part of my home automation despite seeing many opinion that they are bad.
As simple as it is I don’t know if I’d be able to put it together… Lol