Starting local Android app (Kodi) from HA

Hi, I am trying to get a card on my dashboard to start locally the Kodi program.
I have lineage OS with Kodi installed and running fine
I have a browser in full screen and would just like to start the kodi program from the dashboard.
I have tried intents and rest commands with no success.
Before I re-install linux and do it all by SSH can anyone show me some code to simply start kodi ?
Thanks in advance

Ok for anyone who wants to know how to do this:

Install a MQTT server on the HA
Enable MQTT on wall panel app
publish to wallpanel/mywallpanel/command
{‘url’: ‘intent:#Intent;launchFlags=0x10000000;component=org.xbmc.kodi/org.xbmc.kodi.Splash;end’}
This starts Kodi locally on the Lineage OS
once you exit Kodi it goes back to Lineage OS wallpanel app
Hope this helps someone out there making a media centre / HA touchscreen panel