I think this is what you would want.
You can do it with buildin flowcards, but i am using JSON handler app because you need way less flowcards:
Before the first flowcard, you would need the MQTT message recieved card. I am using a tag as example, because i don’t have MQTT.
Also, i am unsure what type is CO2, IAQ or GASres, i have asumed a number, but you can pick another type:
