I didn’t see this in my search on the forum, is there a find and replace function to switch one like item for another. Ex. I switch from the android app presence to webcore so I want to find all instance of the old presense device and swap for the webcore one.
Piston find and replace
I believe if you go into smartthings app and click on the device you are wanting to see what is associated with in webcore you would do the following.
Click on the device, then once that opens the device window, click on the tab for smart apps , then in that window it will show you a list of all the smart apps and pistons that it is tied to. If you click on one of the pistons listed there, it will open a screen that will allow you to go to the desired piston straight away.
Hope that helps
Well, there is a way, but…
When building your pistons you could use a global variable for each device.
For example presence sensor:
Set global variable @presenceSensor1 = ‘pick from physical device list’
Then when building pistons, instead of using the drop down for physical device attributes, you would use expressions.
For example : [@presenceSensor1 : currentPlace]
And so on. It’s kind of cumbersome having to type out all the various options for each attribute, but if you change a device all you have to do is go to the global variable and find your new device you want to change to, and all the pistons should update with that new global variable.
Would be nice if there was a replace option in webcore presence device from smartthings app when clicking on the gear icon. Right now it just lets you delete the presence sensor, but if they had the replace maybe it would do exactly that, remove the old and add the new in its place. @ipaterson
Understood. It would be the same amount of time to go through each piston and make changes. I agree with the find and replace but I would like it in the web interface rather the app.
I have not tried this, but it might work.
Add your new device, copy the network ID FROM SMARTHINGS IDE then paste the new id into the old device and delete the new one? Not sure that would work, but might be worth a shot.
Just a thought
There is no find and replace function
In most of my pistons I use local variables to ensure devices are only mentioned once per piston making updates a bit easier.
I don’t recommend using global variables for devices unless absolutely necessary… using local variables ensures the devices are saved in the piston and speeds up execution times.