Lol, pretty much what I suggested :D
Only difference is that I'd use an ESP, way too simple an application for a Pi. Also ESPHome makes it super simple to integrate with Home Assistant and only requires a fairly simple yaml file. Also ESPs are like $10 max