Voice assist, is it possible to get the entity device_class from the voice command?

Hello,.

I try to explain my idea, is it possible to Parse the entity that’s activated or switched over the voice command to esphome ?

I built my own esp32 voice assist microphone with esphome, and now I try to get on this device the device_class of the last switched or activated device over voice command.

Or get it in HA and send it to esphome ?

Thx

PUSH

No one?

@synthmike