Tuya component - query product information

Hi.
Is there a way to access information from the string received with tuya “Query product information”?

I’m interested in the firmware version. For example:

Product: '{"p":"blankblankblank","v":"1.0.7","m":0}'

Is the version stored somewhere?

Cheers,
Mateusz

It is in the logs Tuya MCU — ESPHome

Thanks.
But the question was if there was a way to access it from within esphome. Create a text sensor or something like that.

Cheers,
Mateusz

Yes, I have seen people create text sensors from logs. If I can find an example, I’ll post again.