# \#codes

**URL:** https://community.smartthings.com/tag/codes/289.md

[Latest](https://community.smartthings.com/latest.md) · [Categories](https://community.smartthings.com/categories.md) · [Tags](https://community.smartthings.com/tags.md)

---

## [Handling Duplicate CodePins in the SmartThings Lock Codes API](https://community.smartthings.com/t/handling-duplicate-codepins-in-the-smartthings-lock-codes-api/291413)

<div class="topic-metadata">

**Author:** [@Yaroslav\_Mudryi](https://community.smartthings.com/u/Yaroslav_Mudryi)\
**Replies:** 8\
**Last updated:** [December 6, 2024, 7:37pm UTC](https://community.smartthings.com/t/handling-duplicate-codepins-in-the-smartthings-lock-codes-api/291413 "2024-12-06T19:37:01Z")

</div>

Hi SmartThings Community, I’m encountering an issue while setting lock codes using the SmartThings CLI and API. Here’s the situation: I use the following command to set a code for a specific slot: const command = { …

---

## [Getting codePin from device code](https://community.smartthings.com/t/getting-codepin-from-device-code/288579)

<div class="topic-metadata">

**Author:** [@Maksym\_Bohun](https://community.smartthings.com/u/Maksym_Bohun)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 7:17am UTC](https://community.smartthings.com/t/getting-codepin-from-device-code/288579 "2024-10-02T07:17:57Z")

</div>

Hello everyone! Is there a way to retrieve the codePin using the SmartThings CLI? Any guidance would be appreciated!

---

## [Smartlock Guest Access](https://community.smartthings.com/t/smartlock-guest-access/252144)

<div class="topic-metadata">

**Author:** [@GCrane1982](https://community.smartthings.com/u/GCrane1982)\
**Replies:** 1\
**Last updated:** [November 17, 2022, 12:58am UTC](https://community.smartthings.com/t/smartlock-guest-access/252144 "2022-11-17T00:58:15Z")

</div>

Hi there, is there any reason why smart lock guest access is not available in Australia? or is there any way to get access to it? I was previously using the Rboy smart app, however this no longer works now that Groovy i…

---

## [Can't add guest codes](https://community.smartthings.com/t/cant-add-guest-codes/196671)

<div class="topic-metadata">

**Author:** [@Fergus4444](https://community.smartthings.com/u/Fergus4444)\
**Replies:** 10\
**Last updated:** [June 9, 2020, 6:19pm UTC](https://community.smartthings.com/t/cant-add-guest-codes/196671 "2020-06-09T18:19:10Z")

</div>

Migrated to new app. I can lock and unlock my lock but when I try to add guest codes it says lock is not connected.

---

## [OnoffCmd Ability](https://community.smartthings.com/t/onoffcmd-ability/167534)

<div class="topic-metadata">

**Author:** [@Tom\_Chase](https://community.smartthings.com/u/Tom_Chase)\
**Replies:** 1\
**Last updated:** [July 6, 2019, 3:43am UTC](https://community.smartthings.com/t/onoffcmd-ability/167534 "2019-07-06T03:43:42Z")

</div>

Anyway to get this function to work? Almost like a momentary switch def on() { onOffCmd(device.deviceNetworkId, 255) cmds \>\> “delay:1000” cmds \>\> onOffCmd(device.deviceNetworkId, 0) } def off() { onOffCmd(device.d…

---

## [Change Background Color of Valuetile Depending on String Value](https://community.smartthings.com/t/change-background-color-of-valuetile-depending-on-string-value/107943)

<div class="topic-metadata">

**Author:** [@MarshTech](https://community.smartthings.com/u/MarshTech)\
**Replies:** 3\
**Last updated:** [December 1, 2017, 9:01am UTC](https://community.smartthings.com/t/change-background-color-of-valuetile-depending-on-string-value/107943 "2017-12-01T09:01:31Z")

</div>

I have a value tile that shows if a door is “open” or “closed”. I would like the tile background color to change based on the value: open or closed. The below code is from the smartthings docs. However, my values are str…

---

## [Invalid Welcome Code](https://community.smartthings.com/t/invalid-welcome-code/96363)

<div class="topic-metadata">

**Author:** [@Ali\_Haroon\_sheikh](https://community.smartthings.com/u/Ali_Haroon_sheikh)\
**Replies:** 4\
**Last updated:** [August 21, 2017, 9:09pm UTC](https://community.smartthings.com/t/invalid-welcome-code/96363 "2017-08-21T21:09:06Z")

</div>

My welcome code appears to be invalid even after I have done all forms of resets and reboots, what is the problem???

---

## [How imageCapture using Samsung smartcam](https://community.smartthings.com/t/how-imagecapture-using-samsung-smartcam/50595)

<div class="topic-metadata">

**Author:** [@vtminhvt](https://community.smartthings.com/u/vtminhvt)\
**Replies:** 1\
**Last updated:** [June 20, 2016, 3:37pm UTC](https://community.smartthings.com/t/how-imagecapture-using-samsung-smartcam/50595 "2016-06-20T15:37:15Z")

</div>

How imageCapture using Samsung smartcam. Helpme

---

## [New Device Type Handler for an IP addressable device: How to add your own device type to SmartThings from code](https://community.smartthings.com/t/new-device-type-handler-for-an-ip-addressable-device-how-to-add-your-own-device-type-to-smartthings-from-code/35854)

<div class="topic-metadata">

**Author:** [@JZst](https://community.smartthings.com/u/JZst)\
**Replies:** 4\
**Last updated:** [January 15, 2016, 3:23am UTC](https://community.smartthings.com/t/new-device-type-handler-for-an-ip-addressable-device-how-to-add-your-own-device-type-to-smartthings-from-code/35854 "2016-01-15T03:23:04Z")

</div>

I was extremely frustrated that these instructions don’t exist and ultimately I could not find anything that gave me straight forward steps. Now that I’ve finally figured it out (computer nerd of 23 years, sad that it wa…
