You can probably fork the existing python libraries and add that functionality.
Did you ever manage to complete this?
No I did not. I never got the mqtt part and recovery from fail to work properly. It is doable but beyond my programming skills. An ESPhome would be the best solution, but probably the hardest to get BSEC to load. I haven’t tested but check this one. BME680 using the official Bosch Sensortec BSEC Library
I’ve carried on with the BSEC library usage in https://github.com/alexh-name/bsec_bme680_linux and handled the MQTT integration as well. Please see my post at https://community.home-assistant.io/t/bme680-for-air-quality-usage-and-interpretation/607323