iSmartGate app with more than one device

Hi,

I’m using the iSmartGate app and its working fine. My problem is that the app only allows me to connect to one iSmartGate device in the settings and I have two devices? Is there anyway to solve this? Can I for example install a second instance of the app that I configure with my second IsmartGate device?

Thanks for any help in this matter.

Hi Philip,

When you’re familiar with CLI installs (find howto here), you can install a second iSG app, but only after you change the app ID a bit in the
.homeycompose/app.json file;
Change line 1 into, for example:
"id": "com.gogogate.ismartgatephilip"
and change line 11 into, for example
"en": "ismartgatephilip"

This should make adding your 2nd iSG device possible

App download:
https://github.com/iver56/homey-ismartgate/archive/refs/heads/main.zip

@Peter_Kawa Thank you so much for taking your time to help me. Highly appriciated. I had a good start. did everything according to instructions. But when I enter “homey app install” I get this:

:heavy_multiplication_x: Command failed: npm ls --parseable --all --only=prod
npm WARN config only Use --omit=dev to omit dev dependencies from the install.
npm ERR! code ELSPROBLEMS
npm ERR! missing: fast-xml-parser@^4.0.7, required by com.gogogate.ismartgate@1.0.0
npm ERR! missing: node-fetch@^2.6.7, required by com.gogogate.ismartgate@1.0.0
npm ERR! missing: uuid@^8.3.2, required by com.gogogate.ismartgate@1.0.0

npm ERR! A complete log of this run can be found in: /var/root/.npm/_logs/2023-11-29T07_43_03_896Z-debug-0.log

:heavy_multiplication_x: Error: This error may be fixed by running npm install in your app.
at /usr/local/lib/node_modules/homey/lib/App.js:874:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async App._copyAppProductionDependencies (/usr/local/lib/node_modules/homey/lib/App.js:871:26)
at async Promise.all (index 1)
at async App.preprocess (/usr/local/lib/node_modules/homey/lib/App.js:826:5)
at async App.install (/usr/local/lib/node_modules/homey/lib/App.js:767:7)
at async exports.handler (/usr/local/lib/node_modules/homey/bin/cmds/app/install.js:25:5)

Could you please help me with what to do?
Best regards,
Philip

YW, Philip!

The possible fixes / solutions are returned, but you have to read the error message carefully

(By ‘install in your app’ is meant:
when the path is the app folder, run
npm install
This way ‘npm’ gets installed into the app code)

There can be several error messages after each command, with a proposed fix.
In the end, the app should install error free @ Homey

1 Like

Thank you @Peter_Kawa I got it to work now :+1:

1 Like