Import InfluxDB energy data from MBUS energy meters into Home Assistant

We need to read the InfluxDB data from all our MBUS energy meters as Home Assistant energy data.