I'm working on a similar nodemcu based system that was originally proposed by Bruh Automation https://www.youtube.com/watch?v=jpjfVc-9IrQ later updated by digiblurDIY https://www.youtube.com/watch?v=9Yu57vjz7AY to use ESPhome https://esphome.io/ with no progamming.
This looks interesting, but somehow it always seems wasteful to use full blown Linux servers for this stuff, so I'm dabbling in something smaller. :)