Simulator Error

I’d appreciate any help that I can get with an error in the Simulator. The error occurs when I add the following line in the preferences section in my SA skeleton. This is my first app (and groovy code) so bear with me if the problem is obvious.

input “motion1”,“capability.motion”, title:“Motion one”

In the emulator, the input for “Motion One” appears but I get the following error when I click on the install button.

grails.validation.ValidationException: Validation Error(s) occurred during save():

I can’t say for sure but the problem may have started when I changed the value of the first parameter from “tmotion1” to “motion1”.

Here’s the full source code:


  • LightArt
  • Copyright 2017 Massis Isagholian
  • Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at:
  • Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
  • on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
  • for the specific language governing permissions and limitations under the License.

name: “LightArt”,
namespace: “com.sagestream.signart2”,
author: “Massis Isagholian”,
description: “none”,
category: “Convenience”,
iconUrl: “”,
iconX2Url: “”,
iconX3Url: “”)

preferences {
section(“Motion Sensors”) {
input “motion1”,“capability.motion”, title:“Motion one”

section("Outlets") {
	input "outlet1","capability.switch", title:"Outlet one"
	input "outlet2","capability.switch", title:"Outlet two"
	input "outlet3","capability.switch", title:"Outlet three"
	input "outlet4","capability.switch", title:"Outlet four"
	input "outlet5","capability.switch", title:"Outlet five"        


def installed() {
log.debug “Installed with settings: ${settings}”



def updated() {
log.debug “Updated with settings: ${settings}”



def initialize() {
// subscribe(motion1, “”, motion1ActiveHandler)
// TODO: subscribe to attributes, devices, locations, etc.

// TODO: implement event handlers
def motion1ActiveHandler(evt) {
log.debug “Motion1 event: ${evt.value}”

While there may or may not be an error in your code (thanks for pasting it, but I don’t have a chance at the moment to look in detail), we need to make the following a FAQ:

The IDE Simulator is giving me an error. What should I do?


  1. Never trust the Simulator.
  2. Published the SmartApp or Device Type Handler “For Me” and install it using the SmartThings mobile App for testing. It is worth the trouble… trust me.
1 Like