Evening everyone Currently testing out my SmartApp with some community members. I’m running into an issue where installing some devices is throwing the following error:
“There was a problem processing your request. Please try again.”
Has anyone else experienced this limit? Here is my input code:
Nothing in live logging. I found the issue though… I was subscribing to attributes multiple times. Which for some reason was causing an error for some devices.
To solve the issue, I added a conditional that would check first if the attribute existed in the attributes array first before pushing.
if (!attributes.contains(attribute.getName())) {
attributes.push(attribute.getName())
}
Not sure if subscribing to Actuator and Sensor is a good pattern though, since I could be subscribing to 100+ devices. Also thanks for chiming in @tgauchat