I think you have the solution here in the link below (that you actually provided by yourself). You eeven have a 30 min video to enjoy. Use a ESP32 device and ESPHome, then communicate with NR via MQTT, dead simple, so efficient and stable
Yeah, you might be the first wanting this!? What more would you need, this is a solution using an ESP32 and MQTT. You have ready made yaml example files. If you are the first, you may have to do the work yourself. If you are not familiar with configuring & using ESPHome and ESP devices, well that would be a general starting point, well worth investing your own time
You have to do some self-reading of the documents you are linking to