Use PaperUI to add the mqtt 2.4 binding in Add-ons. Since your using Esp devices maybe this topic will help with your configuration.