CoolKit-Technologies / ha-addon

Apache License 2.0
264 stars 120 forks source link

Install on home assistant core #107

Closed peterterbe closed 1 year ago

peterterbe commented 1 year ago

I know that ha core doesn't support addons but I suppose it can still be installed manually. What I've done so far:

When I try to run npm start it throws the following error message:

ash-4.4# npm start

> ewelink_smart_home@1.0.0 start
> node index.js

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'coolkit-api'
Require stack:
- /var/packages/homeassistant/addons/ewelink.bin/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/var/packages/homeassistant/addons/ewelink.bin/index.js:63:37)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/var/packages/homeassistant/addons/ewelink.bin/index.js' ]

Tried to copy folders in a different structure with no luck. How can I resolve this?

niezw commented 1 year ago

Only two types of installation are currently supported HA Addon and Docker. The manual installation method is not supported.