Homey Community

Homeyscript and Samsung TV


#1

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; })
console.log(device);
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
‘volume_mute’,
‘volume_up’,
‘volume_down’,
‘channel_up’,
‘channel_down’

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,
Lucaz