Homematic Interface Layer für Hue Lampen und alles andere

diverse Zusatzsoftware

Moderator: Co-Administratoren

ecky78
Beiträge: 164
Registriert: 03.06.2016, 21:55
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 51 Mal
Danksagung erhalten: 8 Mal

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von ecky78 » 03.12.2017, 18:16

thkl hat geschrieben: Aber Du könntest mal HVL im Debug starten
Da kommt dann das da ... habe gleich danach trotzdem noch die getpassword.js gestartet, die aber vor der Ausgabe des PW abbricht. :(Bild

Gesendet von meinem SM-T800 mit Tapatalk
Grüße,
Ecky

Benutzeravatar
thkl
Beiträge: 2765
Registriert: 15.07.2013, 13:32
Wohnort: dickes B
Danksagung erhalten: 5 Mal

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von thkl » 03.12.2017, 18:22

Ahhh raspberrymatic,dann verhält sich der Spass etwas anders, da hier alles als root läuft aber kein Schreibzugriff auf den root Folder herrscht. Auf der RM liegt der config Folder nicht im Home des Users, der HVL startet.

Code: Alles auswählen

/usr/local/addons/hvl/node/bin/node /usr/local/addons/hvl/node_modules/homematic-virtual-interface/lib/index.js -D -C /usr/local/etc/config/hvl/ 

RolandF
Beiträge: 122
Registriert: 22.06.2014, 19:01
Hat sich bedankt: 3 Mal
Danksagung erhalten: 5 Mal

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von RolandF » 03.12.2017, 19:06

thkl hat geschrieben:Nunja mit etwas Hilfe kann ich das LF auch anpassen. Siehe vorheriger Beitrag.
Einmal Debug Modus .. dann wirft das Plugin zumindest schon mal die Lampen ins LogFile die es findet.
Ggf benutzt du Lampen die ich bei der Erstellung noch nicht kannte.
So zur Sicherheit habe ich zunächst noch mal alles deinstalliert und neu installiert, dann das Plugin mit:

Code: Alles auswählen

node /home/pi/node_modules/homematic-virtual-interface/lib/index.js -D
gestartet, und folgenden Output erhalten:

Code: Alles auswählen

[2017-12-03 18:46:09.855] [Core][INFO] Homematic Virtual Interface Core
[2017-12-03 18:46:09.877] [Core][INFO] 2017 by thkl https://github.com/thkl/Homematic-Virtual-Interface
[2017-12-03 18:46:09.888] [Core][INFO] running on node version v6.10.3
[2017-12-03 18:46:09.888] [Core][INFO] ================================================================
Set Loglevel to Debug
SetFileTransport to /home/pi/.hm_virtual_interface/logs/log.db
[2017-12-03 18:46:10.148] [Core][INFO] Launching
[2017-12-03 18:46:11.744] [VirtualPlugin][DEBUG] Adding /home/pi/node_modules/homematic-virtual-interface/lib/../plugins/ to path
[2017-12-03 18:46:11.758] [Homematic Virtual Interface.Server][DEBUG] Starting up
[2017-12-03 18:46:12.006] [Config][INFO] try to load config : /home/pi/.hm_virtual_interface/config.json
[2017-12-03 18:46:12.010] [Config][DEBUG] try to load persistent storage : /home/pi/.hm_virtual_interface/persist.json
[2017-12-03 18:46:12.014] [Homematic Virtual Interface.Server][INFO] running on node version v6.10.3
[2017-12-03 18:46:12.016] [Homematic Virtual Interface.Server][INFO] hello from the flight deck. my path is /home/pi/node_modules/homematic-virtual-interface
[2017-12-03 18:46:12.018] [Homematic Virtual Interface.Server][INFO] starting point was /home/pi/node_modules/homematic-virtual-interface/lib
[2017-12-03 18:46:12.060] [Homematic Virtual Interface.Server][INFO] Trying to load Localization from /home/pi/node_modules/homematic-virtual-interface/lib/Localizable.strings
[2017-12-03 18:46:12.065] [HomematicLogicalLayer][INFO] Welcome. will create a interface layer for CCU at 192.168.178.20
[2017-12-03 18:46:12.073] [HomematicLogicalLayer][INFO] init consumer {"hostname":"192.168.178.20","port":"9292","path":"/bidcos","callbackid":"HVL_java"}
[2017-12-03 18:46:12.079] [HomematicLogicalLayer][INFO] init stored consumer with host 192.168.178.20 at port 9292 path /bidcos
[2017-12-03 18:46:12.085] [HomematicLogicalLayer][DEBUG] Adding new Consumer
[2017-12-03 18:46:12.091] [HomematicLogicalLayer][INFO] []
[2017-12-03 18:46:12.103] [Config][INFO] MyIP is 192.168.178.57
[2017-12-03 18:46:12.112] [HomematicLogicalLayer][INFO] XML-RPC server for interface Homematic Virtual Interface is listening on 192.168.178.57:7000
[2017-12-03 18:46:12.114] [HomematicLogicalLayer][INFO] CCU RPC message timeout set to 300000 ms
[2017-12-03 18:46:12.780] [Homematic Virtual Interface.Server][INFO] Pinging CCU
[2017-12-03 18:46:12.798] [Homematic Virtual Interface.Server][INFO] Reload .. shutdown all plugins
[2017-12-03 18:46:13.126] [Homematic Virtual Interface.Server][INFO] Loaded plugin: homematic-virtual-lightifydevice
[2017-12-03 18:46:13.132] [homematic-virtual-lightifydevice - Lightify][INFO] Init Lightify
[2017-12-03 18:46:13.138] [Homematic Virtual Interface.Server][INFO] Lightify initialized. Document Path is /home/pi/node_modules/homematic-virtual-lightifydevice Plugin Instance: 0
[2017-12-03 18:46:13.141] [Homematic Virtual Interface.Server][DEBUG] Plugin Name Lightify
[2017-12-03 18:46:13.196] [ConfigurationServer][DEBUG] Configuration Server Initializing on Port 8182
[2017-12-03 18:46:13.210] [ConfigurationServer][INFO] Configuration Server is listening on: Port 8182
[2017-12-03 18:46:13.364] [Homematic Virtual Interface.Server][INFO] CCU is alive
[2017-12-03 18:46:13.432] [HomematicLogicalLayer][INFO] My Interface Name at your CCU is HVL
[2017-12-03 18:46:13.435] [HomematicLogicalLayer][INFO] apply interface Name HVL to all devices
[2017-12-03 18:46:37.451] [Homematic Virtual Interface.Server][DEBUG] Server HTTP Request /plugins/?do=version&plugin=homematic-virtual-interface parsed /plugins/ {"do":"version","plugin":"homematic-virtual-interface"}
[2017-12-03 18:46:38.457] [Homematic Virtual Interface.Server][DEBUG] Get Version for homematic-virtual-interface result {"version":"0.2.64","remark":""}
[2017-12-03 18:46:42.178] [Homematic Virtual Interface.Server][DEBUG] Server HTTP Request /plugins/?do=version&plugin=homematic-virtual-interface parsed /plugins/ {"do":"version","plugin":"homematic-virtual-interface"}
[2017-12-03 18:46:43.392] [Homematic Virtual Interface.Server][DEBUG] Get Version for homematic-virtual-interface result {"version":"0.2.64","remark":""}
[2017-12-03 18:46:45.686] [Homematic Virtual Interface.Server][DEBUG] Server HTTP Request /index/?installmode parsed /index/ {"installmode":""}
[2017-12-03 18:46:45.690] [HomematicLogicalLayer][DEBUG] Will send to all Consumers
[2017-12-03 18:46:45.693] [HomematicLogicalLayer][INFO] Skip HMServer
[2017-12-03 18:47:13.450] [HomematicLogicalLayer][INFO] looking for corpses
[2017-12-03 18:47:13.565] [HomematicLogicalLayer][INFO] nothing found
[2017-12-03 18:48:45.713] [Homematic Virtual Interface.Server][DEBUG] Server HTTP Request /index/?installmode parsed /index/ {"installmode":""}
[2017-12-03 18:48:45.717] [HomematicLogicalLayer][DEBUG] Will send to all Consumers
[2017-12-03 18:48:45.719] [HomematicLogicalLayer][INFO] Skip HMServer
Auf der Weboberfläche habe ich noch InstallMode eingeschaltet
kann/muss ich sonst noch etwas machen ?

Benutzeravatar
thkl
Beiträge: 2765
Registriert: 15.07.2013, 13:32
Wohnort: dickes B
Danksagung erhalten: 5 Mal

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von thkl » 03.12.2017, 19:17

oops ich sehe gerade ich habe vorhin zu viel aus dem Plugin geschmissen.
EInmal bitte auf 0.0.10 aktualisieren

Code: Alles auswählen

cd /home/pi
npm i homematic-virtual-lightifydevice
Und dann HVL Restart.
Im Log müsste sowas erscheinen :

Config IP found .. trying to setup connection to lf
LFLight ....

RolandF
Beiträge: 122
Registriert: 22.06.2014, 19:01
Hat sich bedankt: 3 Mal
Danksagung erhalten: 5 Mal

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von RolandF » 03.12.2017, 19:22

jetzt hab ich diesen output:

Code: Alles auswählen

pi@raspberrypi:~ $ node /home/pi/node_modules/homematic-virtual-interface/lib/index.js -D
[2017-12-03 19:19:15.688] [Core][INFO] Homematic Virtual Interface Core
[2017-12-03 19:19:15.711] [Core][INFO] 2017 by thkl https://github.com/thkl/Homematic-Virtual-Interface
[2017-12-03 19:19:15.721] [Core][INFO] running on node version v6.10.3
[2017-12-03 19:19:15.722] [Core][INFO] ================================================================
Set Loglevel to Debug
SetFileTransport to /home/pi/.hm_virtual_interface/logs/log.db
[2017-12-03 19:19:15.973] [Core][INFO] Launching
[2017-12-03 19:19:17.677] [VirtualPlugin][DEBUG] Adding /home/pi/node_modules/homematic-virtual-interface/lib/../plugins/ to path
[2017-12-03 19:19:17.690] [Homematic Virtual Interface.Server][DEBUG] Starting up
[2017-12-03 19:19:17.853] [Config][INFO] try to load config : /home/pi/.hm_virtual_interface/config.json
[2017-12-03 19:19:17.856] [Config][DEBUG] try to load persistent storage : /home/pi/.hm_virtual_interface/persist.json
[2017-12-03 19:19:17.859] [Homematic Virtual Interface.Server][INFO] running on node version v6.10.3
[2017-12-03 19:19:17.860] [Homematic Virtual Interface.Server][INFO] hello from the flight deck. my path is /home/pi/node_modules/homematic-virtual-interface
[2017-12-03 19:19:17.862] [Homematic Virtual Interface.Server][INFO] starting point was /home/pi/node_modules/homematic-virtual-interface/lib
[2017-12-03 19:19:17.903] [Homematic Virtual Interface.Server][INFO] Trying to load Localization from /home/pi/node_modules/homematic-virtual-interface/lib/Localizable.strings
[2017-12-03 19:19:17.907] [HomematicLogicalLayer][INFO] Welcome. will create a interface layer for CCU at 192.168.178.20
[2017-12-03 19:19:17.912] [HomematicLogicalLayer][INFO] init consumer {"hostname":"192.168.178.20","port":"9292","path":"/bidcos","callbackid":"HVL_java"}
[2017-12-03 19:19:17.915] [HomematicLogicalLayer][INFO] init stored consumer with host 192.168.178.20 at port 9292 path /bidcos
[2017-12-03 19:19:17.920] [HomematicLogicalLayer][DEBUG] Adding new Consumer
[2017-12-03 19:19:17.925] [HomematicLogicalLayer][INFO] []
[2017-12-03 19:19:17.936] [Config][INFO] MyIP is 192.168.178.57
[2017-12-03 19:19:17.944] [HomematicLogicalLayer][INFO] XML-RPC server for interface Homematic Virtual Interface is listening on 192.168.178.57:7000
[2017-12-03 19:19:17.946] [HomematicLogicalLayer][INFO] CCU RPC message timeout set to 300000 ms
[2017-12-03 19:19:18.625] [Homematic Virtual Interface.Server][INFO] Pinging CCU
[2017-12-03 19:19:18.641] [Homematic Virtual Interface.Server][INFO] Reload .. shutdown all plugins
[2017-12-03 19:19:18.982] [Homematic Virtual Interface.Server][INFO] Loaded plugin: homematic-virtual-lightifydevice
[2017-12-03 19:19:18.987] [homematic-virtual-lightifydevice - Lightify][INFO] Init Lightify
[2017-12-03 19:19:18.991] [homematic-virtual-lightifydevice - Lightify][INFO] Config IP found .. trying to setup connection to lf
[2017-12-03 19:19:19.011] [Homematic Virtual Interface.Server][ERROR] Cannot initialize Lightify - TypeError: lightify.start is not a function
    at LightifyPlatform.reInit (/home/pi/node_modules/homematic-virtual-lightifydevice/LightifyPlatform.js:62:12)
    at LightifyPlatform.init (/home/pi/node_modules/homematic-virtual-lightifydevice/LightifyPlatform.js:56:8)
    at new module.exports (/home/pi/node_modules/homematic-virtual-lightifydevice/index.js:9:16)
    at Server._loadPlugins (/home/pi/node_modules/homematic-virtual-interface/lib/Server.js:1153:26)
    at Server.reloadPlugins (/home/pi/node_modules/homematic-virtual-interface/lib/Server.js:184:22)
    at Server.init (/home/pi/node_modules/homematic-virtual-interface/lib/Server.js:81:7)
    at Object.<anonymous> (/home/pi/node_modules/homematic-virtual-interface/lib/index.js:52:8)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
[2017-12-03 19:19:19.014] [Homematic Virtual Interface.Server][WARN] No plugins found. See the README for information on installing plugins.
[2017-12-03 19:19:19.067] [ConfigurationServer][DEBUG] Configuration Server Initializing on Port 8182
[2017-12-03 19:19:19.079] [ConfigurationServer][INFO] Configuration Server is listening on: Port 8182
[2017-12-03 19:19:19.154] [Homematic Virtual Interface.Server][INFO] CCU is alive
[2017-12-03 19:19:19.230] [HomematicLogicalLayer][INFO] My Interface Name at your CCU is HVL
[2017-12-03 19:19:19.232] [HomematicLogicalLayer][INFO] apply interface Name HVL to all devices
[2017-12-03 19:20:19.237] [HomematicLogicalLayer][INFO] looking for corpses
[2017-12-03 19:20:19.276] [HomematicLogicalLayer][INFO] nothing found

FuXXz
Beiträge: 154
Registriert: 16.12.2015, 23:54

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von FuXXz » 05.12.2017, 06:58

Hallo,
ich habe einige Birnen von INNR und diese verhalten sich etwas anders als das HUE Pendant.
Über das UI der Rasperrymatic kann ich bei den Hues Ein/Aus schalten, dimmen etc.
DIe INNR kann ich nur ein schalten, indem ich den Dimm Schieber entsprechend hoch stelle. Der Ein Knopf funktioniert nicht.
Runter dimmen und der Aus Knopf funktioniert.

Hat es was mit dem Interface Layer zu tun oder mit der Birne? :roll:

zap
Beiträge: 66
Registriert: 05.12.2014, 17:57

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von zap » 05.12.2017, 10:19

Gibt es eigentlich ein Schema für die Adressierung der HVL Geräte in der CCU? Bei SONOS scheint die Adresse so gebildet zu werden: "SONOS_"+SonosPlayerName

Ist das immer so, d.h. beginnen die Adressen immer mit dem Namen des HVL-Plugins?

Brauche das für meine FHEM Schnittstelle ...

FuXXz
Beiträge: 154
Registriert: 16.12.2015, 23:54

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von FuXXz » 05.12.2017, 21:13

Ich konnte noch ein paar Tests machen und es liegt nicht an den Birnen. Neu hinzugefügte HUE Birnen zeigen das gleiche Verhalten.
Ich kann diese also auch nicht einschalten.

Was mir aufgefallen ist, die Birnen haben ein anderes Symbol als meine erste Serie ?
Die neuen Birnen habe alle das ICON vom HM Dimm Stecker

Benutzeravatar
thkl
Beiträge: 2765
Registriert: 15.07.2013, 13:32
Wohnort: dickes B
Danksagung erhalten: 5 Mal

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von thkl » 06.12.2017, 07:12

Kommt drauf an. Ein festes Schema gibt es nicht. Aber im Normalfall ist es immer der Name des Plugins (ggf. verkürzt) und ein eindeutiger Zweiter Teil ... neuere Sonos Plugin Versionen verwenden zb die Mac des Players, weil ich festgestellt habe, das die Seriennummer (und damit der Name), die ich der CCU sende nicht unendlich lang sein kann (Max 15)

Benutzeravatar
Leutnant
Beiträge: 262
Registriert: 12.08.2014, 18:25
Wohnort: NRW
Hat sich bedankt: 1 Mal

Re: Homematic Interface Layer für Hue Lampen und alles ander

Beitrag von Leutnant » 06.12.2017, 20:52

Ich bin gerade dabei Alexa einzurichten und auf englisch funktionieren die Befehle sehr gut. Ist eigentlich eine Übersetzung möglich [emoji848]

Antworten

Zurück zu „Sonstige Addons“