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

iobroker.ham funktioniert nicht mehr mit homebridge 1.0.x #58

Closed
fugazzy opened this issue Apr 29, 2020 · 18 comments
Closed

iobroker.ham funktioniert nicht mehr mit homebridge 1.0.x #58

fugazzy opened this issue Apr 29, 2020 · 18 comments

Comments

@fugazzy
Copy link

fugazzy commented Apr 29, 2020

iobroker.ham funktioniert nicht mehr mit homebridge 1.0.x

@denzel1994
Copy link

denzel1994 commented Apr 30, 2020

Indeed no functionality with 1.0.x

`

ham.0 2020-04-30 09:42:55.874 info (30099) Terminated (NO_ERROR): Without reason
ham.0 2020-04-30 09:42:55.873 info (30099) terminating
ham.0 2020-04-30 09:42:55.841 info (30099) cleaned everything up...
ham.0 2020-04-30 09:42:55.840 error at checkLocalMode (/opt/iobroker/node_modules/iobroker.ham/main.js:397:25)
ham.0 2020-04-30 09:42:55.840 error at checkLocalMode (/opt/iobroker/node_modules/iobroker.ham/main.js:203:13)
ham.0 2020-04-30 09:42:55.840 error at installAllLibraries (/opt/iobroker/node_modules/iobroker.ham/main.js:378:21)
ham.0 2020-04-30 09:42:55.840 error at installAllLibraries (/opt/iobroker/node_modules/iobroker.ham/main.js:217:39)
ham.0 2020-04-30 09:42:55.840 error at Object.init (/opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js:88:12)
ham.0 2020-04-30 09:42:55.840 error at require (internal/modules/cjs/helpers.js:25:18)
ham.0 2020-04-30 09:42:55.840 error at Module.require (internal/modules/cjs/loader.js:692:17)
ham.0 2020-04-30 09:42:55.840 error at Function.Module._load (/opt/iobroker/node_modules/mock-require/index.js:30:22)
ham.0 2020-04-30 09:42:55.840 error at Function.Module._load (internal/modules/cjs/loader.js:562:25)
ham.0 2020-04-30 09:42:55.840 error at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
ham.0 2020-04-30 09:42:55.840 error (30099) Error: Cannot find module '/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once'
ham.0 2020-04-30 09:42:55.839 error (30099) uncaught exception: Cannot find module '/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once'
ham.0 2020-04-30 09:42:55.346 debug (30099) Use Global Homebridge Path: /usr/lib/node_modules/homebridge/
ham.0 2020-04-30 09:42:55.344 info (30099) No additional Libraries to install ...
ham.0 2020-04-30 09:42:55.318 info (30099) starting. Version 1.1.2 in /opt/iobroker/node_modules/iobroker.ham, node: v10.20.1, js-controller: 3.0.19

`

@Apollon77
Copy link
Collaborator

Jupp. Bitte downgraden. Die 1.0 ist wie die Versionsnummer sagt „breaking“ und da hat sich sehr viel geändert. Muss mal schauen was geht überhaupt.

@Mr-REM-Esq
Copy link

Jupp. Bitte downgraden. Die 1.0 ist wie die Versionsnummer sagt „breaking“ und da hat sich sehr viel geändert. Muss mal schauen was geht überhaupt.

Do I need to downgrade to 0.4.5? How should I do it?

@Apollon77
Copy link
Collaborator

If you have the adaoter working again then yes you should downgrade. Downgrade the same way as you updated but with @0.4.5 or such

@Apollon77
Copy link
Collaborator

Somehow you updated homebridge ... it was not via the adapter

@Mr-REM-Esq
Copy link

Somehow you updated homebridge ... it was not via the adapter

Yes, I upgraded it too. Do I need downgrade adapter or homebridge?

@Apollon77
Copy link
Collaborator

homebridge is the reason not the adapter

@Mr-REM-Esq
Copy link

Mr-REM-Esq commented May 8, 2020

OK. If I leave the current version of the adapter and downgrade the homebridge it will be enough?

@Apollon77
Copy link
Collaborator

should be

@Mr-REM-Esq
Copy link

Which version of hombridge is right for me?

@Apollon77
Copy link
Collaborator

which one you had befopre you upgraded homebride? I don't know ... it needs to be <1.0

@Mr-REM-Esq
Copy link

I am updated on every new version

@Mr-REM-Esq
Copy link

sudo npm install -g -unsafe-perm homebridge@0.4.53 -g

Is it right command?

@fugazzy
Copy link
Author

fugazzy commented May 18, 2020

Is there any chance to get this fixed quite soon? Otherwise it would start to separate homebridge and iobroker again.
I activated the Iobroker-Homematic-Adapter already, because I needed to geht the information about tilted windows to HomeKit (virtual switch in homebridge and script in iobroker)
BTW: homebridge is now on version 1.1.0

@Apollon77
Copy link
Collaborator

Quite soon ... hm ... let me think ... homebridge 1.1.0 is based on a new hap library version and both projects where converted to typescript and so i consider them as a rewrite. The ham adapter is doing quite some interception magic and overwrites methods from the original classes.

You are welcome to get familiar with all of this and provide needed PRs and code changes. Then it will be faster.

If you can not then I‘m really sorry that you need to wait till I find time analyzing this.

The solution to get it working again for now is to head back to homebridge <1.0 ... or what’s the exact reason to be on 1.x?

@Apollon77
Copy link
Collaborator

Please try with a homebridge 1.1 and the new 2.0 of the adapter

@entavio
Copy link

entavio commented Aug 4, 2020

i have updated to v2.0 and the adapter gets green again with the plugin merdok/homebridge-xiaomi-fan#17

but the problem is i don't get any data set points for mapping to yahka

@Apollon77
Copy link
Collaborator

As said: Please set iobroker adapter logging to debug (instances - exper mode - column loglevel) and then get the full log from adapter start from the logfile on disk (NOT via admin web ui!!) (/opt/iobroker/log/...) and post here

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

5 participants