Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashes HB after proper plugin install #19

Open
rangerek opened this issue Oct 15, 2020 · 2 comments
Open

crashes HB after proper plugin install #19

rangerek opened this issue Oct 15, 2020 · 2 comments

Comments

@rangerek
Copy link

Oct 15 12:53:01 homebridge homebridge[32468]: [10/15/2020, 12:53:01 PM] ERROR LOADING PLUGIN homebridge-xiaomi-air-purifier3: Oct 15 12:53:01 homebridge homebridge[32468]: [10/15/2020, 12:53:01 PM] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined Oct 15 12:53:01 homebridge homebridge[32468]: at validateString (internal/validators.js:125:11) Oct 15 12:53:01 homebridge homebridge[32468]: at Object.join (path.js:1147:7) Oct 15 12:53:01 homebridge homebridge[32468]: at userData (/usr/local/lib/node_modules/homebridge-xiaomi-air-purifier3/node_modules/appdirectory/lib/appdirectory.js:21:29) Oct 15 12:53:01 homebridge homebridge[32468]: at AppDirectory._setTemplates (/usr/local/lib/node_modules/homebridge-xiaomi-air-purifier3/node_modules/appdirectory/lib/appdirectory.js:134:34) Oct 15 12:53:01 homebridge homebridge[32468]: at new AppDirectory (/usr/local/lib/node_modules/homebridge-xiaomi-air-purifier3/node_modules/appdirectory/lib/appdirectory.js:129:10) Oct 15 12:53:01 homebridge homebridge[32468]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-xiaomi-air-purifier3/node_modules/miio/lib/tokens.js:8:14) Oct 15 12:53:01 homebridge homebridge[32468]: at Module._compile (internal/modules/cjs/loader.js:778:30) Oct 15 12:53:01 homebridge homebridge[32468]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) Oct 15 12:53:01 homebridge homebridge[32468]: at Module.load (internal/modules/cjs/loader.js:653:32) Oct 15 12:53:01 homebridge homebridge[32468]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12) Oct 15 12:53:01 homebridge homebridge[32468]: [10/15/2020, 12:53:01 PM] ====================

this is not my first plugin install and never seen such an issue :(

@rangerek
Copy link
Author

rangerek commented Nov 3, 2020

not sure if this plugin is still maintained :( as there is no update - my temporary solution was to hardcode the paths into var /root/.local/ or /root/.cache/ - but need to understand why it returns undefined while executing node command to show process.env returns:
> console.log(process.env) { SHELL: '/bin/bash', LANGUAGE: 'en_US:en', PWD: '/root', LOGNAME: 'root', HOME: '/root', LANG: 'en_US.UTF-8', TERM: 'xterm-256color', USER: 'root', SHLVL: '1', PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', MAIL: '/var/mail/root', _: '/usr/local/bin/node' }

@maxmacstn
Copy link

I've just installed this plugin and it seems to works perfectly with my Mi Air Purifier 3H (Global version).

My Setup

HomeBridge 1.1.6
OS : Raspbian GNU/Linux Buster (10)
Node JS Version: v10.21.0
NPM version: v6.14.5
Storage path: /home/pi/.homebridge
Config path: /home/pi/.homebridge/config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants