pradeepmouli / homebridge-isy-js

Homebridge platform plugin for the ISY series of home controllers from Universal Devices.
MIT License
28 stars 9 forks source link

Doesn't work in HOOBS3 #5

Open nathanjskelton opened 4 years ago

nathanjskelton commented 4 years ago

Installed in HOOBS3 replacing the rodtoll version... starts up with "The requested platform 'ISY' was not registered by any plugin". Reverting to the rodtoll version fixes.

pradeepmouli commented 4 years ago

Should have a fix in the next day or 2.

Sent from my iPhone

On Apr 15, 2020, at 3:48 PM, nathanjskelton notifications@github.com wrote:

 Installed in HOOBS3 replacing the rodtoll version... starts up with "The requested platform 'ISY' was not registered by any plugin". Reverting to the rodtoll version fixes.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

pradeepmouli commented 4 years ago

Should work now. Please let me know - you'll have to change the platform/platform name to "ISY" from "isy-js".

kavehv commented 4 years ago

Should work now. Please let me know - you'll have to change the platform/platform name to "ISY" from "isy-js".

Should the readme be updated to reflect this?

When I change the platform in config.json to ISY, it fails to work. This is running inside the oznu/homebridge docker container

[4/21/2020, 11:32:50 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[4/21/2020, 11:32:55 AM] [HB Supervisor] Restarting Homebridge...
[4/21/2020, 11:32:55 AM] [HB Supervisor] Starting Homebridge with extra flags: -P /homebridge/node_modules
[4/21/2020, 11:32:55 AM] [HB Supervisor] Started Homebridge with PID: 1320
[4/21/2020, 11:32:56 AM] Loaded config.json with 0 accessories and 1 platforms.
[4/21/2020, 11:32:56 AM] ---
[4/21/2020, 11:32:56 AM] Loaded plugin: homebridge-dummy
[4/21/2020, 11:32:56 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[4/21/2020, 11:32:56 AM] ---
[4/21/2020, 11:32:56 AM] ====================
[4/21/2020, 11:32:56 AM] ERROR LOADING PLUGIN homebridge-isy:
[4/21/2020, 11:32:56 AM] Error: Cannot find module 'homebridge/node_modules/hap-nodejs/dist/lib/util/uuid'
Require stack:
- /homebridge/node_modules/homebridge-isy/dist/ISYAccessory.js
- /homebridge/node_modules/homebridge-isy/dist/ISYDeviceAccessory.js
- /homebridge/node_modules/homebridge-isy/dist/ISYRelayAccessory.js
- /homebridge/node_modules/homebridge-isy/dist/ISYDimmerAccessory.js
- /homebridge/node_modules/homebridge-isy/dist/ISYPlatform.js
- /homebridge/node_modules/homebridge-isy/dist/plugin.js
- /usr/local/lib/node_modules/homebridge/lib/plugin.js
- /usr/local/lib/node_modules/homebridge/lib/server.js
- /usr/local/lib/node_modules/homebridge/lib/cli.js
- /usr/local/lib/node_modules/homebridge/bin/homebridge
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/homebridge/node_modules/homebridge-isy/dist/ISYAccessory.js:9:16)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1042:19)
[4/21/2020, 11:32:56 AM] ====================
[4/21/2020, 11:32:56 AM] Loaded plugin: homebridge-isy-js
[4/21/2020, 11:32:56 AM] Registering platform 'homebridge-isy-js.isy-js'
[4/21/2020, 11:32:56 AM] ---
[4/21/2020, 11:32:56 AM] Loaded plugin: homebridge-config-ui-x
[4/21/2020, 11:32:56 AM] Registering platform 'homebridge-config-ui-x.config'
[4/21/2020, 11:32:56 AM] ---
[4/21/2020, 11:32:56 AM] Loading 1 platforms...
[4/21/2020, 11:32:56 AM] Error: The requested platform 'ISY' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:134:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:327:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:90:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
[4/21/2020, 11:32:56 AM] Got SIGTERM, shutting down Homebridge...
pradeepmouli commented 4 years ago

