bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

Debug flag not recognized in config file #510

Closed RMCob closed 9 months ago

RMCob commented 10 months ago

What issue do you have? Please be as thorough and explicit as possible.

Per your README I added "debug": true to the configfile and got " [eWeLink] Config entry [debug] is unused and can be removed. "

Details of your setup.

Please paste any relevant logs below.

  [eWeLink] Config entry [debug] is unused and can be removed.
RMCob commented 9 months ago

More info on the problem I am having: Every 2 minutes the plugin aborts and restarts. While other than constantly restarting it appears to be functioning normally in that I can control my devices properly. Here is a snippet from the log file:

Error: EISDIR: illegal operation on a directory, read [9/17/2023, 9:56:12 AM] [eWeLink] Child bridge process ended [9/17/2023, 9:56:12 AM] [eWeLink] Process Ended. Code: 1, Signal: null [9/17/2023, 9:56:19 AM] [eWeLink] Restarting Process... [9/17/2023, 9:56:20 AM] [eWeLink] Launched child bridge with PID 19458 [9/17/2023, 9:56:21 AM] Registering platform 'homebridge-ewelink.eWeLink' [9/17/2023, 9:56:21 AM] [eWeLink] Loaded homebridge-ewelink v11.0.2 child bridge successfully [9/17/2023, 9:56:21 AM] Loaded 2 cached accessories from cachedAccessories.0E7BBECC2D82. [9/17/2023, 9:56:21 AM] [eWeLink] Initialising plugin v11.0.2 | System linux | Node v18.17.1 | HB v1.6.1 | HAPNodeJS v0.11.1... [9/17/2023, 9:56:21 AM] [eWeLink] Plugin initialised. Setting up accessories.... [9/17/2023, 9:56:21 AM] Homebridge v1.6.1 (HAP v0.11.1) (eWeLink) is running on port 30218. [9/17/2023, 9:56:24 AM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [5f20d867f7ab930007a6b80c]. [9/17/2023, 9:56:29 AM] [eWeLink] LAN monitoring started. [9/17/2023, 9:56:29 AM] [eWeLink] [Bedroom Fan] initialising with options {"hideLight":true,"logging":"standard"}. [9/17/2023, 9:56:29 AM] [eWeLink] [Bedroom Fan] initialised and found locally with IP [192.168.1.115] [34:iFan03]. [9/17/2023, 9:56:29 AM] [eWeLink] [Betty’s Office Fan] initialising with options {"hideLight":false,"logging":"standard"}. [9/17/2023, 9:56:29 AM] [eWeLink] [Betty’s Office Fan] initialised and found locally with IP [192.168.1.116] [34:iFan03]. [9/17/2023, 9:56:29 AM] [eWeLink] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful! Error: EISDIR: illegal operation on a directory, read [9/17/2023, 9:58:21 AM] [eWeLink] Child bridge process ended [9/17/2023, 9:58:21 AM] [eWeLink] Process Ended. Code: 1, Signal: null [9/17/2023, 9:58:28 AM] [eWeLink] Restarting Process... [9/17/2023, 9:58:29 AM] [eWeLink] Launched child bridge with PID 19604 [9/17/2023, 9:58:30 AM] Registering platform 'homebridge-ewelink.eWeLink' [9/17/2023, 9:58:30 AM] [eWeLink] Loaded homebridge-ewelink v11.0.2 child bridge successfully [9/17/2023, 9:58:30 AM] Loaded 2 cached accessories from cachedAccessories.0E7BBECC2D82. [9/17/2023, 9:58:30 AM] [eWeLink] Initialising plugin v11.0.2 | System linux | Node v18.17.1 | HB v1.6.1 | HAPNodeJS v0.11.1... [9/17/2023, 9:58:30 AM] [eWeLink] Plugin initialised. Setting up accessories.... [9/17/2023, 9:58:30 AM] Homebridge v1.6.1 (HAP v0.11.1) (eWeLink) is running on port 30218. [9/17/2023, 9:58:34 AM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [5f20d867f7ab930007a6b80c]. [9/17/2023, 9:58:38 AM] [eWeLink] LAN monitoring started. [9/17/2023, 9:58:38 AM] [eWeLink] [Bedroom Fan] initialising with options {"hideLight":true,"logging":"standard"}. [9/17/2023, 9:58:38 AM] [eWeLink] [Bedroom Fan] initialised and found locally with IP [192.168.1.115] [34:iFan03]. [9/17/2023, 9:58:38 AM] [eWeLink] [Betty’s Office Fan] initialising with options {"hideLight":false,"logging":"standard"}. [9/17/2023, 9:58:38 AM] [eWeLink] [Betty’s Office Fan] initialised and found locally with IP [192.168.1.116] [34:iFan03]. [9/17/2023, 9:58:38 AM] [eWeLink] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful!

bwp91 commented 9 months ago

This is very strange, I have not seen this before:

Error: EISDIR: illegal operation on a directory, read

I'm guessing it's something to do with the folders/files that the plugin creates to store some cache info.

In your homebridge storage directory (typically /var/lib/homebridge), do you have two folders in there (amongst others) called:

Inside both folders should be nothing more than files named as uuids. with no folders inside these ^

RMCob commented 9 months ago

Thanks for the suggestion on where to look. There was in fact some crud in /var/lib/homebridge/homebridge-ewelink. Don't know how it got there. I uninstalled the plugin, removed /var/lib/homebridge/homebridge-ewelink and /var/lib/homebridge/bwp91_cache, reinstalled the plugin, and now all is working well again!