homebridge-alexa

  • Das Thema ist gerade auch bei mir aktuell. Bin von einer Instanz auf 3 Instanzen gegangen. Nur die Alexa von der Instanz, in der sie auch konfiguriert ist funktioniert. Was tun? Überall dazu? Muss ich dann wieder ALLES neu zu HK hinzufügen, oder kann ich einfach die Config Json in jeder Instanz um Alexa ergänzen?

  • Naja, homebridge-alexa funktioniert mit der homebridge, die sie startet und greift über den homebridge-Port auf sie zu. Bei drei Instanzen erscheinen mir dann drei homebridge-alexas logisch.


    Ich würde einfach die fehlenden homebridge-alexa-Konfigurationen in die entsprechende config.json hinzufügen. An die pin denken.


    Stefan

  • Ich habs ausprobiert. Jede Instanz die benötigt wird, braucht dann auch eine Alexa -.-


    Ich hatte keine Lust jetzt meine neu eingerichteten thermostate wieder alle durcheinander zu hauen.

    Wahrscheinlich muessen nun persist und acc. gelöscht werden, da ich alexa NACH der kompletten Konfiguration in die config.json eingefügt habe.


    Läuft aber trotzdem

    Code
    ERROR: ( homebridge-alexa) You have an issue with your installation, please review the README
  • @all


    Eigentlich müsste ein Eintrag in der config.json laut Beschreibung ausreichen?


    Oder verstehe ich den Text falsch?


    Add the plugin to your config.json. The login and password in the config.json, are the credentials you created earlier for the https://www.homebridge.ca/ website. This only needs to be completed for one instance of homebridge in your environment, it will discover the accessories connected to your other homebridges automatically.



    Gesendet von iPhone mit Community

  • Den Zusatz beim Start von homebridge mit -I habt ihr ja überall schon auch drin? Gehe davon mal aus...... komisch, mal kucken, ob da bereits ein issue besteht....



    Gesendet von iPhone mit Community

  • Ich denke das wird schon stimmen, dass nur EINE Instanz laufen muss.

    Habs gerade mal getestet. Hatte es zuerst in 2 Instanzen gleichzeitig laufen und dort alles hinzugefügt. Dann die 2. Instanz entfernt und es läuft immer noch. Die einzelnen Homebridges kommunizieren irgendwie schon untereinander.

  • Hallo,

    ich bin neu hier und habe seit gestern eine Alexa.


    Ich habe seit ein paar Jahren schon eine Hombridge zwischen Apple HomeKit und einer CCU2 von Homematik.

    Ich würde jetzt gerne das Homebridge-Alexa Plugin installieren um meine Gräte aus Apple HomeKit mit der Alexa Streuern zu können.

    Leider ist mein englisch nicht so gut...

    Ich habe das Plugin installiert und die Config.json Datei angepasst.


    GNU nano 2.7.4 File: /home/pi/.homebridge/config.json


    {

    "bridge": {

    "name": "Homebridge",

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

    "port": 51826,

    "pin": "031-45-154"

    },


    "platforms": [{

    "platform": "HomeMatic",

    "name": "HomeMatic CCU2",

    "ccu_ip": "192.168.178.49",

    "filter_device": [],

    "filter_channel": [],

    "outlets": [],

    "doors": [],

    "programs": [],

    "accessories": [],

    "subsection": "Homekit",

    "variables": ["Anwesenheit", "Automatikfunktionen"]

    },


    {

    "platform": "Alexa",

    "name": "Alexa",

    "username": "Imperium9999",

    "password": "*******",

    "pin": "031-45-155"

    }]


    }


    Ich bekomme jetzt folgende Fehler beim Starten der Homebridge:


    *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.

    *** WARNING *** Please fix your application to use the native API of Avahi!

    *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>

    *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.

    *** WARNING *** Please fix your application to use the native API of Avahi!

    *** WARNING *** For more information see <http://0pointer.de/avahi-compa…node&f=DNSServiceRegister>

    [7/18/2019, 2:53:51 PM] ====================

    [7/18/2019, 2:53:51 PM] ERROR LOADING PLUGIN homebridge-alexa:

    [7/18/2019, 2:53:51 PM] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:373:25)

    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 Module.require (module.js:353:17)

    at require (internal/module.js:12:17)

    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-alexa/node_modules/debug/src/index.js:9:19)

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

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

    [7/18/2019, 2:53:51 PM] ====================

    [7/18/2019, 2:53:52 PM] Loaded plugin: homebridge-homematic

    [7/18/2019, 2:53:52 PM] Registering platform 'homebridge-homematic.HomeMatic'

    [7/18/2019, 2:53:52 PM] ---

    [7/18/2019, 2:53:52 PM] Loaded config.json with 0 accessories and 2 platforms.

    [7/18/2019, 2:53:52 PM] ---

    [7/18/2019, 2:53:52 PM] Loading 2 platforms...

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] Initializing HomeMatic platform...

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] Homematic Plugin Version 0.0.97

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] Plugin by thkl https://github.com/thkl

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] Homematic is a registered trademark of the EQ-3 AG

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] Please report any issues to https://github.com/thkl/homebridge-homematic/issues

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] will connect to your ccu at 192.168.178.49

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] using binrpc for communication with BidCos-RF

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] init RPC for BidCos-RF.

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] local ip used : 192.168.178.52. you may change that with local_ip parameter in config

    [7/18/2019, 2:53:52 PM] [HomeMatic CCU2] Fetching Homematic devices...

    /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 'Alexa' was not registered by any plugin.

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

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

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

    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: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)


    Ich hoffe ihr könnt mir Helfen :)

    Danke schonmal!

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

    homebridge-alexa ist nicht installiert. Wie hast du es installiert? ich bräuchte mal den Befehl. Und dann kriegen wir das zum Laufen 8)

  • Ich habe es mit diesem Befehl installiert: sudo npm install -g homebridge-alexa

    Wie schade. Ich hatte gehofft, dass du das nicht gemacht hast und wäre genau damit um die Ecke gekommen :P. Vielleicht kannst du das Plugin mal wieder entfernen mit


    sudo npm uninstall -g homebridge-alexa und erneut installieren mit

    sudo npm uninstall -g --unsafe-perm homebridge-alexa


    Welche Version von node verwendest du denn? Das kannst du herausbekommen mit dem Befehl node -v. Außerdem sehe ich einen Fehler in deiner Konfiguration. Im Abschnitt für homebridge-alexa muss der Eintrag für pin so lauten wie ganz oben der unter bridge (031-45-154).


    Stefan

  • Ich habe es so wie du geschrieben hast de- und wieder installiert. Node ist Version v4.5.0.


    müsste bei installieren das nicht Install heißen? sudo npm uninstall -g --unsafe-perm homebridge-alexa


    Daraus entstand folgender Log:

    Julian

  • okay danke, leider trotzdem wieder der gleiche SyntaxError.


  • Node ist Version v4.5.0.

    Ich schätze, das ist das Problem. Das ist eine sehr alte node-Version.

  • Ich schätze, das wird sich auf deine laufende Installation auswirken. Wahrscheinlich wird du die bestehenden Plugins neu installieren müssen. Um node einfach updaten zu können, nimmst du am besten den Versionsmanager n.


    Überleg dir das gut. Du hast eine laufende Installation, auch wenn diese auf alter Software basiert.


    sudo npm install -g --unsafe-perm n

    sudo n lts


    sudo npm install -g --unsafe-perm homebridge

    sudo npm install -g --unsafe-perm homebridge-alexa

    sudo npm install -g --unsafe-perm homebridge-was-auch-immer


    Stefan

    Einmal editiert, zuletzt von sschuste ()

  • Ich habe es jetzt einfach gemacht:D sieht jetzt auch soweit ganz gut aus. Nur diesen [7/19/2019, 12:49:04 PM] [Alexa] ERROR: HAP Discovery failed, please review config Meldung bekomme ich jetzt noch immer.


  • ich Habe den Pin in meiner config,json rausgenommen, so läuft es jetzt :thumbup:

    Vielen Dank für super Unterstützung!


    Julian

  • :thumbup:Viel Spaß damit.