Yes - thanks.

Sent from my iPhone

On Apr 21, 2020, at 2:14 PM, Kaveh notifications@github.com wrote:

 Should work now. Please let me know - you'll have to change the platform/platform name to "ISY" from "isy-js".

Should the readme be updated to reflect this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

nathanjskelton commented 4 years ago

last time i made the switch my homekit and alexa devices reset-- is there a way that you know of to switch from the rodtoll version to yours without disrupting the setup? I have about 70 devices so it's a pain...

On Tue, Apr 21, 2020 at 2:02 PM Pradeep Mouli notifications@github.com wrote:

Should work now. Please let me know - you'll have to change the platform/platform name to "ISY" from "isy-js".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pradeepmouli/homebridge-isy-js/issues/5#issuecomment-617322748, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTO32YD3NU3VXROUA3FB6TRNXNVBANCNFSM4MI3IBCQ .

dwightstanley commented 4 years ago

When I try this with my Homebridge Docker - I get the following error: Error: Cannot find module 'homebridge/node_modules/hap-nodejs/dist/lib/util/uuid' Require stack:

homebridge-isy-js works fine for me - just wanted this updated kit

pradeepmouli commented 4 years ago

You need to upgrade to homebridge@beta

Sent from my iPhone

On Apr 22, 2020, at 3:21 PM, Dwight Stanley notifications@github.com wrote:

 When I try this with my Homebridge Docker - I get the following error: Error: Cannot find module 'homebridge/node_modules/hap-nodejs/dist/lib/util/uuid'

homebridge-isy-js works fine for me - just wanted this updated kit

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

kavehv commented 4 years ago

You need to upgrade to homebridge@beta

Any chance you could update the README.md with these requirements?

pradeepmouli commented 4 years ago

I think it’s on there

Sent from my iPhone

On Apr 22, 2020, at 6:06 PM, Kaveh notifications@github.com wrote:

 You need to upgrade to homebridge@beta …

Any chance you could update the README.md with these requirements?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

kavehv commented 4 years ago

homebridge@beta is, but the name/platform changes seem to be the old ones in the sample config in it. I'm still running into the issue I pointed out earlier when changing these to ISY

I think it’s on there

nathanjskelton commented 4 years ago

Still getting error loading in HOOBS3/docker:

Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: [Homebridge] [4/29/2020, 1:45:36 PM] Error loading plugin "homebridge-isy". Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: [Homebridge] [4/29/2020, 1:45:36 PM] Error: Cannot find module 'homebridge/lib/platformAccessory' Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: Require stack: Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /hoobs/node_modules/homebridge-isy/dist/plugin.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/plugin.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/server.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/cli.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/bin/homebridge Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:864:27) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.require (internal/modules/cjs/loader.js:1044:19) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at require (internal/modules/cjs/helpers.js:77:18) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object. (/hoobs/node_modules/homebridge-isy/dist/plugin.js:7:29) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module._compile (internal/modules/cjs/loader.js:1158:30) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.load (/hoobs/node_modules/coffeescript/lib/coffee-script/register.js:45:36) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:901:14) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.require (internal/modules/cjs/loader.js:1044:19) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at require (internal/modules/cjs/helpers.js:77:18) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Plugin.load (/usr/src/hoobs/lib/bridge/plugin.js:46:27) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Server. (/usr/src/hoobs/lib/bridge/server.js:159:20) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Array.forEach (:null:null) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Server._loadPlugins (/usr/src/hoobs/lib/bridge/server.js:153:24) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at new Server (/usr/src/hoobs/lib/bridge/server.js:66:26) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at module.exports (/usr/src/hoobs/lib/bridge/cli.js:43:20) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object. (/usr/src/hoobs/lib/bridge/bin/homebridge:27:59) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module._compile (internal/modules/cjs/loader.js:1158:30) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.load (internal/modules/cjs/loader.js:1002:32) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:901:14) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at internal/main/run_main_module.js:18:47

pradeepmouli commented 4 years ago

Okay - will take a look

Sent from my iPhone

