Beiträge von __bene

    Ok hättest mir dazu kurz den richtigen Befehl?


    ist das die richtige Log?

    Marco Schmidt danke für den Tipp mit den Klammern hat auch funktioniert :D


    Als ich in config bei Host die Mac Adresse eingegeben hab, hat die Homebridge aufgehört zu funktionieren und jetzt bekomm ich Sie nicht mehr zum starten.

    In die Homebridge UI X komm ich auch nicht mehr.


    Ich brauch bitte eure Hilfe ||


    sudo /etc/init.d/homebridge status

    Stopped


    sudo service homebridge status


    ? homebridge.service - LSB: Start daemon at boot time

    Loaded: loaded (/etc/init.d/homebridge; generated; vendor preset: enabled)

    Active: active (exited) since Sat 2019-01-26 21:43:45 CET; 12min ago

    Docs: man:systemd-sysv-generator(8)

    Process: 1237 ExecStop=/etc/init.d/homebridge stop (code=exited, status=0/SUCCESS)

    Process: 1244 ExecStart=/etc/init.d/homebridge start (code=exited, status=0/SUCCESS)

    CGroup: /system.slice/homebridge.service


    Jan 26 21:43:45 raspberrypi systemd[1]: Starting LSB: Start daemon at boot time...

    Jan 26 21:43:45 raspberrypi homebridge[1244]: Starting homebridge

    Jan 26 21:43:45 raspberrypi sudo[1249]: root : TTY=unknown ; PWD=/root ; USER=root ; ENV=DEBUG=* ; COMMAND=/usr/local/bin/homebridge

    Jan 26 21:43:45 raspberrypi sudo[1249]: pam_unix(sudo:session): session opened for user root by (uid=0)

    Jan 26 21:43:45 raspberrypi systemd[1]: Started LSB: Start daemon at boot time.

    Jan 26 21:43:52 raspberrypi sudo[1249]: pam_unix(sudo:session): session closed for user root

    Die config.json stimmt nicht. Kannst du mal drüber schauen wo es hängt?



    Ahh ok und wo soll ich den einfügen? Also unter Platforms Broadlink oder ?

    Muss ich am Host etwas anderes eingeben?


    Ich bin neu in diesem Bereich und habe keine Kenntnisse


    Hallo alle zusammen

    Ich brauch eure hilfe ich bekomme die config nicht zum laufen. Kann mir bitte jemand helfen diese richtig zustellen?



    {

    "bridge": {

    "name": "Homebridge",

    "username": "CC:33:3D:E3:CE:72",

    "port": 51826,

    "pin": "031-45-448"

    },

    "accessories": [{

    "name": "Pi Temp",

    "accessory": "RaspberryPiTemperature"

    },

    {

    "accessory": "MagicHome",

    "purewhite": true,

    "name": "LED Strip",

    "ip": "192.168.2.102",

    "setup": "RGB"

    },

    {

    "accessory": "RmOutlet",

    "name": "Schrank",

    "systemcode": "11111",

    "unitcode": 1,

    "pin": 15

    },

    {

    "accessory": "RmOutlet",

    "name": "Plattenspieler",

    "systemcode": "11111",

    "unitcode": 2,

    "pin": 15

    },

    {

    "accessory": "RmOutlet",

    "name": "Schalter",

    "systemcode": "11111",

    "unitcode": 3,

    "pin": 15

    }

    ],

    "platforms": [{

    "platform": "config",

    "name": "Config",

    "port": 8080,

    "restart": "sudo /etc/init.d/homebridge restart",

    "tempUnits": "c",

    "theme": "blue",

    "sudo": false,

    "log": {

    "method": "custom",

    "command": "sudo tail -f /var/log/homebridge.log"

    },

    ]

    }],

    "platform": "BroadlinkRM",

    "name": "Broadlink RM",

    "accessories": [{

    "name": "TV On/Off",

    "type": "switch",

    "data": {

    "on": "2600500000012...",

    "off": "2600500000012..."

    }

    ]

    }

    ]

    }

    }

    ]

    }

    Hab eine neue in home erstellt aber er zeigt mir immer noch als Error das People Plugin an.

    Kannst du mir die Config mit RmOutlet und ohne People platofrm bitte machen?


    Das Magichome Plugin will irgendwie nicht ich hab keine Ahnung wieso. Hab die ip in der Einstellung auf meinen Pi gesetzt aber er will nicht. Hab auch die ip auf meinen Router gesetzt hat nix geändert.

    Die Schalter sind jetzt weg aber als Error wird RmOutlet angezeigt. Hab es aber deinstalliert.


    [2018-11-20 17:49:15] Loaded config.json with 5 accessories and 1 platforms.

    [2018-11-20 17:49:15] ---

    [2018-11-20 17:49:16] Loaded plugin: homebridge-magichome

    homebridge API version: 2.2

    [2018-11-20 17:49:16] Registering accessory 'homebridge-magichome.MagicHome'

    [2018-11-20 17:49:16] ---

    [2018-11-20 17:49:17] Loaded plugin: homebridge-people

    [2018-11-20 17:49:17] Registering platform 'homebridge-people.People'

    [2018-11-20 17:49:17] Registering accessory 'homebridge-people.PeopleAccessory'

    [2018-11-20 17:49:17] Registering accessory 'homebridge-people.PeopleAllAccessory'

    [2018-11-20 17:49:17] ---

    [2018-11-20 17:49:17] Loaded plugin: homebridge-raspberrypi-temperature

    [2018-11-20 17:49:17] Registering accessory 'homebridge-raspberrypi-temperature.RaspberryPiTemperature'

    [2018-11-20 17:49:17] ---

    [2018-11-20 17:49:17] Loading 1 platforms...

    [2018-11-20 17:49:17] [People] Initializing People platform...

    [2018-11-20 17:49:17] [People] Initializing platform accessory 'Pete'...

    [2018-11-20 17:49:17] [People] Initializing platform accessory 'Someone Else'...

    [2018-11-20 17:49:17] [People] Initializing platform accessory 'Anyone'...

    [2018-11-20 17:49:17] [People] WebHook: Started server on port '51828'.

    [2018-11-20 17:49:17] Loading 5 accessories...

    [2018-11-20 17:49:17] [Pi Temp] Initializing RaspberryPiTemperature accessory...

    [2018-11-20 17:49:17] [LED Strip] Initializing MagicHome accessory...

    /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 'RmOutlet' 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/server.js:286:42)

    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:87:38)

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

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

    at Module._compile (module.js:649:30)

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

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

    at tryModuleLoad (module.js:501:12)

    at Function.Module._load (module.js:493:3)

    Das wäre super wenn du mir helfen könntest was ich löschen kann.

    Die kleine Platine hab ich also daran kann es nicht liegen. Die Schalter funktionieren perfekt kann mir nicht vorstellen woran das liegen kann.


    Wenn ich die People Plugin und platform löschen möchte, welche Klammern muss ich stehen lassen damit es richtig ist?

    hab ich gemacht jetzt kommt das hier.


    [2018-11-20 16:37:38] Loaded config.json with 5 accessories and 1 platforms.

    [2018-11-20 16:37:38] ---

    [2018-11-20 16:37:38] Loaded plugin: homebridge-magichome

    homebridge API version: 2.2

    [2018-11-20 16:37:38] Registering accessory 'homebridge-magichome.MagicHome'

    [2018-11-20 16:37:38] ---

    [2018-11-20 16:37:39] Loaded plugin: homebridge-people

    [2018-11-20 16:37:39] Registering platform 'homebridge-people.People'

    [2018-11-20 16:37:39] Registering accessory 'homebridge-people.PeopleAccessory'

    [2018-11-20 16:37:39] Registering accessory 'homebridge-people.PeopleAllAccessory'

    [2018-11-20 16:37:39] ---

    [2018-11-20 16:37:39] Loaded plugin: homebridge-raspberrypi-temperature

    [2018-11-20 16:37:39] Registering accessory 'homebridge-raspberrypi-temperature.RaspberryPiTemperature'

    [2018-11-20 16:37:39] ---

    [2018-11-20 16:37:40] Loaded plugin: homebridge-remote-outlet

    [2018-11-20 16:37:40] Registering accessory 'homebridge-remote-outlet.RmOutlet'

    [2018-11-20 16:37:40] ---

    [2018-11-20 16:37:40] Loading 1 platforms...

    [2018-11-20 16:37:40] [People] Initializing People platform...

    [2018-11-20 16:37:40] [People] Initializing platform accessory 'Pete'...

    [2018-11-20 16:37:40] [People] Initializing platform accessory 'Someone Else'...

    [2018-11-20 16:37:40] [People] Initializing platform accessory 'Anyone'...

    [2018-11-20 16:37:40] [People] WebHook: Started server on port '51828'.

    [2018-11-20 16:37:40] Loading 5 accessories...

    [2018-11-20 16:37:40] [Pi Temp] Initializing RaspberryPiTemperature accessory...

    [2018-11-20 16:37:40] [LED Strip] Initializing MagicHome accessory...

    [2018-11-20 16:37:40] [Schalter C] Initializing RmOutlet accessory...

    [2018-11-20 16:37:40] [Schalter A] Initializing RmOutlet accessory...

    [2018-11-20 16:37:40] [Schalter B] Initializing RmOutlet accessory...

    Setup Payload:

    X-HM://0023ISZ552HD8

    throw er; // Unhandled 'error' event

    ^


    Error: listen EADDRINUSE :::51828

    at Server.setupListenHandle [as _listen2] (net.js:1345:14)

    at listenInCluster (net.js:1386:12)

    at Server.listen (net.js:1474:7)

    at PeoplePlatform.startServer (/usr/local/lib/node_modules/homebridge-people/index.js:120:24)

    at PeoplePlatform.accessories (/usr/local/lib/node_modules/homebridge-people/index.js:60:14)

    at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:386:20)

    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:330:16)

    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:36)

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

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

    Emitted 'error' event at:

    at emitErrorNT (net.js:1365:8)

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

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

    at startup (bootstrap_node.js:194:16)

    at bootstrap_node.js:666:3

    Also hab es so gemacht wie du gesagt hast. Konnte die Config Datei erstellen kann die LED Leiste leider immer noch nicht steuern.

    Hab weiter unten meine Config Datei nochmal als Text angehängt.

    Es muss irgendwie mit den People Plugin zu tun haben.


    [2018-11-20 15:59:42] Loaded config.json with 5 accessories and 1 platforms.

    [2018-11-20 15:59:42] ---

    [2018-11-20 15:59:42] Loaded plugin: homebridge-magichome

    homebridge API version: 2.2

    [2018-11-20 15:59:42] Registering accessory 'homebridge-magichome.MagicHome'

    [2018-11-20 15:59:42] ---

    [2018-11-20 15:59:42] Loaded plugin: homebridge-raspberrypi-temperature

    [2018-11-20 15:59:42] Registering accessory 'homebridge-raspberrypi-temperature.RaspberryPiTemperature'

    [2018-11-20 15:59:42] ---

    [2018-11-20 15:59:42] Loaded plugin: homebridge-remote-outlet

    [2018-11-20 15:59:42] Registering accessory 'homebridge-remote-outlet.RmOutlet'

    [2018-11-20 15:59:42] ---

    [2018-11-20 15:59:42] Loading 1 platforms...

    /usr/local/lib/node_modules/homebridge/lib/api.js:122

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

    ^


    Error: The requested platform 'People' was not registered by any plugin.

    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)

    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:316:45)

    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:36)

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

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

    at Module._compile (module.js:649:30)

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

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

    at tryModuleLoad (module.js:501:12)

    at Function.Module._load (module.js:493:3)



    {

    "bridge": {

    "name": "Homebridge",

    "username": "CD:22:3D:E3:CE:72",

    "port": 51826,

    "pin": "031-45-449"

    },

    "accessories": [{

    "name": "Pi Temp",

    "accessory": "RaspberryPiTemperature"

    }, {

    "accessory": "MagicHome",

    "purewhite": true,

    "name": "LED Strip",

    "ip": "192.168.2.101",

    "setup": "RGB"

    }, {

    "accessory": "RmOutlet",

    "unitcode": 1,

    "name": "Schalter C",

    "pin": 15,

    "systemcode": "11111"

    }, {

    "accessory": "RmOutlet",

    "unitcode": 2,

    "name": "Schalter A",

    "pin": 15,

    "systemcode": "11111"

    }, {

    "accessory": "RmOutlet",

    "unitcode": 3,

    "name": "Schalter B",

    "pin": 15,

    "systemcode": "11111"

    }],

    "platforms": [{

    "platform": "People",

    "threshold": 15,

    "anyoneSensor": true,

    "nooneSensor": false,

    "webhookPort": 51828,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0,

    "people": [{

    "name": "Pete",

    "target": "PetesiPhone",

    "threshold": 15,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0

    },

    {

    "name": "Someone Else",

    "target": "192.168.1.68",

    "threshold": 15,

    "pingInterval": 10000,

    "ignoreReEnterExitSeconds": 0

    }

    ]

    }]

    }

    Das kam dabei raus:


    pi@raspberrypi:~ $ homebridge

    [2018-11-19 23:56:54] config.json (/home/pi/.homebridge/config.json) not found.

    [2018-11-19 23:56:54] Loaded plugin: homebridge-magichome

    homebridge API version: 2.2

    [2018-11-19 23:56:54] Registering accessory 'homebridge-magichome.MagicHome'

    [2018-11-19 23:56:54] ---

    [2018-11-19 23:56:54] Loaded plugin: homebridge-raspberrypi-temperature

    fs.js:667

    return binding.open(pathModule.toNamespacedPath(path),

    ^


    Error: ENOENT: no such file or directory, open '/home/pi/.homebridge/config.json'

    at Object.fs.openSync (fs.js:667:18)

    at Object.fs.readFileSync (fs.js:572:33)

    at isConfig (/usr/local/lib/node_modules/homebridge-raspberrypi-temperature/index.js:20:32)

    at Plugin.module.exports [as initializer] (/usr/local/lib/node_modules/homebridge-raspberrypi-temperature/index.js:7:9)

    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:167:14)

    at Array.forEach (<anonymous>)

    at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:141:22)

    at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:57:24)

    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:30:16)

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

    Danke schonmal hab deine Config Datei verwendet, nur das people und wol Plugin haben nicht funktioniert hab diese mal gelöscht und seitdem geht es wieder. Leider funktioniert das MagicHome Plugin nicht.

    Welche Log Datei meinst du ? Bei mir kommt da nicht mehr. Hast du einen anderen Terminal Befehl damit ich dir die richtige zeigen kann.

    Hm ok. Hier die Log Datei.


    [2018-11-18 21:50:24] Homebridge is running on port 51826.

    [2018-11-18 21:50:48] Got SIGTERM, shutting down Homebridge...

    [2018-11-18 21:51:24] Loaded config.json with 5 accessories and 0 platforms.

    [2018-11-18 21:51:24] ---

    [2018-11-18 21:51:24] Loaded plugin: homebridge-magichome

    homebridge API version: 2.2

    [2018-11-18 21:51:24] Registering accessory 'homebridge-magichome.MagicHome'

    [2018-11-18 21:51:24] ---

    [2018-11-18 21:51:24] Loaded plugin: homebridge-people

    [2018-11-18 21:51:24] Registering accessory 'homebridge-people.people'

    [2018-11-18 21:51:24] ---

    [2018-11-18 21:51:24] Loaded plugin: homebridge-raspberrypi-temperature

    [2018-11-18 21:51:24] Registering accessory 'homebridge-raspberrypi-temperature.RaspberryPiTemperature'

    [2018-11-18 21:51:24] ---

    [2018-11-18 21:51:24] Loaded plugin: homebridge-remote-outlet

    [2018-11-18 21:51:24] Registering accessory 'homebridge-remote-outlet.RmOutlet'

    [2018-11-18 21:51:24] ---

    [2018-11-18 21:51:24] Loaded plugin: homebridge-wol

    [2018-11-18 21:51:24] Registering accessory 'homebridge-wol.NetworkDevice'

    [2018-11-18 21:51:24] ---

    [2018-11-18 21:51:24] Loading 0 platforms...

    [2018-11-18 21:51:24] Loading 5 accessories...

    [2018-11-18 21:51:24] [Pi Temp] Initializing RaspberryPiTemperature accessory...

    [2018-11-18 21:51:24] [Schalter A] Initializing RmOutlet accessory...

    [2018-11-18 21:51:24] [Schalter B] Initializing RmOutlet accessory...

    [2018-11-18 21:51:24] [LED Strip] Initializing MagicHome accessory...

    [2018-11-18 21:51:24] [Schalter C] Initializing RmOutlet accessory...

    Setup Payload:

    X-HM://0023ISZ558DHO

    So ich hab heut mal bissle getüftelt und hab rausgefunden das ich über die App zugriff aufs Terminal und die config Datei haben kann.

    Bisher hab ich es geschafft das Plugin zu installieren aber bekomme es nicht hin das die LED Streifen sich steuern lassen.


    Ich habe folgenden Controller
    https://www.amazon.de/gp/produ…psc=1&tag=hktips-forum-21


    Kann es vielleicht sein das der Controller gar nicht kompatibel mit dem Plugin ist?


    config Datei sieht wie folgt aus:


    {

    "accessories" : [

    {

    "name" : "Pi Temp",

    "accessory" : "RaspberryPiTemperature"

    },

    {

    "accessory" : "RmOutlet",

    "unitcode" : 2,

    "name" : "Schalter A",

    "pin" : 15,

    "systemcode" : "11111"

    },

    {

    "accessory" : "RmOutlet",

    "unitcode" : 3,

    "name" : "Schalter B",

    "pin" : 15,

    "systemcode" : "11111"

    },

    {

    "accessory" : "MagicHome",

    "purewhite" : true,

    "name" : "LED Strip",

    "ip" : "192.168.2.101",

    "setup" : "RGB"

    },

    {

    "accessory" : "RmOutlet",

    "unitcode" : 1,

    "name" : "Schalter C",

    "pin" : 15,

    "systemcode" : "11111"

    }

    ],

    "bridge" : {

    "username" : "CD:22:3D:E3:CE:72",

    "name" : "Homebridge",

    "pin" : "031-45-449",

    "port" : 51826

    },

    "platforms" : [


    ]

    }