# Setting device preferences in CLI

**URL:** <https://community.smartthings.com/t/setting-device-preferences-in-cli/266132>\
**Category:** Developer Programs\
**Created:** [July 9, 2023, 4:35pm UTC](https://community.smartthings.com/t/setting-device-preferences-in-cli/266132 "2023-07-09T16:35:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_DeLee](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jon_delee/32/181058_2.png) [@Jon\_DeLee](https://community.smartthings.com/u/Jon_DeLee)\
**Post date:** [July 9, 2023, 4:35pm UTC](https://community.smartthings.com/t/setting-device-preferences-in-cli/266132/1 "2023-07-09T16:35:21Z")

</div>

Going more nuts that normal with ST. I can READ device preferences just fine in the CLI with

devices:preferences

and I get nice output like:

values:  
tempScale:  
preferenceType: string  
value: ‘1’  
tempTrigger:  
preferenceType: integer  
value: 12

But how do I SET one of the preferences on the device? For example, how would I change the tempTrigger to 12 and send it back to the device?

---

<div class="post-metadata">

**Author:** ![AlejandroPadilla](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/alejandropadilla/32/175701_2.png) [@AlejandroPadilla](https://community.smartthings.com/u/AlejandroPadilla)\
**Post date:** [July 10, 2023, 7:13pm UTC](https://community.smartthings.com/t/setting-device-preferences-in-cli/266132/2 "2023-07-10T19:13:26Z")

</div>

Hi @Jon_DeLee welcome to SmartThings Community

Unfortunately is not possible to set the value of a preference using the CLI or the API, only can set this value using SmartThing App.

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [July 10, 2023, 7:18pm UTC](https://community.smartthings.com/t/setting-device-preferences-in-cli/266132/3 "2023-07-10T19:18:45Z")

</div>

What’s the brand and model of the device? If it is hub connected, you can usually set preferences with a custom edge driver. 🤔

---

<div class="post-metadata">

**Author:** ![Jon\_DeLee](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jon_delee/32/181058_2.png) [@Jon\_DeLee](https://community.smartthings.com/u/Jon_DeLee)\
**Post date:** [July 10, 2023, 11:10pm UTC](https://community.smartthings.com/t/setting-device-preferences-in-cli/266132/4 "2023-07-10T23:10:36Z")

</div>

I have a SmartThings hub V2.

As I mentioned, I tried to set it with the settings on the custom driver but it seems that you have a bug there 0 is a 1, 1 is a 2, etc.

Jon

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [July 10, 2023, 11:12pm UTC](https://community.smartthings.com/t/setting-device-preferences-in-cli/266132/5 "2023-07-10T23:12:53Z")

</div>

Brand and model number of the device? And which edge driver is it using? Maybe it’s just a bug in the edge Driver. 🤔