On Apr 29, 2020, at 9:58 AM, nathanjskelton notifications@github.com wrote:

 Still getting error loading in HOOBS3/docker:

Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: [Homebridge] [4/29/2020, 1:45:36 PM] Error loading plugin "homebridge-isy". Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: [Homebridge] [4/29/2020, 1:45:36 PM] Error: Cannot find module 'homebridge/lib/platformAccessory' Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: Require stack: Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /hoobs/node_modules/homebridge-isy/dist/plugin.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/plugin.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/server.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/cli.js Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/bin/homebridge Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:864:27) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.require (internal/modules/cjs/loader.js:1044:19) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at require (internal/modules/cjs/helpers.js:77:18) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object. (/hoobs/node_modules/homebridge-isy/dist/plugin.js:7:29) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module._compile (internal/modules/cjs/loader.js:1158:30) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.load (/hoobs/node_modules/coffeescript/lib/coffee-script/register.js:45:36) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:901:14) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.require (internal/modules/cjs/loader.js:1044:19) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at require (internal/modules/cjs/helpers.js:77:18) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Plugin.load (/usr/src/hoobs/lib/bridge/plugin.js:46:27) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Server. (/usr/src/hoobs/lib/bridge/server.js:159:20) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Array.forEach (:null:null) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Server._loadPlugins (/usr/src/hoobs/lib/bridge/server.js:153:24) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at new Server (/usr/src/hoobs/lib/bridge/server.js:66:26) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at module.exports (/usr/src/hoobs/lib/bridge/cli.js:43:20) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object. (/usr/src/hoobs/lib/bridge/bin/homebridge:27:59) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module._compile (internal/modules/cjs/loader.js:1158:30) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Module.load (internal/modules/cjs/loader.js:1002:32) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:901:14) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) Apr 29 09:45:36 ubuntu01 ead8c5b7b9aa[30215]: at internal/main/run_main_module.js:18:47

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

pradeepmouli commented 4 years ago

try now. I changed the location it uses to search for homebridge, since it the docker image doesn't support global installs.

nathanjskelton commented 4 years ago

no dice

Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: [Homebridge] [4/30/2020, 1:45:46 PM] Error loading plugin "homebridge-isy". Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: [Homebridge] [4/30/2020, 1:45:46 PM] Error: Cannot find module '/usr/local/lib/node_modules/homebridge' Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: Require stack: Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: - /hoobs/node_modules/homebridge-isy/dist/plugin.js Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/plugin.js Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/server.js Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/cli.js Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: - /usr/src/hoobs/lib/bridge/bin/homebridge Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:864:27) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Module.require (internal/modules/cjs/loader.js:1044:19) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at require (internal/modules/cjs/helpers.js:77:18) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Object. (/hoobs/node_modules/homebridge-isy/dist/plugin.js:7:22) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Module._compile (internal/modules/cjs/loader.js:1158:30) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Module.load (/hoobs/node_modules/coffeescript/lib/coffee-script/register.js:45:36) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:901:14) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Module.require (internal/modules/cjs/loader.js:1044:19) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at require (internal/modules/cjs/helpers.js:77:18) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Plugin.load (/usr/src/hoobs/lib/bridge/plugin.js:46:27) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Server. (/usr/src/hoobs/lib/bridge/server.js:159:20) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Array.forEach (:null:null) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Server._loadPlugins (/usr/src/hoobs/lib/bridge/server.js:153:24) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at new Server (/usr/src/hoobs/lib/bridge/server.js:66:26) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at module.exports (/usr/src/hoobs/lib/bridge/cli.js:43:20) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Object. (/usr/src/hoobs/lib/bridge/bin/homebridge:27:59) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Module._compile (internal/modules/cjs/loader.js:1158:30) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Module.load (internal/modules/cjs/loader.js:1002:32) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Function.Module._load (internal/modules/cjs/loader.js:901:14) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]: at internal/main/run_main_module.js:18:47 Apr 30 09:45:46 ubuntu01 ead8c5b7b9aa[30215]:

nathanjskelton commented 4 years ago

Any update on getting this to work with HOOBS3?