Newbie trying to use first custom smartapp

Hello,

I am a brand new member (Non developer) and have been using ST (with the ST hub) for a few months. I have 10 Osram Lightify RGBW lights (among other devices) outside my home and I have been looking for a way to use color looping with ST. I found the smartapp “Osram Lightify RGBW A19/BR30 US version (HA) DTH rev 6/6/2017 by gkl_sf” and it seems to be exactly what I was looking for.

While trying to “Create” the app in the developer section, I receive the following error:

No signature of method: script_app_metadata_2185515a_297e_4d51_a48a_17ceef3389d7.metadata() is applicable for argument types: (script_app_metadata_2185515a_297e_4d51_a48a_17ceef3389d7$_run_closure1) values: [script_app_metadata_2185515a_297e_4d51_a48a_17ceef3389d7$_run_closure1@6f4e1ad2] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

I greatly appreciate any help you can provide and I apologize in advance if I am making a newbie mistake.

That’s not a SmartApp… It’s a Device Type Handler.

You’re pasting the code onto the wrong tab of the IDE.

You need to Create/Add a Device Type.

2 Likes

Ah! Thank you. I now plainly see the DTH in the description.

Thanks again

1 Like