• Hallo, ich weiß nicht ob das Thema hier richtig ist.

    Ich bekomme meine Bridge nicht mehr gestartet.

    Sieht jemand auf den ersten Blick, wo der Fehler evtl. liegen könnte?


    {

    "bridge": {

    "name": "Homebridge",

    "username": "CC:22:3:E3:CE:30",

    "port": 51826,

    "pin": "01-45-154"

    },

    "description": "Home Smart Home",

    "platforms": [{

    "platform": "People",

    "threshold": 10,

    "anyoneSensor": true,

    "nooneSensor": true,

    "webhookPort": 51828,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0,

    "people": [{

    "name": "Martin",

    "target": "iPhonevonMaddin",

    "threshold": 10,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0

    },

    {

    "name": "Ramona",

    "target": "Ramonas-iPhone",

    "threshold": 10,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0

    },

    {

    "name": "Sabine",

    "target": "iPhone",

    "threshold": 10,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0

    },

    {

    "name": "Uwe",

    "target": "iPhone-von-Uwe",

    "threshold": 10,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0

    },

    {

    "platform": "config",

    "name": "Config",

    "port": 8080,

    "auth": "form",

    "theme": "red",

    "restart": "sudo -n systemctl restart homebridge",

    "temp": "/sys/class/thermal/thermal_zone0/temp",

    "sudo": true,

    "log": {

    "method": "custom",

    "command": "journalctl -o cat -n 500 -f -u homebridge"

    }

    },

    {

    "platform": "eveatmo",

    "name": "eveatmo platform",

    "extra_co2_sensor": false,

    "co2_alert_threshold": 1000,

    "ttl": 300,

    "auth": {

    "client_id": "5d8d059d6bd262783d4ae29b",

    "client_secret": "XJUpxBgnTeLCJIdWm1jRVGlY2JDYM3hvmK2WmfZbC",

    "username": "[email protected]",

    "password": "S"

    }

    },

    {

    "platform": "Hue",

    "host": "192.168.18.58",

    "users": {

    "ECB5FAFFFE00636D": "VNZ8-G1x9eLjBncJfNerx-cx05hedBHMMUC-"

    },

    "lights": true

    }

    ],

    "accessories": [{

    "name": "Xiaomi Mi Robot Vaccum 1st Generation",

    "ip": "192.168.178.28",

    "token": "4c36664474454b33463475484246",

    "pause": false,

    "dock": false,

    "accessory": "XiaomiRoborockVacuum"

    },

    {

    "accessory": "SamsungSmartTV2018",

    "name": "Samsung TV DG",

    "ip_address": "192.168.178.35",

    "mac_address": "40:0:3B:79:87:64"

    },

    {

    "accessory": "PiTemperature",

    "name": "Raspberry PI Temperatur"

    },

    {

    "accessory": "DummySwitch",

    "name": "WT",

    "stateful": true

    },

    {

    "accessory": "DummySwitch",

    "name": "SA",

    "stateful": true

    },

    {

    "accessory": "DummySwitch",

    "name": "SO",

    "stateful": true

    },

    {

    "accessory": "DummySwitch",

    "name": "1 Minute",

    "time": 60000

    }

    ]

    Gruß

    Maddin

    Einmal editiert, zuletzt von Maddin84 ()

  • Code
    Error: Parse error on line 119:
    ...: 60000					}				]
    ---------------------^
    Expecting '}', ',', got 'EOF'

    ja aber damit kann ich nix anfangen, er will wohl ein Komma oder eine klammer. da tut sich aber nix, wenn ich das einfüge

    Gruß

    Maddin

  • raspberrypi homebridge[5643]: SyntaxError: Unexpected end of JSON input

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at JSON.parse (<anonymous>)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:212:19)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:38)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:32:16)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at Module._compile (internal/modules/cjs/loader.js:778:30)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at Module.load (internal/modules/cjs/loader.js:653:32)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

    Oct 08 22:38:04 raspberrypi homebridge[5643]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)

    Oct 08 22:38:04 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Oct 08 22:38:04 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Oct 08 22:38:14 raspberrypi systemd[1]: homebridge.service: Service RestartSec=10s expired, scheduling restart.

    Oct 08 22:38:14 raspberrypi systemd[1]: homebridge.service: Scheduled restart job, restart counter is at 85.

    Oct 08 22:38:14 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Oct 08 22:38:14 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Oct 08 22:38:16 raspberrypi homebridge[5666]: [10/8/2019, 10:38:16 PM] There was a problem reading your config.json file.

    Oct 08 22:38:16 raspberrypi homebridge[5666]: [10/8/2019, 10:38:16 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com

    Oct 08 22:38:16 raspberrypi homebridge[5666]: [10/8/2019, 10:38:16 PM]

    Oct 08 22:38:16 raspberrypi homebridge[5666]: /usr/local/lib/node_modules/homebridge/lib/server.js:218

    Oct 08 22:38:16 raspberrypi homebridge[5666]: throw err;

    Oct 08 22:38:16 raspberrypi homebridge[5666]: ^

    Oct 08 22:38:16 raspberrypi homebridge[5666]: SyntaxError: Unexpected end of JSON input

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at JSON.parse (<anonymous>)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:212:19)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:38)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:32:16)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at Module._compile (internal/modules/cjs/loader.js:778:30)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at Module.load (internal/modules/cjs/loader.js:653:32)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

    Oct 08 22:38:16 raspberrypi homebridge[5666]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)

    Oct 08 22:38:16 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Oct 08 22:38:16 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.


    Diese Meldungen bekomme ich, wenn ich die Bridge starten will.

    Ich verstehe nur Bahnhof

    Gruß

    Maddin

  • {


    "bridge": {


    "name": "Homebridge",


    "username": "CC:22:3:E3:CE:30",


    "port": 51826,


    "pin": "01-45-154"


    },


    "description": "Home Smart Home",


    "platforms": [{


    "platform": "People",


    "threshold": 10,


    "anyoneSensor": true,


    "nooneSensor": true,


    "webhookPort": 51828,


    "pingInterval": 10000,


    "ignoreReEnterExitSeconds": 0,


    "people": [{


    "name": "Martin",


    "target": "iPhonevonMaddin",


    "threshold": 10,


    "pingInterval": 10000,


    "ignoreReEnterExitSeconds": 0


    },


    {


    "name": "Ramona",


    "target": "Ramonas-iPhone",


    "threshold": 10,


    "pingInterval": 10000,


    "ignoreReEnterExitSeconds": 0


    },


    {


    "name": "Sabine",


    "target": "iPhone",


    "threshold": 10,


    "pingInterval": 10000,


    "ignoreReEnterExitSeconds": 0


    },


    {


    "name": "Uwe",


    "target": "iPhone-von-Uwe",


    "threshold": 10,


    "pingInterval": 10000,


    "ignoreReEnterExitSeconds": 0


    },


    {


    "platform": "config",


    "name": "Config",


    "port": 8080,


    "auth": "form",


    "theme": "red",


    "restart": "sudo -n systemctl restart homebridge",


    "temp": "/sys/class/thermal/thermal_zone0/temp",


    "sudo": true,


    "log": {


    "method": "custom",


    "command": "journalctl -o cat -n 500 -f -u homebridge"


    }


    },


    {


    "platform": "eveatmo",


    "name": "eveatmo platform",


    "extra_co2_sensor": false,


    "co2_alert_threshold": 1000,


    "ttl": 300,


    "auth": {


    "client_id": "5d8d059d6bd262783d4ae29b",


    "client_secret": "XJUpxBgnTeLCJIdWm1jRVGlY2JDYM3hvmK2WmfZbC",


    "username": "[email protected]",


    "password": "S"


    }


    },


    {


    "platform": "Hue",


    "host": "192.168.18.58",


    "users": {


    "ECB5FAFFFE00636D": "VNZ8-G1x9eLjBncJfNerx-cx05hedBHMMUC-"


    },


    "lights": true


    }


    ],


    "accessories": [{


    "name": "Xiaomi Mi Robot Vaccum 1st Generation",


    "ip": "192.168.178.28",


    "token": "4c36664474454b33463475484246",


    "pause": false,


    "dock": false,


    "accessory": "XiaomiRoborockVacuum"


    },


    {


    "accessory": "SamsungSmartTV2018",


    "name": "Samsung TV DG",


    "ip_address": "192.168.178.35",


    "mac_address": "40:0:3B:79:87:64"


    },


    {


    "accessory": "PiTemperature",


    "name": "Raspberry PI Temperatur"


    },


    {


    "accessory": "DummySwitch",


    "name": "WT",


    "stateful": true


    },


    {


    "accessory": "DummySwitch",


    "name": "SA",


    "stateful": true


    },


    {


    "accessory": "DummySwitch",


    "name": "SO",


    "stateful": true


    },


    {


    "accessory": "DummySwitch",


    "name": "1 Minute",


    "time": 60000


    }


    ]

    }]

    }


    Schau dir in Ruhe deine config an. Denn wenn eine offene Klammer ist, muss diese auch irgendwann geschlossen werden. Bei dir haben insgesamt 3 Klammern gefehlt....

  • Die Zeile 119 ist die letzte Zeile deiner config und endet mit einer eckigen Klammer. Meine Config endet mit einer geschweiften Klammer. Ich würde eine Zeile hinzufügen und dann die Klammer eintragen siehe nachfolgendes Beispiel:


    Code
            {
                "accessory": "mi-flower-care",
                "name": "EZ Dummy",
                "deviceId": "C4:7C:8D:6A:EA:DC",
                "interval": 300
            }
        ]
    }
  • Error: Accessories must be created with a non-empty displayName.

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:49:27)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:445:21)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:413:32)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:16:19

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at PeoplePlatform.accessories (/usr/local/lib/node_modules/homebridge-people/index.js:58:9)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:403:20)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:341:16)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:90:36)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    Oct 08 22:54:48 raspberrypi homebridge[2097]: [10/8/2019, 10:54:48 PM] Got SIGTERM, shutting down Homebridge...

    Oct 08 22:54:53 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a

    Oct 08 22:54:53 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.


    klappt leider noch nicht, jetzt kommt der folgende Fehler

    Gruß

    Maddin

  • habs gelöst, die klammern beim people plugin waren falsch.

    ich mach mir jetzt erst mal ne Sicherung.

    was ne Sucherei....


    danke euch!!!

    Gruß

    Maddin

  • Probier es mal so....

    Und auch wenn ich da eigentlich kein Prinzipienreiter bin, wenn Du die Quellcode Funktion nutzt ist der Beitrag leichter zu lesen...


  • Na das sage ich doch die ganze Zeit.... :/:/:/

    ja, dank dir bin ich auch drauf gekommen.

    Hab dann die beispiel config des plugins geöffnet und da wurde ich fündig. Von alleine wäre ich aber nicht drauf gekommen.


    sorry, quelltext funktion nutze ich das nächste mal.


    vielen dank für die schnelle hilfe!!

    Gruß

    Maddin