Homey Community

Homeyscript and Samsung TV


Hi All,
I’m trying to connect via homeyscript to my samsung television. I have installed Samsung app and running this script:

var devicename = ‘Samsung Afstandsbediening’;
let devices = await Homey.devices.getDevices()
var device = _.find(devices, function(o) { return o.name == devicename; })
device.setCapabilityValue(‘onoff’, true);
device.setCapabilityValue(‘volume_mute’, !device.state.onoff);
return true

But in the device driver there are only a limited commands available, like

How can i reach the other capabilities, which are available in the UI Flows? I assumed that since they are available in the flows, I must be able to call them in Homeyscript as well?
E.g. I want to move my cursor and click enter on the Samsung television.

Thank you,