This is your work, valued
arduino-home-assistant. ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.