icanos / hassio-plejd

Hass.io add-on for Plejd home automation devices
Apache License 2.0
126 stars 36 forks source link

Cannot find module './plejd' #13

Closed robertostlund closed 4 years ago

robertostlund commented 4 years ago

Hi!

Having some issues when starting the addon for the first time..


Add-on version: 0.1.0 You are running the latest version of this add-on. parse error: Expected string key before ':' at line 1, column 4 [23:22:21] ERROR: Unknown HTTP error occured System: (amd64 / qemux86-64) Home Assistant version: 0.103.2 Supervisor version: 193

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0. [cont-init.d] 01-log-level.sh: executing... [cont-init.d] 01-log-level.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [23:22:21] INFO: Starting the Plejd service... [23:22:21] INFO: Verified permissions on startup script [23:22:21] INFO: Executing startup script [23:22:21] INFO: Wrote plejd.json [23:22:21] INFO: Running add-on internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module './plejd' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/plejd/main.js:1:15) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3)

TorulfDanielsson commented 4 years ago

Same failure for me. Uninstalled 0.0.7 and installed 0.1.0 and got the same faliure.

HassOS 3.7 Hass.io supervisor 193 Home Assistant 0.103.2 RPi 3+

treet commented 4 years ago

Same problem, I opened a PR with a fix. There was still a reference to the old bluetooth communication implementation in main.js.

Edit: Tested the new BLE implementation and the lights seem to be a lot snappier turning on/off now.