ioBroker / ioBroker.ham

Supports homebridge plugins in ioBroker
MIT License
32 stars 15 forks source link

After Restore IOBROKER Homebridge Button shows no list #614

Open cobra98 opened 3 months ago

cobra98 commented 3 months ago

Describe the bug
After a problem with zigbee and bad bits a restore was done of iobroker, javascript, history, zigbee from one week. The devices implented by ham seems active and working. But the Section under zigbee -> HOMEBRDIGE can not be searched after modules anymore

Expected behavior
Before i could search under HOMEbridge for modules and load them

Screenshots & Logfiles
With iob DIAG it shows errors in NPM

Errors in npm tree:

npm ERR! code ELSPROBLEMS
npm ERR! missing: homebridge-airthings@^0.8.0, required by iobroker.ham@5.3.1
npm ERR! missing: homebridge-miot@^1.2.3, required by iobroker.ham@5.3.1
npm ERR! missing: node-mihome@^0.0.32, required by iobroker.javascript@7.8.0

Versions:

Nodejs-Installation:    /usr/bin/nodejs         v18.20.2
                        /usr/bin/node           v18.20.2
                        /usr/bin/npm            10.5.0
                        /usr/bin/npx            10.5.0
                        /usr/bin/corepack       0.25.2
ioBroker Core:          js-controller           5.0.19
                                  admin                   6.13.16

Not sure how i can fix the problem, fastest maybe uninstall ham Reinstall and copy script configuration under ham into it? HAM runs under WRAPPER Mode NPM Modules used "homebridge-airthings@0.8.0 homebridge-miot@1.2.3"

Maybe there is a trick to reinstall them to make the HOMEBRIDGE MODULE (BETA) working again? Not sure if it is a bug, but i make a backup i expect after restore everything should work normal again, so i put it as bug for a solution.

cobra98 commented 3 months ago

After using the Update NPM im HAM (Beim nächsten Start Homebridge Plugins aktualisieren) iob diag shows this additional now

"``` Errors in npm tree:

npm ERR! code ELSPROBLEMS
npm ERR! extraneous: buffer-shims@1.0.0 /opt/iobroker/node_modules/buffer-shims
npm ERR! extraneous: futoin-hkdf@1.4.3 /opt/iobroker/node_modules/futoin-hkdf
npm ERR! extraneous: homebridge-plugin-wrapper@3.2.0 /opt/iobroker/node_modules/homebridge-plugin-wrapper
npm ERR! extraneous: mock-require@3.0.3 /opt/iobroker/node_modules/mock-require
npm ERR! extraneous: node-persist@0.0.11 /opt/iobroker/node_modules/node-persist
npm ERR! extraneous: q@1.1.2 /opt/iobroker/node_modules/q
npm ERR! extraneous: remove-trailing-separator@1.1.0 /opt/iobroker/node_modules/remove-trailing-separator
npm ERR! extraneous: string-argv@0.3.2 /opt/iobroker/node_modules/string-argv
npm ERR! extraneous: debug@4.3.4 /opt/iobroker/node_modules/homebridge-plugin-wrapper/node_modules/debug
npm ERR! extraneous: fs-extra@10.1.0 /opt/iobroker/node_modules/homebridge-plugin-wrapper/node_modules/fs-extra
npm ERR! extraneous: ms@2.1.2 /opt/iobroker/node_modules/homebridge-plugin-wrapper/node_modules/ms
npm ERR! missing: node-mihome@^0.0.32, required by iobroker.javascript@7.8.0
npm ERR! extraneous: get-caller-file@1.0.3 /opt/iobroker/node_modules/mock-require/node_modules/get-caller-file
npm ERR! extraneous: normalize-path@2.1.1 /opt/iobroker/node_modules/mock-require/node_modules/normalize-path

npm ERR! A complete log of this run can be found in: /home/andreas/.npm/_logs/2024-04-13T12_12_19_779Z-debug-0.log

But logs shows only this

andreas@raspberrypi:~ $ ls /home/andreas/.npm/_logs 2023-04-16T18_41_42_716Z-debug-0.log 2023-04-16T18_46_01_935Z-debug-0.log 2023-04-16T19_05_24_951Z-debug-0.log 2023-04-16T19_05_29_302Z-debug-0.log 2024-04-13T12_14_30_363Z-debug-0.log 2023-04-16T18_42_29_959Z-debug-0.log 2023-04-16T18_58_49_839Z-debug-0.log 2023-04-16T19_05_26_326Z-debug-0.log 2024-04-13T12_12_42_317Z-debug-0.log 2023-04-16T18_45_59_875Z-debug-0.log 2023-04-16T19_02_05_843Z-debug-0.log 2023-04-16T19_05_27_907Z-debug-0.log 2024-04-13T12_14_29_041Z-debug-0.log

Apollon77 commented 3 months ago

Section under zigbee -> HOMEBRDIGE can not be searched after modules anymore

What you mean with this? Can you show a screenshot please?