Is there an easy way to substitute one device for another in a bunch of pistons without going into each one? I have a Zigbee device that died and I want to just swap it out for another. I’m trying to save myself some work.
Easy Way to Replace Zigbee Devices?
Equis
#2
I don’t know of an easy way to do it in bulk, but whenever I have to do this, I go to the SmartApps tabs of of the device in the ST app and it will tell you everything it’s a part of. It will show routines, smart apps, and pistons. That ends up being my to-do list, so I can just work my way down and replace the device.
Otherwise, I’ve started writing my pistons with device variables and using the variable instead of the actual device in the code. If it ever needs to get replaced, I only have to replace the definition in the variable instead of hoping I found all the references in the code.