Ot: Kodi as SmartTV

Hi
I have an old Linux Kodi Server linked to TV over HDMI. All works fine, but my TV has no SmartTV (WLan) function.
Is there a possibility to use the SmartTV button with a communication app?
My idea: After pressing the button the app searches for SmartTV devices and find kodi like a TV. Go and use the stream over Kodi to the TV.
I know it’s offtopic, but your a pro with Android and Kodi (Python).
It’s only software and should be possible. Except some license shit.
If you know an addon or solution tell me please. Tks.
Regards

Nobody an idea or an addon to try.
Hmmm…