For that workload, I’d use an ip can and offload the smarts to something like frigate running alongside the rest of my home automation stack. For smaller workloads it’s esp8266/32 all day long. Again, offloading the hard work to my home automation stack rubbing on decent hardware.