Access heart rate data of external device (e. g. HRM Run)

I'd like to build a data field that uses the heart rate data of a device like HRM Run if it is connected, or the heart rate sensor of the watch if no other device is available.

I wonder if i get the hrm run heart rate automatically via the activity info parameter in function COMPUTE? Or how do i read the heart rate data from a connected device? Thanks!