I’m experiencing something that started happening since about mid day yesterday.
I’m not able to save my smart app anymore. Here’s what’s happening:
I create a new Smart App in the IDE from my code and save it, publish and run successfully.
Without making any changes, I click “Save” button again. I get error: You have multiple inputs with the same name: [input title, input link]
This code has not been changed for the past 10 days and it runs successfully for many users. During last 10 days I had no problem saving changes to my SmartApp, including up until yesterday morning.
@mager, @Jim
Did something change, some time mid day yesterday, on the back end? Something to do with code validators maybe?
I’ve been looking for somewhere to post about this but didn’t want to start a thread. I was trying to edit Alex’s action dashboard and once I hit save nothing happens.
It looks like you hit an edge case that we didn’t anticipate with our input name validation. We will file a bug report for this case, but in the meantime let’s make sure to get this working again.
In a few spots you have “input title” and “input link”, where title and link are variables. Our validation is seeing these as duplicates. If you change the variable names so they will always be unique, that should get you past this problem.
Jim, any updates on fixing the underlying issue? In addition to what was reported above, the new input validation seems to break several of the published smart apps (e.g. “Bright When Dark And/Or Bright After Sunset” and “ModeOnUnlock”).
Hey guys, we have a bug report filed. Until it gets fixed (I’ll follow up here when it does), you’ll have to use the workaround of not using the same variable name as an argument to the input method.
This is a real blocker. I think it would be better to revert the validation change until it is fixed. I’m sitting here blocked trying to modify my dashboard code in a way that I can merge with Alex’s future releases. Having each developer rename all the duplicate variables differently is going to cause recurring pain and problems for developers and shared code. I’m going to stop my project until this bug is fixed. I think you should revert this change unless the fix is releasing tomorrow morning.
@625alex I was trying to test a proof of concept use of the Thingspeak dynamic google gauge plugin within the dashboard. I thought of a way to try this along with energy history charts… oh well.
I get the "You have multiple inputs with the same name: [input “lights”, input “dimmers”, input “level”, input “motionSensor”, input “delayMinutes”, input “lightSensor”, input “luxLevel”, input “sunriseOffsetValue”, input “sunriseOffsetDir”, input “sunsetOffsetValue”, input “sunsetOffsetDir”, input “zipCode”] " error when trying to save “Bright When Dark And/Or Bright After Sunset”
Last Friday’s release include a change to revert the change that flagged duplicate inputs on save. Note that actually having duplicate input names is still invalid; it will just fail at run-time now (as it did prior to the IDE change). Thanks!