Tracker support in motion controller component

I had to make a conversion script to handle pre 1.17 and after 1.17 version (with Get Device ID, or with Motion Controller)
It is not a shiny code, but it works

ConvertDeviceIdToMotionController

And the other way around
ConvertMotionControllerToDeviceId

Thank you for your tip!
I was wondering if there is a simpler way of doing this in the latest engine version?

Thank you for this!
I bind Oculus touch controller input with SteamVR to upload the build on steam. As they recommended that the game should pause when controller unplugged.
i did get connected controllers information but it did not toggle when controllers OFF , it remains true once it get the controller ON.
How to get the updated controller status while playing?