Lowe's Iris Sensors (New CentraLite models)

@mitchp

I have been trying to add the code to my app, but am getting an error

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

I am following the instructions here - FAQ: An Overview of Using Custom Code in SmartThings

Can anyone tell me what I am doing wrong?