Connect HC-05 and esp8266 with MQTT protocol
I have Tasmota running in my gateway which has an esp8266 and a bluetooth module. Worked out of the box. The bluetooth module is not a HC05 though. You might need to write some code to string it together. Tasmota has MQTT implemented, so it is just a matter of how you translate what comes from the bluetooth module to a JSON packet to be sent via MQTT and vice-versa.