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

callback call in yahka.homekit-bridge.js:121:31 should be removed #55

Closed
stoffel7 opened this issue Jun 5, 2018 · 2 comments
Closed

Comments

@stoffel7
Copy link

stoffel7 commented Jun 5, 2018

callback call in yahka.homekit-bridge.js:121:31 should be removed ...

wenn Datenpunkte in einem Script mit "on ({..." subscriptions gesteuert werden, dann stürzt der YAHKA-Adapter kontinuierlich ab.
Fehlermeldung:
Error: This callback function has already been called by someone else; it can only be called one time.

Zeile auskommentieren:
https://github.com/jensweigele/ioBroker.yahka/blob/master/yahka.homekit-bridge.js#L133
dann stürzt der Adapter nicht mehr permanent ab,
aber sobald man über Homekit(IPhone) zugreift, kommt wieder ein Absturz
Fehlermeldung dann:
yahka.0 2018-06-05 20:56:58.404 error Error: This callback function has already been called by someone else; it can only be called one time. at /opt/iobroker/node_modules/hap-nodejs/lib/util/once.js:12:13 at /opt/iobroker/node_mod yahka.0 2018-06-05 20:56:58.402 error uncaught exception: This callback function has already been called by someone else; it can only be called one time.
siehe auch:
https://forum.iobroker.net/viewtopic.php?f=20&t=14693

@jensweigele
Copy link
Owner

Kannst du mir mehr Details geben?
Ich habe ein Script angelegt mit folgendem Code
`
on({id: 'javascript.0.Garten-Relais.R1state'}, function(dp) {
anhang='?relais=0&schalte='+dp.state.val
log ('sende an 1');

});`

Und einen Switch in Yahka angelegt mit folgenden Einstellungen:
image

Ich kann den Switch bedienen und auch den Wert über ioBroker ändern - ohne Abstürze.

@stoffel7
Copy link
Author

Hallo,
ich konnte den Fehler jetzt nicht mehr reproduzieren,
bin allerdings mittlerweile auf einen neuen Raspi mit neuer Installation umgestiegen

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