justintime / ST-Monoprice-Dual-Relay-Module

SmartThings device type and SmartApp for the Monoprice 11990 Dual Relay Adapter
19 stars 24 forks source link

Error pasting code #7

Closed Wayno81 closed 7 years ago

Wayno81 commented 7 years ago

Following the directions, when I paste the code (step 5) and click create, I get this error:

No signature of method: script1490120755236904217543.metadata() is applicable for argument types: (script1490120755236904217543$_run_closure2) values: [script1490120755236904217543$_run_closure2@3df09245] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

I don't understand the message so I can't figure out where to go from here.

Thank you.

Wayno81 commented 7 years ago

My bad. I was using the code in My Smart Apps instead of My Device Handlers. It is working now.