Now I wrote a story to send data the other way round. You can use this to have Domoticz send data to your ESP. That way you can make smart bulbs, smart power outlets, have your fan starting when temperature rises etc etc etc.
The ESP will have it's own webpage so you can controll it from its own webpage AND from Domoticz.
Story, schematics and source code on my weblog as it is a bit long to write down here:
http://lucstechblog.blogspot.com/2020/0 ... o-esp.html
Luc