# Run two instances of one app

**URL:** <https://community.homey.app/t/run-two-instances-of-one-app/60616>\
**Category:** Questions & Help\
**Created:** [February 18, 2022, 9:09am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616 "2022-02-18T09:09:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjornand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornand/32/7982_2.png) [@bjornand](https://community.homey.app/u/bjornand)\
**Post date:** [February 18, 2022, 9:09am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/1 "2022-02-18T09:09:43Z")

</div>

Hi, I found a post on how to install a second instance of a Homey app (in my case the IKEA Trådfri Gateway app), and that seems to work, I get two apps. But the second version won’t find any devices after I connect it to the gateway. Is there perhaps something preventing a second instance to fully work?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 18, 2022, 9:14am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/2 "2022-02-18T09:14:36Z")

</div>

Are both instances of the app using the same Tradfri gateway? If so, perhaps the issue is with the devices having the same internal id, so Homey thinks it’s already paired (although I would expect that internal id’s are specific to an app).

---

<div class="post-metadata">

**Author:** ![bjornand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornand/32/7982_2.png) [@bjornand](https://community.homey.app/u/bjornand)\
**Post date:** [February 18, 2022, 10:31am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/3 "2022-02-18T10:31:54Z")

</div>

@robertklep Ah sorry, forgot the specify that; no, I have two gateways and want to have both connected to Homey. In the first instance, one of the Gateways expose all its devices, but for the second, I can connect it, but no devices appear

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 18, 2022, 11:07am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/4 "2022-02-18T11:07:44Z")

</div>

Strange. I assume you’re running the second instance of the app by changing the id in `app.json`?

---

<div class="post-metadata">

**Author:** ![bjornand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornand/32/7982_2.png) [@bjornand](https://community.homey.app/u/bjornand)\
**Post date:** [February 18, 2022, 11:20am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/5 "2022-02-18T11:20:59Z")

</div>

Yes, that is how I got a second version onto Homey.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 18, 2022, 11:52am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/6 "2022-02-18T11:52:15Z")

</div>

Have you tried using the second instance of the app to connect to the first (working) gateway?

---

<div class="post-metadata">

**Author:** ![bjornand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornand/32/7982_2.png) [@bjornand](https://community.homey.app/u/bjornand)\
**Post date:** [February 18, 2022, 11:57am UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/7 "2022-02-18T11:57:55Z")

</div>

No, I have so many devices connected and integrated into HomeKit automations, I don’t dare do anything to mess those up…

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 18, 2022, 12:05pm UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/8 "2022-02-18T12:05:43Z")

</div>

Fair enough. By the looks of it, the underlying Tradfri module that the app uses only works with a single gateway in your network, having two basically isn’t supported.

---

<div class="post-metadata">

**Author:** ![bjornand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornand/32/7982_2.png) [@bjornand](https://community.homey.app/u/bjornand)\
**Post date:** [February 18, 2022, 12:08pm UTC](https://community.homey.app/t/run-two-instances-of-one-app/60616/9 "2022-02-18T12:08:22Z")

</div>

I feared as much, thanks for looking into it!
