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?
homebridge-alexa
-
-
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
@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
Oder verstehe ich den Text falsch?
nee...hört sich wirklich so an. Ohne 2. Eintrag funktionierte es nicht.
Mit 2. Eintrag aber nun auch irgendwie nicht
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
Ich habe es mit diesem Befehl installiert: sudo npm install -g homebridge-alexa
Das wäre cool
Ps. Ich habe den Anderen Beitrag gelöscht.
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 . 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:
Zitatpi@raspberrypi:~ $ sudo npm uninstall -g homebridge-alexa
unbuild [email protected]
pi@raspberrypi:~ $ sudo npm uninstall -g --unsafe-perm homebridge-alexa
npm WARN uninstall not installed in /usr/local/lib/node_modules: "homebridge-alexa"
pi@raspberrypi:~ $ sudo nano ~/.homebridge/config.json
pi@raspberrypi:~ $ node -v
v4.5.0
pi@raspberrypi:~ $ homebridge -I
*** 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/19/2019, 10:34:53 AM] Loaded plugin: homebridge-homematic
[7/19/2019, 10:34:53 AM] Registering platform 'homebridge-homematic.HomeMatic'
[7/19/2019, 10:34:53 AM] ---
[7/19/2019, 10:34:53 AM] Loaded config.json with 0 accessories and 2 platforms.
[7/19/2019, 10:34:53 AM] ---
[7/19/2019, 10:34:54 AM] Loading 2 platforms...
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] Initializing HomeMatic platform...
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] Homematic Plugin Version 0.0.97
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] Plugin by thkl https://github.com/thkl
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] Homematic is a registered trademark of the EQ-3 AG
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] Please report any issues to https://github.com/thkl/homebridge-homematic/issues
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] will connect to your ccu at 192.168.178.49
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] using binrpc for communication with BidCos-RF
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] init RPC for BidCos-RF.
[7/19/2019, 10:34:54 AM] [HomeMatic CCU2] local ip used : 192.168.178.52. you may change that with local_ip parameter in config
[7/19/2019, 10:34:54 AM] [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)
Julian
müsste bei installieren das nicht Install heißen? sudo
richtig
okay danke, leider trotzdem wieder der gleiche SyntaxError.
Code
Alles anzeigenpi@raspberrypi:~ $ sudo npm install -g --unsafe-perm homebridge-alexa npm WARN engine [email protected]: wanted: {"node":">= 6"} (current: {"node":"4.5.0","npm":"2.15.9"}) npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.5.0","npm":"2.15.9"}) npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.5.0","npm":"2.15.9"}) [email protected] /usr/local/lib/node_modules/homebridge-alexa ??? [email protected] ([email protected]) ??? [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) ??? [email protected] ??? [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) ??? [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) pi@raspberrypi:~ $ homebridge -I *** 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-compat?s=libdns_sd&e=node&f=DNSServiceRegister> [7/19/2019, 11:23:16 AM] ==================== [7/19/2019, 11:23:16 AM] ERROR LOADING PLUGIN homebridge-alexa: [7/19/2019, 11:23:16 AM] 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/19/2019, 11:23:16 AM] ==================== [7/19/2019, 11:23:17 AM] Loaded plugin: homebridge-homematic [7/19/2019, 11:23:17 AM] Registering platform 'homebridge-homematic.HomeMatic' [7/19/2019, 11:23:17 AM] --- [7/19/2019, 11:23:17 AM] Loaded config.json with 0 accessories and 2 platforms. [7/19/2019, 11:23:17 AM] --- [7/19/2019, 11:23:17 AM] Loading 2 platforms... [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] Initializing HomeMatic platform... [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] Homematic Plugin Version 0.0.97 [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] Plugin by thkl https://github.com/thkl [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] Homematic is a registered trademark of the EQ-3 AG [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] Please report any issues to https://github.com/thkl/homebridge-homematic/issues [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] will connect to your ccu at 192.168.178.49 [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] using binrpc for communication with BidCos-RF [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] init RPC for BidCos-RF. [7/19/2019, 11:23:17 AM] [HomeMatic CCU2] local ip used : 192.168.178.52. you may change that with local_ip parameter in config [7/19/2019, 11:23:17 AM] [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) pi@raspberrypi:~ $
Node ist Version v4.5.0.
Ich schätze, das ist das Problem. Das ist eine sehr alte node-Version.
oh okay, kann ich das einfach updaten?
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
Ich habe es jetzt einfach gemacht 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.
Code
Alles anzeigen[7/19/2019, 12:48:40 PM] Loaded config.json with 0 accessories and 2 platforms. [7/19/2019, 12:48:40 PM] --- [7/19/2019, 12:48:43 PM] Loaded plugin: homebridge-alexa [7/19/2019, 12:48:43 PM] Registering platform 'homebridge-alexa.Alexa' [7/19/2019, 12:48:43 PM] --- [7/19/2019, 12:48:44 PM] Loaded plugin: homebridge-homematic [7/19/2019, 12:48:44 PM] Registering platform 'homebridge-homematic.HomeMatic' [7/19/2019, 12:48:44 PM] --- [7/19/2019, 12:48:44 PM] Loading 2 platforms... [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] Initializing HomeMatic platform... [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] Homematic Plugin Version 0.0.97 [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] Plugin by thkl https://github.com/thkl [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] Homematic is a registered trademark of the EQ-3 AG [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] Please report any issues to https://github.com/thkl/homebridge-homematic/issues [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] will connect to your ccu at 192.168.178.49 [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] using binrpc for communication with BidCos-RF [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] init RPC for BidCos-RF. [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] local ip used : 192.168.178.52. you may change that with local_ip parameter in config [7/19/2019, 12:48:44 PM] [HomeMatic CCU2] Fetching Homematic devices... [7/19/2019, 12:48:44 PM] [Alexa] Initializing Alexa platform... [7/19/2019, 12:48:44 PM] [Alexa] homebridge-alexa v0.4.25, node v10.16.0, homebridge v0.4.50 [7/19/2019, 12:48:45 PM] [HomeMatic CCU2] RPC server for interface BidCos-RF. is listening on port 9090. [7/19/2019, 12:48:45 PM] [HomeMatic CCU2] Creating Local HTTP Client for CCU RPC Events [7/19/2019, 12:48:45 PM] [HomeMatic CCU2] if PONG is PONG CCU is alive [7/19/2019, 12:48:45 PM] [HomeMatic CCU2] Fetch Response [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] Initializing platform accessory 'HM CC RT DN OEQ0843532 4'... [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] Initializing platform accessory 'HM CC RT DN OEQ0844365 4'... [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] Initializing platform accessory 'HM CC RT DN OEQ0857944 4'... [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] Initializing platform accessory 'HmIP eTRV B1 0012999395DE69 1'... [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] Initializing platform accessory 'Anwesenheit'... [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] Initializing platform accessory 'Automatikfunktionen'... Setup Payload: X-HM://0023ISYWYLJE4 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 ? ?????????????? [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] Number of mapped devices : 6 [7/19/2019, 12:48:46 PM] Homebridge is running on port 51826. [7/19/2019, 12:48:46 PM] [HomeMatic CCU2] will cache ccu response ... [7/19/2019, 12:48:48 PM] [HomeMatic CCU2] NPM 0.0.109 vs Local 0.0.97 [7/19/2019, 12:49:04 PM] [Alexa] ERROR: HAP Discovery failed, please review config [7/19/2019, 12:51:22 PM] [Alexa] ERROR: HAP Discovery failed, please review config Julian
ich Habe den Pin in meiner config,json rausgenommen, so läuft es jetzt
Vielen Dank für super Unterstützung!
Code
Alles anzeigen"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": "*******" }] }
Julian
Viel Spaß damit.