# Error 409 when controlling a TV via SmartThings API

**URL:** <https://community.smartthings.com/t/error-409-when-controlling-a-tv-via-smartthings-api/261928>\
**Category:** Support\
**Created:** [April 11, 2023, 10:41am UTC](https://community.smartthings.com/t/error-409-when-controlling-a-tv-via-smartthings-api/261928 "2023-04-11T10:41:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [April 11, 2023, 11:35pm UTC](https://community.smartthings.com/t/error-409-when-controlling-a-tv-via-smartthings-api/261928/2 "2023-04-11T23:35:22Z")

</div>

Hi, @AdyR

Has this user tried to send a command directly to the device using other tools or does it happen with every command to it?  
OCF devices don’t work on the API level but on the plugin level (ST app), [here’s more info](https://community.smartthings.com/t/get-info-from-api/239841/9#more-details-1) about that.  
So, there are some commands that might not behave as expected or be accepted, it seems there are no issues with the syntax.  
If it happens with every tool, for example, the user could try to use the [ST CLI](https://developer.smartthings.com/docs/sdks/cli/introduction), then, it is being rejected by the device. Here’s an example of that command:

```auto
smartthings devices:commands deviceID "main:mediaInputSource:setInputSource(\"HDMI1\")"

```

---

_[View the full topic](https://community.smartthings.com/t/error-409-when-controlling-a-tv-via-smartthings-api/261928)._
