Homebridge config.json datei root fehler

  • HI habe meine Homebridge neu auf gesetzt alles soweit instaliert doch leider wenn ich mit sudo homebridge starten will kommt der fehler config.json (/root/.homebridge/config.json) not found.

    Wenn ich die datei dort neu anlege startet er aber ohne mir den QR code zu zeigen schaut auch ganz anders aus


    [6/15/2018, 9:25:23 AM] Loaded config.json with 11 accessories and 1 platforms.

    [6/15/2018, 9:25:23 AM] ---

    [6/15/2018, 9:25:23 AM] Loaded plugin: homebridge-harmonyhub

    [6/15/2018, 9:25:25 AM] Registering platform 'homebridge-harmonyhub.HarmonyHub'

    [6/15/2018, 9:25:25 AM] ---

    [6/15/2018, 9:25:25 AM] Loaded plugin: homebridge-http-simple-switch

    [6/15/2018, 9:25:25 AM] Registering accessory 'homebridge-http-simple-switch.Sim pleHttpSwitch'

    [6/15/2018, 9:25:25 AM] ---

    [6/15/2018, 9:25:25 AM] Loading 1 platforms...

    [6/15/2018, 9:25:25 AM] [HarmonyHub] Initializing HarmonyHub platform...

    [6/15/2018, 9:25:25 AM] Loading 11 accessories...

    /usr/lib/node_modules/homebridge/lib/api.js:64

    throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");

    ^


    Error: The requested accessory 'HTTP-SWITCH' was not registered by any plugin.

    at API.accessory (/usr/lib/node_modules/homebridge/lib/api.js:64:13)

    at Server.str.replace.Server._loadAccessories (/usr/lib/node_modules/homebri dge/lib/server.js:284:42)

    at Server.str.replace.Server.run (/usr/lib/node_modules/homebridge/lib/serve r.js:86:38)

    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)

    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22 )

    at Module._compile (module.js:409:26)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Function.Module.runMain (module.js:441:10)

    at startup (node.js:140:18)

    at node.js:1043:3


    was kann ich machen

  • Hier ist meine config ist da was falsch

    {

    "bridge":{

    "name":"Homebridge",

    "username":"CC:22:3D:E3:CE:21",

    "port":51826,

    "pin":"031-45-154"

    },

    "accessories":[

    {

    "accessory": "HTTP-SWITCH",

    "name": "Lava Lampe",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=toggle,typ,it,did,0C86,aid,4,acmd,2,seq,6&id=4"

    },


    {

    "accessory": "HTTP-SWITCH",

    "name": "Wohnzimmer Lampe An",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=on,typ,ir,seq,0,dta,A,10,8,10,A,10,A,10,8,8,12,8,10,8,12,10,A,10,8,8,12,10,A,10,8,128,A,10,A,E,A,10,A,10,8,8,12,6,12,8,12,10,A,E,A,8,12,10,8,10,A,128,8,12,8,10,A,10,8,12,8,8,12,6,14,6,12,10,A,E,A,8,12,10,A,E,A,128,A,10,8,10,A,10,8,10,A,8,12,6,12,8,12,10,A,10,8,8,12,10,8,10,A,128,A,10,8,10,A,10,8,10,A,8,12,6,12,8,12,10,8,10,A,8,12,10,8,10,A,128,A,10,8,10,A,10,8,10,A,8,12,6,12,8,12,10,8,10,A,8,10,12,8,10,A&id=6"

    },

    {

    "accessory": "HTTP-SWITCH",

    "name": "Wohnzimmer Lampe Aus",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=off,typ,ir,seq,0,dta,A,10,A,E,A,10,A,E,A,8,12,6,12,8,12,10,A,6,12,10,A,10,A,E,A,128,A,10,A,E,A,10,A,E,A,8,12,6,14,6,12,10,A,6,12,10,A,10,8,10,A,128,A,E,A,10,A,10,A,E,A,8,12,6,14,6,12,10,A,6,12,10,A,10,A,E,A,128,A,E,A,10,A,10,A,E,A,8,12,6,12,8,12,10,A,6,12,10,A,10,A,E,A,128,A,10,A,E,A,10,A,E,A,8,12,6,12,8,12,10,A,6,12,10,A,E,A,10,A,128,A,E,A,10,A,10,A,E,A,8,12,6,14,6,12,10,8,8,12,10,A,10,8,10,A&id=8"

    },


    {

    "accessory": "HTTP-SWITCH",

    "name": "Wohnzimeer Lampe Wechsel",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=on,typ,ir,seq,0,dta,A,10,8,10,A,10,A,10,8,8,12,8,10,8,12,10,A,10,8,8,12,10,A,10,8,128,A,10,A,E,A,10,A,10,8,8,12,6,12,8,12,10,A,E,A,8,12,10,8,10,A,128,8,12,8,10,A,10,8,12,8,8,12,6,14,6,12,10,A,E,A,8,12,10,A,E,A,128,A,10,8,10,A,10,8,10,A,8,12,6,12,8,12,10,A,10,8,8,12,10,8,10,A,128,A,10,8,10,A,10,8,10,A,8,12,6,12,8,12,10,8,10,A,8,12,10,8,10,A,128,A,10,8,10,A,10,8,10,A,8,12,6,12,8,12,10,8,10,A,8,10,12,8,10,A&id=6"

    },

    {

    "accessory": "HTTP-SWITCH",

    "name": "Wohnzimmer Led",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=on,typ,ir,seq,0,dta,A,10,A,E,A,10,A,10,8,8,12,8,12,6,12,10,A,6,12,8,12,10,A,10,8,128,A,10,A,E,A,10,A,10,A,6,12,8,12,6,12,10,A,6,14,6,12,10,A,E,A,128,A,10,A,E,A,10,A,10,8,8,12,8,12,6,12,10,A,6,14,6,12,10,A,10,8,128,A,10,A,E,A,10,A,10,A,6,12,8,12,6,12,10,A,8,12,6,12,10,A,10,8,128,A,10,A,10,8,10,A,10,A,6,12,8,12,6,14,E,A,6,14,6,12,10,A,10,8,128,A,10,A,E,A,10,A,10,A,6,12,8,12,6,12,10,A,8,12,6,12,10,A,10,A&id=9"

    },


    {

    "accessory": "HTTP-SWITCH",

    "name": "Led Leiste",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=toggle,typ,it,did,0C06,aid,1,acmd,2,seq,6&id=1"

    },

    {

    "accessory": "HTTP-SWITCH",

    "name": "Led Leiste Rot",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=on,typ,ir,seq,0,dta,B4,58,C,A,C,A,E,8,E,A,C,A,C,A,C,A,C,A,C,20,E,1E,E,20,C,20,C,20,E,1E,E,20,C,20,C,A,C,A,E,8,E,20,C,20,C,A,C,20,E,8,E,20,C,20,C,20,E,8,E,8,E,20,C,A,C,20,E,314,B2,2C,C&id=11"

    },


    {

    "accessory": "HTTP-SWITCH",

    "name": "Led Leiste Grün",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=on,typ,ir,seq,0,dta,B4,58,C,A,C,A,C,A,E,8,E,8,E,A,C,A,C,A,C,20,C,20,E,1E,E,20,C,20,C,20,E,20,C,20,C,20,C,A,E,8,E,20,C,20,C,A,C,20,E,8,E,8,E,20,C,20,C,A,E,8,C,20,E,A,C,20,C,314,B4,2C,C&id=10"

    },

    {

    "accessory": "HTTP-SWITCH",

    "name": "Küche Rollo Runter",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=down%20long,typ,rom,did,61061BF1,acmd,6,seq,4&id=14"

    },


    {

    "accessory": "HTTP-SWITCH",

    "name": "Küchen Rollo Rauf",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=up%20long,typ,rom,did,61061BF1,acmd,5,seq,4&id=14"

    },

    {

    "accessory": "HTTP-SWITCH",

    "name": "Küchen Rollo Stop",

    "switchType": "stateless",

    "timeout": 1500,

    "onUrl": "http://192.168.178.23/control?cmd=stop,typ,rom,did,61061BF1,acmd,1,seq,4&id=14"

    }



    ],

    "platforms":[

    {

    "platform":"HarmonyHub",

    "name":"HarmonyHub",

    "ip_addresse":"192.168.178.41"

    }

    ]

    }

  • Wenn ich die http sachen rauslösche geht die config wieder.


    [6/15/2018, 10:39:04 AM] Loaded config.json with 0 accessories and 1 platforms.

    [6/15/2018, 10:39:04 AM] ---

    [6/15/2018, 10:39:05 AM] Loaded plugin: homebridge-harmonyhub

    [6/15/2018, 10:39:06 AM] Registering platform 'homebridge-harmonyhub.HarmonyHub'

    [6/15/2018, 10:39:06 AM] ---

    [6/15/2018, 10:39:06 AM] Loaded plugin: homebridge-http-simple-switch

    [6/15/2018, 10:39:06 AM] Registering accessory 'homebridge-http-simple-switch.SimpleHttpSwitch'

    [6/15/2018, 10:39:06 AM] ---

    [6/15/2018, 10:39:06 AM] Loading 1 platforms...

    [6/15/2018, 10:39:06 AM] [HarmonyHub] Initializing HarmonyHub platform...

    [6/15/2018, 10:39:06 AM] Loading 0 accessories...

    Setup Payload:

    X-HM://0023ISYWYDICF

    Scan this code with your HomeKit app on your iOS device to pair with Homebridge:




























    Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:


    ??????????????

    ? 031-45-154 ?

    ??????????????


    events.js:160

    throw er; // Unhandled 'error' event

    ^


    Error: bind EADDRINUSE 0.0.0.0:5224

    at Object.exports._errnoException (util.js:1022:11)

    at exports._exceptionWithHostPort (util.js:1045:20)

    at dgram.js:221:18

    at _combinedTickCallback (internal/process/next_tick.js:77:11)

    at process._tickCallback (internal/process/next_tick.js:98:9)

    at Module.runMain (module.js:606:11)

    at run (bootstrap_node.js:394:7)

    at startup (bootstrap_node.js:149:9)

    at bootstrap_node.js:509:3


    Unten stehen noch paar erros

  • Also wenn du alles doppelt postest in zwei verschiedenen Threads, melde ich mich jetzt mal ab!


  • Sorry aber des war ein anderer fehler deswegen habe ich des neu auf gemacht.

    Habe nun denn http switch instaliert aber die homebridge ladet ihn mir nicht


    pi@raspberrypi:~ $ sudo npm i homebridge-http-switch

    /home/pi

    ??? [email protected]


    npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'

    npm WARN pi No description

    npm WARN pi No repository field.

    npm WARN pi No README data

    npm WARN pi No license field.

    pi@raspberrypi:~ $ homebridge

    [6/15/2018, 12:23:49 PM] Loaded config.json with 0 accessories and 1 platforms.

    [6/15/2018, 12:23:49 PM] ---

    [6/15/2018, 12:23:49 PM] Loaded plugin: homebridge-harmonyhub

    [6/15/2018, 12:23:51 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub'

    [6/15/2018, 12:23:51 PM] ---

    [6/15/2018, 12:23:51 PM] Loading 1 platforms...

    [6/15/2018, 12:23:51 PM] [HarmonyHub] Initializing HarmonyHub platform...

    [6/15/2018, 12:23:51 PM] Loading 0 accessories...

    Setup Payload:

    X-HM://0023ISYWYDICF

    Scan this code with your HomeKit app on your iOS device to pair with Homebridge:




























    Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:


    ??????????????

    ? 031-45-154 ?

    ??????????????


    [6/15/2018, 12:23:51 PM] Homebridge is running on port 51826.

    [6/15/2018, 12:23:52 PM] [HarmonyHub] Fetching Logitech Harmony activities...

    [6/15/2018, 12:23:54 PM] [HarmonyHub] Found activities:

    PowerOff

    Philips Bluetooth

    TV

    Ipad mini


    An was kann es liegen?

  • Kann ja nicht geladen werden ist ja gar nicht installiert, so wie ich das sehe.


    Setz deinen Pi doch mal neu auf nach der Anleitung von sschuste, dann sind alle Verzeichnisse da wo sie sein sollen, die Homebridge wird systemd gestartet usw.

    Dann weiss man auch wie man die helfen kann. Dauert keine halbe Stunde.

    Code
    https://forum.smartapfel.de/attachment/3325-homebridge-setup-v31-compressed-pdf/

    Hilfreich ist dann auch das plugin welches dir eine grafische Oberfläche auf dem Rechner bietet. Mit umfänglichern Administrationsmöglichkeiten.


  • Ich habe es heut schon neu gemacht hat nichts geholfen und das plugin habe ich auch instaliert sudo npm i homebridge-http-switch<br>


    Einmal editiert, zuletzt von recovery () aus folgendem Grund: Dann kommt halt der fehler [6/15/2018, 12:56:48 PM] Loaded config.json with 11 accessories and 1 platforms. [6/15/2018, 12:56:48 PM] --- [6/15/2018, 12:56:48 PM] Loaded plugin: homebridge-harmonyhub [6/15/2018, 12:56:49 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub' [6/15/2018, 12:56:49 PM] --- [6/15/2018, 12:56:50 PM] Loading 1 platforms... [6/15/2018, 12:56:50 PM] [HarmonyHub] Initializing HarmonyHub platform... [6/15/2018, 12:56:50 PM] Loading 11 accessories... /usr/local/lib/node_modules/homebridge/lib/api.js:64 throw new Error("The requested accessory '" + name + "' was not registered by any plugin."); ^ Error: The requested accessory 'HTTP-SWITCH' was not registered by any plugin. at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13) at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/serve r.js:284:42) at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:38) at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge :17:22) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

  • HI habe meine Homebridge neu auf gesetzt alles soweit instaliert doch leider wenn ich mit sudo homebridge starten will kommt der fehler config.json (/root/.homebridge/config.json) not found.

    Wenn du homebridge mit homebridge aufrufst, sollte die Konfiguration in /home/pi/.homebridge liegen. Rufst du sie mit sudo homebridge auf, dann liegt die Konfiguration in /root/.homebridge.


    Stefan

  • Ich benutze homebridge-http. Sieht bei mir so aus:


    Gruß

  • Hi also der http plugin geht soweit meine lampe wird gefunden doch leider passiert nix wenn ich drauf drücke habe sie so eingestellt

    "accessory":"Http",

    "name":"Lava Lampe",

    "switchHandling": "realtime",

    "onUrl":"http://192.168.178.23/control?cmd=on,typ,it,did,0C86,aid,4,acmd,1,seq,6&id=4",

    "off_url": "http://192.168.178.23/control?cmd=off,typ,it,did,0C86,aid,4,acmd,0,seq,6&id=4"

    An was könnte es liegen

  • IP-Adresse richtig? Was passiert, wenn du http://192.168.178.23/control?…6,aid,4,acmd,1,seq,6&id=4 in deinem Browser eingibst? Was passiert, wenn du auf der Shell vom Raspi eingibst:


    curl http://192.168.178.23/control?cmd=on,typ,it,did,0C86,aid,4,acmd,1,seq,6&id=4


    Stefan

  • So habe es jetzt noch mla Probiert alles nue auf gesetzt und siehe da es ging endlich ich danke euch noch mal sehr für eure hilfe und gedult.

    Großen dank an SPY habe jetzt noch eine fraage soweit läuft alles aber die error habe ich sind die schlimm?


    Error: bind EADDRINUSE 0.0.0.0:5224

    at Object.exports._errnoException (util.js:907:11)

    at exports._exceptionWithHostPort (util.js:930:20)

    at dgram.js:214:18

    at nextTickCallbackWith3Args (node.js:522:9)

    at process._tickCallback (node.js:428:17)

    at Function.Module.runMain (module.js:443:11)

    at startup (node.js:140:18)

    at node.js:1043:3

  • Error: bind EADDRINUSE 0.0.0.0:5224


    Error: immer schlimm

    bind: irgendwas mit Netzwerk

    EADDRINUSE: E(rror) ADDRess IN USE: Netzwerkadresse wird schon benutzt, wahrscheinlich läuft der Service schon und du willst ihn ein zweites Mal starten.

    0.0.0.0:5224: Was immer das sein mag.


    Stefan