# \#groovy

**URL:** https://community.smartthings.com/tag/groovy/96.md

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

---

## [Devices Offline and Automantions down cause Groovy BUG (500: Internal Server Error) (July 2022)](https://community.smartthings.com/t/devices-offline-and-automantions-down-cause-groovy-bug-500-internal-server-error-july-2022/244707)

<div class="topic-metadata">

**Author:** [@allmac](https://community.smartthings.com/u/allmac)\
**Replies:** 3\
**Last updated:** [July 11, 2022, 5:28pm UTC](https://community.smartthings.com/t/devices-offline-and-automantions-down-cause-groovy-bug-500-internal-server-error-july-2022/244707 "2022-07-11T17:28:49Z")

</div>

Since 2 weeks ago some of my zigbee devices are loosing connection (specially bulbs) with my Smartthings Wifi. Some days later some automations also stoped. No of these zigbee loosing connections are reconnecting (not f…

---

## [All ST Details Missing after Installing SmartApp](https://community.smartthings.com/t/all-st-details-missing-after-installing-smartapp/222607)

<div class="topic-metadata">

**Author:** [@SanjayChadha](https://community.smartthings.com/u/SanjayChadha)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 7:48am UTC](https://community.smartthings.com/t/all-st-details-missing-after-installing-smartapp/222607 "2021-03-15T07:48:03Z")

</div>

Hi guys, I need help please. I have a Groovy IDE account and installed some SmartApps and all was working well until I installed the Echo Speaks and Alexa based SmartApps - now when I log in, all my info is missing and …

---

## [Custom SmartApps (written in groovy), are they still valid on the new platform?](https://community.smartthings.com/t/custom-smartapps-written-in-groovy-are-they-still-valid-on-the-new-platform/206076)

<div class="topic-metadata">

**Author:** [@mikelupo](https://community.smartthings.com/u/mikelupo)\
**Replies:** 5\
**Last updated:** [September 24, 2020, 5:08pm UTC](https://community.smartthings.com/t/custom-smartapps-written-in-groovy-are-they-still-valid-on-the-new-platform/206076 "2020-09-24T17:08:07Z")

</div>

Hi, I’m late in the game on the ST news as far as the new app is concerned. Everything I read is geared towards consumer type users. But what about us power platform users? I have multiple hand-written automations runn…

---

## [Zigbee siren payload](https://community.smartthings.com/t/zigbee-siren-payload/151576)

<div class="topic-metadata">

**Author:** [@gabriele-v](https://community.smartthings.com/u/gabriele-v)\
**Replies:** 15\
**Last updated:** [February 18, 2020, 5:58pm UTC](https://community.smartthings.com/t/zigbee-siren-payload/151576 "2020-02-18T17:58:38Z")

</div>

Hi all, I’ve just purchased a Zigbee siren and looking at its specifications seems that I need to send this payload in order to make it sound Any idea on how to produce that output with Zigbee.Command function? Than…

---

## [Access denied - don't have authorization to edit devices](https://community.smartthings.com/t/access-denied-dont-have-authorization-to-edit-devices/180683)

<div class="topic-metadata">

**Author:** [@tyron](https://community.smartthings.com/u/tyron)\
**Replies:** 4\
**Last updated:** [December 16, 2019, 2:09am UTC](https://community.smartthings.com/t/access-denied-dont-have-authorization-to-edit-devices/180683 "2019-12-16T02:09:50Z")

</div>

Hello, For some reason that I can’t recall anymore, when I started with ST I created my account on https://graph-na04-useast2.api.smartthings.com. I’ve been using this IDE url since then, but recently I started having t…

---

## [Using ASTTransformation in Groovy to build an AST like structure for all connected devices](https://community.smartthings.com/t/using-asttransformation-in-groovy-to-build-an-ast-like-structure-for-all-connected-devices/154488)

<div class="topic-metadata">

**Author:** [@Nikita\_Luthra](https://community.smartthings.com/u/Nikita_Luthra)\
**Replies:** 2\
**Last updated:** [February 17, 2019, 7:05pm UTC](https://community.smartthings.com/t/using-asttransformation-in-groovy-to-build-an-ast-like-structure-for-all-connected-devices/154488 "2019-02-17T19:05:11Z")

</div>

Given a groovy source code as an input, is it possible to create a graph-like or AST representing the overall flow structure representing what event is triggered and due to which action and what is the changed state of t…

---

## [LAN Device Type (Denon Receiver) - HTTP GET Update Frequency Help](https://community.smartthings.com/t/lan-device-type-denon-receiver-http-get-update-frequency-help/52836)

<div class="topic-metadata">

**Author:** [@kars85](https://community.smartthings.com/u/kars85)\
**Replies:** 6\
**Last updated:** [February 22, 2018, 4:19pm UTC](https://community.smartthings.com/t/lan-device-type-denon-receiver-http-get-update-frequency-help/52836 "2018-02-22T16:19:04Z")

</div>

Hello, I'm really close to getting my home theater lighting automation setup, but need some help with one final portion. As it stands, I'm using the (now discontinued :frowning:) Denon device type created by @Kristophe…

---

## [Give a default value for a optional preference?](https://community.smartthings.com/t/give-a-default-value-for-a-optional-preference/97169)

<div class="topic-metadata">

**Author:** [@vseven](https://community.smartthings.com/u/vseven)\
**Replies:** 13\
**Last updated:** [January 21, 2018, 8:40pm UTC](https://community.smartthings.com/t/give-a-default-value-for-a-optional-preference/97169 "2018-01-21T20:40:23Z")

</div>

Is there a easy way to check whether a preference is set and based on that either set the preference to a default value or at least pass a default value when it’s needed? It seems “defaultValue” on a preference is broke…

---

## [Are there any tutorials on working with multiple devices?](https://community.smartthings.com/t/are-there-any-tutorials-on-working-with-multiple-devices/95409)

<div class="topic-metadata">

**Author:** [@MatthewMcD](https://community.smartthings.com/u/MatthewMcD)\
**Replies:** 2\
**Last updated:** [August 12, 2017, 12:05pm UTC](https://community.smartthings.com/t/are-there-any-tutorials-on-working-with-multiple-devices/95409 "2017-08-12T12:05:07Z")

</div>

I have tried searching for any code samples that show how to work with multiple devices (like multiple switches) and so far all I have found is that you can set “multiple:true”. Specifically, I am looking for how to chec…

---

## [ERROR: The getS3Object method is no longer available. Is there a fix?](https://community.smartthings.com/t/error-the-gets3object-method-is-no-longer-available-is-there-a-fix/79373)

<div class="topic-metadata">

**Author:** [@psun03](https://community.smartthings.com/u/psun03)\
**Replies:** 1\
**Last updated:** [February 27, 2017, 3:48pm UTC](https://community.smartthings.com/t/error-the-gets3object-method-is-no-longer-available-is-there-a-fix/79373 "2017-02-27T15:48:18Z")

</div>

I am new to Smartthings. I just started this week. I been working on trying to get my FOSCAM to work with it. I found a device handler, but I have to change the code a bit. I finally get things sort of working and I get …

---

## [Dynamic configuration of a SmartApp](https://community.smartthings.com/t/dynamic-configuration-of-a-smartapp/75206)

<div class="topic-metadata">

**Author:** [@anderssv](https://community.smartthings.com/u/anderssv)\
**Replies:** 6\
**Last updated:** [January 24, 2017, 3:48pm UTC](https://community.smartthings.com/t/dynamic-configuration-of-a-smartapp/75206 "2017-01-24T15:48:38Z")

</div>

Hi, I'm working on a SmartApp as a virtual thermostat. I'd like to centralize more of the config in one app instead of having several apps for each room and modes (like the default Virtual Thermostat). I have it workin…

---

## [API for Changing Device Name?](https://community.smartthings.com/t/api-for-changing-device-name/60354)

<div class="topic-metadata">

**Author:** [@mchau](https://community.smartthings.com/u/mchau)\
**Replies:** 2\
**Last updated:** [October 18, 2016, 4:55pm UTC](https://community.smartthings.com/t/api-for-changing-device-name/60354 "2016-10-18T16:55:43Z")

</div>

Is there a way to change device names through Groovy (Smart App web services)? I found that a device has following name attributes: device.label device.namel device.displayName But these does not seem to be settable an…

---

## [Cannot pull preference for a IF statement but comes through on debug](https://community.smartthings.com/t/cannot-pull-preference-for-a-if-statement-but-comes-through-on-debug/52430)

<div class="topic-metadata">

**Author:** [@vseven](https://community.smartthings.com/u/vseven)\
**Replies:** 7\
**Last updated:** [July 10, 2016, 7:14pm UTC](https://community.smartthings.com/t/cannot-pull-preference-for-a-if-statement-but-comes-through-on-debug/52430 "2016-07-10T19:14:48Z")

</div>

I was making a modification to the stock SmartSense Temp/Humidity Sensor to make Humidity the primary display tile. Once that was done I decided I wanted to not have to have two different device types, I rather have one …

---

## [Web Services Smart App - 1 account & 2 Locations?](https://community.smartthings.com/t/web-services-smart-app-1-account-2-locations/47790)

<div class="topic-metadata">

**Author:** [@SqlSuperVillain](https://community.smartthings.com/u/SqlSuperVillain)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 4:41pm UTC](https://community.smartthings.com/t/web-services-smart-app-1-account-2-locations/47790 "2016-05-13T16:41:56Z")

</div>

I have a smart app I've installed on my hub in my account, and a second location that is a parent's hub that has been shared with me that I want to install the app on for them. The app just exposes an api. I can enter th…

---

## [Help - Use of IF statement in SmartApp](https://community.smartthings.com/t/help-use-of-if-statement-in-smartapp/46717)

<div class="topic-metadata">

**Author:** [@dome](https://community.smartthings.com/u/dome)\
**Replies:** 2\
**Last updated:** [May 1, 2016, 1:28am UTC](https://community.smartthings.com/t/help-use-of-if-statement-in-smartapp/46717 "2016-05-01T01:28:59Z")

</div>

I feel like I'm taking crazy pills here - I've spent upwards of a few hours trying variations on this code and it just isn't performing as expected. def x = true def y = false def eventHandler(evt) { if (x == true…

---

## [Graphical Programming for Smartthings?](https://community.smartthings.com/t/graphical-programming-for-smartthings/43114)

<div class="topic-metadata">

**Author:** [@Thomas](https://community.smartthings.com/u/Thomas)\
**Replies:** 0\
**Last updated:** [March 23, 2016, 11:49pm UTC](https://community.smartthings.com/t/graphical-programming-for-smartthings/43114 "2016-03-23T23:49:38Z")

</div>

I've used google blocky and arduino's ardublock for graphical programming. Is there anything compatible with Java GROOVY?

---

## [Article: Working with Collections in Groovy](https://community.smartthings.com/t/article-working-with-collections-in-groovy/41946)

<div class="topic-metadata">

**Author:** [@slagle](https://community.smartthings.com/u/slagle)\
**Replies:** 0\
**Last updated:** [March 11, 2016, 9:02pm UTC](https://community.smartthings.com/t/article-working-with-collections-in-groovy/41946 "2016-03-11T21:02:25Z")

</div>

Hey fellow SmartThings Devs! This is the first of many posts to come where we talk about Groovy and SmartThings. We have a developer call every 2 weeks and during those calls the first portion of it is an education sec…

---

## [Groovy maps](https://community.smartthings.com/t/groovy-maps/31371)

<div class="topic-metadata">

**Author:** [@infofiend](https://community.smartthings.com/u/infofiend)\
**Replies:** 1\
**Last updated:** [December 8, 2015, 5:54am UTC](https://community.smartthings.com/t/groovy-maps/31371 "2015-12-08T05:54:24Z")

</div>

I’m trying to wrap my head around this bit of code in the Smart Lights example in the documentation: In preferences: input “action”, “enum”, title: “What do you want to do?”, options: actionOptions(), required: true, …

---

## [New Getting Started Docs for Developers](https://community.smartthings.com/t/new-getting-started-docs-for-developers/25143)

<div class="topic-metadata">

**Author:** [@Jim](https://community.smartthings.com/u/Jim)\
**Replies:** 4\
**Last updated:** [October 17, 2015, 5:32pm UTC](https://community.smartthings.com/t/new-getting-started-docs-for-developers/25143 "2015-10-17T17:32:29Z")

</div>

Last week we rolled out some new documentation to help those getting started with SmartThings development. In case you haven't seen them, check them out! If you're new to SmartThings development, this is where you shou…
