# Homeyscript and Samsung TV

**URL:** <https://community.homey.app/t/homeyscript-and-samsung-tv/4757>\
**Category:** Devices\
**Created:** [December 1, 2018, 3:26pm UTC](https://community.homey.app/t/homeyscript-and-samsung-tv/4757 "2018-12-01T15:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucaz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lucaz/32/47639_2.png) [@Lucaz](https://community.homey.app/u/Lucaz)\
**Post date:** [December 1, 2018, 3:26pm UTC](https://community.homey.app/t/homeyscript-and-samsung-tv/4757/1 "2018-12-01T15:26:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ralph\_Lemarechal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralph_lemarechal/32/11429_2.png) [@Ralph\_Lemarechal](https://community.homey.app/u/Ralph_Lemarechal)\
**Post date:** [May 27, 2019, 3:04pm UTC](https://community.homey.app/t/homeyscript-and-samsung-tv/4757/2 "2019-05-27T15:04:22Z")

</div>

I’'m surprised there are not more people with a Samsung TV wanting to take advantage of Homey.
