I also have problems installing the Presence Sensor.
I have installed the code from Github and enabled OAuth in the IDE.
I go to Marketplace/SmartApps, My Apps and select Presence Sensor. I change nothing but just tap Save.
I get the “Succesfully added…” message.
I tap the Presence Sensor app in Automation/smartApps. I tap New Device. I tap Device name, give a name to the device and tap Save. I get the error message: “There was a problem processing your request. Please try again.”
Don’t see any related log entries in the IDE. A device is created and a device id is visible. When I try to pair it (Pair this device), Chrome opens and launches Presence Sensor app which reports the “Update error #3” (An unexpected error occurred.)
I have tried refreshing the OAuth tokens. I also tried to install the SmartApp using the IDE’s simulator but got a bunch of errors:
grails.validation.ValidationException: Validation Error(s) occurred during save():
- Field error in object 'physicalgraph.app.InstalledSmartApp' on field 'state': rejected value [COMPLETE]; codes [physicalgraph.app.InstalledSmartApp.state.validator.error.physicalgraph.app.InstalledSmartApp.state,physicalgraph.app.InstalledSmartApp.state.validator.error.state,physicalgraph.app.InstalledSmartApp.state.validator.error.physicalgraph.app.InstallationState,physicalgraph.app.InstalledSmartApp.state.validator.error,installedSmartApp.state.validator.error.physicalgraph.app.InstalledSmartApp.state,installedSmartApp.state.validator.error.state,installedSmartApp.state.validator.error.physicalgraph.app.InstallationState,installedSmartApp.state.validator.error,physicalgraph.app.InstalledSmartApp.state.Input '[notify]' is required.physicalgraph.app.InstalledSmartApp.state,physicalgraph.app.InstalledSmartApp.state.Input '[notify]' is required.state,physicalgraph.app.InstalledSmartApp.state.Input '[notify]' is required.physicalgraph.app.InstallationState,physicalgraph.app.InstalledSmartApp.state.Input '[notify]' is required,installedSmartApp.state.Input '[notify]' is required.physicalgraph.app.InstalledSmartApp.state,installedSmartApp.state.Input '[notify]' is required.state,installedSmartApp.state.Input '[notify]' is required.physicalgraph.app.InstallationState,installedSmartApp.state.Input '[notify]' is required,Input '[notify]' is required.physicalgraph.app.InstalledSmartApp.state,Input '[notify]' is required.state,Input '[notify]' is required.physicalgraph.app.InstallationState,Input '[notify]' is required]; arguments [state,class physicalgraph.app.InstalledSmartApp,COMPLETE]; default message [{0} does not pass custom validation]