richierockskool / homebridge-inkbird-wifi-gateway

homebridge Inkbird wifi gateway
https://github.com/richierockskool/homebridge-inkbird-wifi-gateway
Apache License 2.0
7 stars 6 forks source link

Problems getting Homebridge recognize the plugin #2

Closed richierockskool closed 1 year ago

richierockskool commented 2 years ago

This is a Homebridge plugin to hook into the Inkbird Gateway that I am trying to get working, I keep get this message...No plugin was found for the platform "homebridge-inkbird-wifi-gateway" in your config.json. Please make sure the corresponding plugin is installed correctly. Here is my config.json "platform":"HomebridgeInkbirdWifiGateway", "name": "homebridge-inkbird-wifi-gateway", "model": "IBS-M1S", "mac_address": "e8:db:84:b6:9c:e6", "ip": "99.228.220.201", "update_interval": 600, "storage": "filesystem", "loglevel": 3

richierockskool commented 2 years ago

getting these errors: Error loading the platform "HomebridgeInkbirdWifiGateway" requested in your config.json at position 5 - this is likely an issue with the "homebridge-inkbird-wifi-gateway" plugin.

Error: The requested platform 'HomebridgeInkbirdWifiGateway' was not registered by the plugin 'homebridge-inkbird-wifi-gateway'. at Plugin.getPlatformConstructor (/usr/local/lib/node_modules/homebridge/src/plugin.ts:154:13) at /usr/local/lib/node_modules/homebridge/src/server.ts:432:30 at Array.forEach () at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:400:27) at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:176:29)

richierockskool commented 1 year ago

Still getting these errors,

No plugin was found for the platform "HomebridgeInkbirdWifiGateway" in your config.json. Please make sure the corresponding plugin is installed correctly.

ERROR LOADING PLUGIN homebridge-inkbird-wifi-gateway: [8/26/2022, 8:39:33 AM] Error: Cannot find module '/usr/local/lib/node_modules/homebridge-inkbird-gateway/src/index.js' imported from /usr/local/lib/node_modules/homebridge/lib/plugin.js at new NodeError (node:internal/errors:387:5) at finalizeResolution (node:internal/modules/esm/resolve:429:11) at moduleResolve (node:internal/modules/esm/resolve:1006:10) at defaultResolve (node:internal/modules/esm/resolve:1214:11) at nextResolve (node:internal/modules/esm/loader:165:28) at ESMLoader.resolve (node:internal/modules/esm/loader:844:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:18) at ESMLoader.import (node:internal/modules/esm/loader:528:22) at importModuleDynamically (node:internal/modules/cjs/loader:1065:29) at importModuleDynamicallyWrapper (node:internal/vm/module:438:21)

And these warnings

[8/26/2022, 8:39:33 AM] Warning: skipping plugin found at '/usr/local/lib/node_modules/homebridge-inkbird-wifi-gateway' since we already loaded the same plugin from '/usr/local/lib/node_modules/homebridge-inkbird-gateway'. [8/26/2022, 8:39:33 AM] Warning: skipping plugin found at '/usr/local/lib/node_modules/homebridge-inkbird-wifi-gateway-platform' since we already loaded the same plugin from '/usr/local/lib/node_modules/homebridge-inkbird-gateway'.

Need help working through these,

Thank you

tonyburton commented 1 year ago

I have this same issue. This is my first installation of the plugin.

richierockskool commented 1 year ago

same April 19th after adding index.js ERROR LOADING PLUGIN homebridge-inkbird-wifi-gateway: [4/19/2023, 9:00:01 AM] Error: Cannot find module '/usr/local/lib/node_modules/homebridge-inkbird-wifi-gateway/src/index.js' imported from /usr/local/lib/node_modules/homebridge/lib/plugin.js at new NodeError (node:internal/errors:399:5) at finalizeResolution (node:internal/modules/esm/resolve:326:11) at moduleResolve (node:internal/modules/esm/resolve:945:10) at defaultResolve (node:internal/modules/esm/resolve:1153:11) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ESMLoader.import (node:internal/modules/esm/loader:525:22) at importModuleDynamically (node:internal/modules/cjs/loader:1186:29) at importModuleDynamicallyWrapper (node:internal/vm/module:429:21) [4/19/2023, 9:00:01 AM] ====================

mkz212 commented 1 month ago

How to solve this?