# \[HOW-TO\]\[Pro\]\[Cloud\] - Tool to FIX (advanced) flows after removing and re-adding devices

**URL:** <https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018>\
**Category:** Tutorials\
**Tags:** zigbee, flow, homey-pro, homey-bridge, howto\
**Created:** [June 23, 2022, 12:20pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018 "2022-06-23T12:20:57Z")\
**Posts on this page:** 1\
**Showing post:** 145

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 27, 2023, 11:07pm UTC](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018/145 "2023-09-27T23:07:07Z")

</div>

> [@Robin\_De\_Lange](#):
>
> can you also search by the app that the device falls under? so for example I can see all the id’s of the devices in an overview that fall under the Hue bridge app

In Homeyscript you can run this:

```auto
// Replace "appName" with the driverURI, which is homey:app: followed by the reversed url behind /app/ in the app store URL, between the / / character ;P 
// for example: https://homey.app/nl-nl/app/nl.philips.hue/Philips-Hue/ should result in homey:app:nl.philips.hue

let appName = "homey:app:nl.philips.hue"
// end of user input

const myDevices = await Homey.devices.getDevices();
for (var iMyDevice in myDevices){
  if (myDevices[iMyDevice].driverUri == appName) {
  log(`Device:\t ${myDevices[iMyDevice].name} \nZone:\t ${myDevices[iMyDevice].zoneName}\nID:\t ${myDevices[iMyDevice].id}`)
  }
};
//if (deviceName == "") {
if (appName == "") { 
  return false
} else {
  return true;
}

```

In the Web Playground you can use this (but I don’t get it to work at the moment)  
 → replace `com.mi.flora` with `nl.philips.hue` :

> [@Developer Web API Playground - Notes of geeky oneliners](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392/6):
>
> This can be shortened to promise.then(…) slight_smile Or this: Homey.devices.getDevices() .then(f =\> { return Object.values(f).filter((device) =\> device.driverUri === 'homey:app:com.mi.flora'); }) .then(devices =\> console.log(JSON.stringify(devices)));

---

_[View the full topic](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018)._
