Thanks for the cluestick!

Can you read the filaments installed in the printer over MQTT too?

Yes

Here's a good resource: https://github.com/Doridian/OpenBambuAPI