Create custom voice commands with a variable, which from google home, command home assistant

hello everyone, I’ve been using home assistant for almost a year but I’m still a bit confused about using google assistant sdk, I configured the project correctly and I see my devices on the google home application but there are 2 things that are not clear to me, the first is setting an assistant on home assistant to use google assistant sdk for the speech, it has never worked for me and I was wondering if it is normal that it does not respond to common commands such as what time is it or what time is it, and the second most important is: can you create custom commands to say to google home mini for example, such as: play {film} on kodi where film is a variable? locally using the home assistant assistant I have already managed to create this script but I am still not satisfied with the voice commands despite using the microphone with esp32 and therefore I was thinking of using google home mini which is more precise to run this script but I can’t find a solution that works, if it is possible to do so. thanks in advance for the clarifications.

Could you clarify what equipment you’re using?

usage: a raspberry pi5 8 gb of ram where home assistant runs, I have integrated google assistant sdk and I use kodi on my android tv.

Is this any use?

thank you very much, I’ll start studying it right away, this would solve both of my 2 problems, so I can instruct google assistant to give me personalized answers, do you confirm?

the more specific question is: how can i pass a variable called google home mini to my home assistant script?