To fix your flows in one click when you reinstall any device. Use the script from @martijnpoppen
[HOW-TO][Pro][Cloud] - Tool to FIX (advanced) flows after removing and re-adding devices - Tutorials - Homey Community Forum