Triumph make a cable that will allow you to connect to 12V (via fuse #3) and earth. Fuse #3 has a uninterrupted 12V and is not dependant on the ignition key.
The cable part number is A9938065 (GPS Connector kit).
You will need to raise the tank to find the connector, and then remove the...