homebridge-nukiio

  • Hmm, OK, ich habe jetzt mal den Port beim Docker-Image eingetragen - ich nutze macvlan. Dachte, da wäre das nicht notwendig?
    Das scheint aber eine Lösung zu sein. Es funktioniert zumindest mal besser.
    Vielen Dank



    Gesendet von iPad mit Tapatalk

  • Hallo Zusammen,


    ich habe auch ein kleines Problem mit dem ansonsten prima funktionierenden Plugin:


    Solange ich den Webhook aus der Config weglasse läuft alles bestens, sobald ich die Parameter für den Webhook einfüge stoppt die Homebridge.


    Hat jemand eine Idee?


    Meine Config für das Plugin:


    ]

    },


    und die Fehlermeldung:


    [Homebridge] [10/19/2019, 10:21:57 AM] Error: listen EADDRINUSE: address already in use 0.0.0.0:51827[Homebridge] at Server.setupListenHandle [as _listen2] (net.js:1279:14)[Homebridge] at listenInCluster (net.js:1327:12)[Homebridge] at doListen (net.js:1460:7)[Homebridge] at process._tickCallback (internal/process/next_tick.js:63:19)[Homebridge] at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)[Homebridge] at startup (internal/bootstrap/node.js:283:19)[Homebridge] at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)[Homebridge] [10/19/2019, 10:21:57 AM] Got SIGTERM, shutting down service...[Homebridge] [10/19/2019, 10:21:57 AM] [NukiBridge] Send request to Nuki bridge 'http://192.168.178.32:8080' on '/callback/list' with '{"token":"xxx"}'.[Homebridge] [10/19/2019, 10:21:57 AM] [NukiBridge] Request to Nuki bridge 'http://192.168.178.32:8080' finished with status code '200' and body '{"callbacks": [{"id": 0, "url": "http://192.168.178.63:51827/"}]}'. null[Homebridge] [10/19/2019, 10:21:57 AM] [NukiBridge] Webhook for plugin already exists.

  • Vielleicht war ich doch zu schnell...


    Die Homebridge läuft jetzt auch mit dem ergänzten Webhook, im Log sieht das jetzt so aus, hat das so alles seine Richtigkeit?:


    Danke!


    [Homebridge] [10/19/2019, 2:34:10 PM] [NukiBridge] Initializing NukiBridge platform...

    [Homebridge] [10/19/2019, 2:34:10 PM] [NukiBridge] Initializing Nuki bridge 'http://192.168.178.32:8080'...

    [Homebridge] [10/19/2019, 2:34:10 PM] [NukiBridge] Started server for webhooks on port '51830'.

    [Homebridge] [10/19/2019, 2:34:10 PM] [NukiBridge] Adding webhook for plugin to bridge...

    [Homebridge] [10/19/2019, 2:34:10 PM] [NukiBridge] Initialized Nuki bridge.

    [Homebridge] [10/19/2019, 2:34:10 PM] [NukiBridge] Initializing platform accessory 'Wohnungstür'...

    [Homebridge] [10/19/2019, 2:34:10 PM] [NukiBridge] Initializing platform accessory 'Haustür'...

    ...

    [Homebridge] [10/19/2019, 2:34:11 PM] [NukiBridge] Request to Nuki bridge 'http://192.168.178.32:8080' finished with status code '200' and body '{"callbacks": [{"id": 0, "url": "http://192.168.178.63:51827/"},{"id": 1, "url": "http://192.168.178.63:51828/"},{"id": 2, "url": "http://192.168.178.63:51830/"}]}'. null

  • Hallo,


    Ich habe heute meine Homebridge auf Autostart umgestellt. Soweit läuft auch alles. Habe mich an die Anleitung von "sschuste" gehalten.


    Homebridge Autostart Problem


    Jetzt habe ich jedoch das Problem, dass mir Homebridge immer abschmiert wenn ich in HomeKit das Nuki steuere.

    Im Log, sehe ich folgende Fehler. Kann mir eventuell jemand einen Tip geben, wo das Problem liegt.


    Danke im Voraus

    Euer Oberst.


    Log:

    [2019-10-20 22:52:58] Homebridge is running on port 51826.

    pi : TTY=pts/0 ; PWD=/home/pi/.homebridge ; USER=root ; COMMAND=/bin/journalctl -o cat -n 500 -f -u homebridge

    pam_unix(sudo:session): session opened for user root by (uid=0)

    [2019-10-20 22:53:45] [Nuki] Process lock action '2' for Nuki lock 'xxxxxxx' (instance id '0') on Nuki bridge 'http://192.168.001.222:8080'.

    [2019-10-20 22:53:45] [Nuki] Send request to Nuki bridge 'http://192.168.001.222:8080' on '/lockAction' with '{"token":"FI6xkq","nukiId":"xxxxxxxx","deviceType":0,"action":"2"}'.

    [2019-10-20 22:53:55] [Nuki] Request to Nuki bridge 'http://192.168.001.222:8080' finished with status code '200' and body '{"success": true, "batteryCritical": false}'. null

    [2019-10-20 22:53:55] Error: EACCES: permission denied, open '/.node-persist/storage/b472ee01b4165c802e8dfc819a05753d'

    at Object.fs.openSync (fs.js:545:3)

    at Object.fs.writeFileSync (fs.js:1275:33)

    at LocalStorage.persistKeySync (/usr/local/lib/node_modules/homebridge-nukiio/node_modules/node-persist/src/local-storage.js:460:16)

    at LocalStorage.setItemSync (/usr/local/lib/node_modules/homebridge-nukiio/node_modules/node-persist/src/local-storage.js:251:14)

    at NukiLock._setLockCache (/usr/local/lib/node_modules/homebridge-nukiio/src/nuki/NukiLock.js:166:27)

    at NukiLock.<anonymous> (/usr/local/lib/node_modules/homebridge-nukiio/src/nuki/NukiLock.js:80:12)

    at NukiBridge.<anonymous> (/usr/local/lib/node_modules/homebridge-nukiio/src/nuki/NukiBridge.js:368:11)

    at Request.self.callback (/usr/local/lib/node_modules/homebridge-nukiio/node_modules/request/request.js:185:22)

    at Request.emit (events.js:182:13)

    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-nukiio/node_modules/request/request.js:1157:10)

    at Request.emit (events.js:182:13)

    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-nukiio/node_modules/request/request.js:1079:12)

    at Object.onceWrapper (events.js:275:13)

    at IncomingMessage.emit (events.js:187:15)

    at endReadableNT (_stream_readable.js:1091:14)

    at process._tickCallback (internal/process/next_tick.js:174:19)

    [2019-10-20 22:53:55] Got SIGTERM, shutting down Homebridge...

    homebridge.service: main process exited, code=exited, status=143/n/a

    Unit homebridge.service entered failed state.

    homebridge.service holdoff time over, scheduling restart.

    Stopping Node.js HomeKit Server...

    Starting Node.js HomeKit Server...


    Und hier noch meine Zopfig als es hilfreich ist:


    {

    "bridge": {

    "username": "CD:22:3D:E3:C3:31",

    "name": "RonnyPi",

    "pin": "031-45-111",

    "port": 51826

    },

    "accessories": [

    {

    "accessory": "YamahaMC",

    "name": "YSP-1600",

    "host": "192.168.001.177",

    "zone": "main",

    "maxvol": 100

    },

    {

    "accessory": "XiaomiRoborockVacuum",

    "name": "Xiaomi Roborock S50 Vacuum 2nd Generation",

    "ip": "192.168.1.46",

    "token": "111111111111111111111111111",

    "pause": true,

    "dock": true

    }

    ],

    "platforms": [

    {

    "platform": "NukiBridge",

    "name": "Nuki",

    "api_token": "xxxxxx",

    "bridge_url": "192.168.001.222:8080",

    "webhook_port": "51827",

    "lock_state_mode": "1",

    "webhook_server_ip_or_name": "192.168.001.223",

    "locks": [

    {

    "id": "xxxxxxxx",

    "usesDoorLatch": "true",

    "name": "Tür",

    "priority": "1"

    }

    ],

    "openers": [

    {

    "id": "xxxxxxxx",

    "name": "Hoftor",

    "priority": "1"

    }

    ]

    },

    {

    "platform": "People",

    "name": "LEDSchalter",

    "threshold": "1",

    "pingInterval": "7000",

    "ignoreReEnterExitSeconds": "0",

    "anyoneSensor": "true",

    "nooneSensor": "false",

    "people": [

    {

    "name": "LEDKIZITV",

    "target": "192.168.001.007"

    }

    ]

    },

    {

    "platform": "config",

    "name": "config",

    "theme": "blue",

    "port": 8081,

    "sudo": true,

    "log": {

    "method": "systemd",

    "service": "homebridge"

    }

    },

    {

    "platform": "RademacherHomePilot",

    "name": "RademacherHomePilot",

    "url": "http://192.168.001.230"

    },

    {

    "debug": false,

    "password": "123456",

    "url": "http://192.168.1.1",

    "platform": "Fritz!Box",

    "username": "abcdef",

    "name": "Fritz",

    "interval": 90,

    "concurrent": true,

    "options": {

    "strictSSL": "false"

    }

    }

    ]

    }