# Multiple Ikea Trådfri Gateway dirty hack

**URL:** <https://community.homey.app/t/multiple-ikea-tradfri-gateway-dirty-hack/52359>\
**Category:** Tutorials\
**Created:** [September 28, 2021, 6:13pm UTC](https://community.homey.app/t/multiple-ikea-tradfri-gateway-dirty-hack/52359 "2021-09-28T18:13:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanfelt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hanfelt/32/44642_2.png) [@Hanfelt](https://community.homey.app/u/Hanfelt)\
**Post date:** [September 28, 2021, 6:13pm UTC](https://community.homey.app/t/multiple-ikea-tradfri-gateway-dirty-hack/52359/1 "2021-09-28T18:13:14Z")

</div>

Start by configure you computer so you can install apps offline:

> [@\[HOW TO\] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198):
>
> Homey Pro only!!! It does not work this way with Homey (cloud), it only supports CLI run which is there only for development purposes. Installing Node.js Check Node.js version on Homey: Homey App: Settings - General - About - Node.js version Download Node.js (use Homey’s version or higher) from [https://nodejs.org/](https://nodejs.org/) and install it on your computer. Download the app you want to install from GitHub Go to the repository on [GitHub](https://github.com/) (the correct link for the app you want to install is at the bottom…

Then download the zip from:

> **[GitHub - rogierhofboer/com.ikea.tradfri.gateway: Athom Homey App for the IKEA Tradfri Gateway](https://github.com/rogierhofboer/com.ikea.tradfri.gateway)**
>
> Athom Homey App for the IKEA Tradfri Gateway

Unpack this and go inside this dir with either CMD och Terminal then dont forget to issue the command:  
npm install --target\_arch=arm --target\_platform=linux

After that edit app.json and change ID to something else like “myapp.ikea.tradfri.gateway”  
also change name to something else so you know which app goes to which gateway like “IKEA Trådfri Gateway 2”

I also changed the id in files package.json and package-lock.json dont know if you have to do that though.

When you are done all you have to issue is “homey app install” and the app will be installed in your homey.

I have alot of lamps and wanted to be able to control all my gateways so this was the solution i came up with (im no developer) until the main app supports multiple gateways.

---

<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 13, 2022, 7:55am UTC](https://community.homey.app/t/multiple-ikea-tradfri-gateway-dirty-hack/52359/2 "2022-02-13T07:55:55Z")

</div>

Hi, thanks for this tip! I have come as far as getting the second version of the app installed on my Homey, and I can save the Gateway details. But no devices appear - is there any extra tip to get this to work?

I should say that the authentication works, I add the ip and security code and the app obtains the identity and PSK. It just doesn’t find any devices, which I seem to remember happened automatically for my Gateway #1.

Also, Terminal threw up a couple of error messages when installing, don’t know if they can cause any issues?

✓ Pre-processing app…

Error in `app.json`:

SyntaxError: Unexpected token m in JSON at position 9

Fam-Andersen-Home-iMac-2:rep famandersen$ homey app install

✓ Pre-processing app…

✓ Validating app…

✓ Homey App validated successfully against level `debug`

✓ Packing Homey App…

✓ Pruning dev dependencies…

✖ Error occurred during npm prune TypeError: prunePathsJson.removed.map is not a function

at Function.getPrunePaths (/usr/local/lib/node\_modules/homey/lib/Modules/NpmCommands.js:88:49)

at processTicksAndRejections (node:internal/process/task\_queues:96:5)

at async /usr/local/lib/node\_modules/homey/lib/App/index.js:642:26

— App size: 1.92 MB

✓ Installing Homey App on `Homey` ([https://192-168-1-44.homey.homeylocal.com](https://192-168-1-44.homey.homeylocal.com))…

✓ Homey App `myapp.ikea.tradfri.gateway` successfully installed
