Ankündigung

Einklappen
Keine Ankündigung bisher.

Openhab keine Verbindung trotz KNX Binding

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Openhab keine Verbindung trotz KNX Binding

    Hallo,
    habe mir zu Testzwecken Openhab auf einem Imac installiert und ein einfaches Item erstellt. Danach habe ich wie unter "https://openhabdoc.readthedocs.org/de/latest/KNX/#anbindung-von-knx-an-openhab" beschrieben folgendes KNX Binding eingegeben (nur Auszug):

    # KNX gateway IP address
    # (optional, if serialPort or connection type 'ROUTER' is specified)
    knx:ip=192.168.178.100

    # KNX IP connection type. Could be either TUNNEL or ROUTER (optional, defaults to TUNNEL)
    # Note: If you cannot get the ROUTER mode working (even if it claims it is connected),
    # use TUNNEL mode instead with setting both the ip of the KNX gateway and the localIp.
    knx:type=TUNNEL

    # KNX gateway port (optional, defaults to 3671)
    # Note: If you use eibd, setting to 6720
    knxort=3671

    # Local endpoint to specify the multicast interface, no port is used (optional)
    knx:localIp=192.168.178.25

    Wenn ich jetzt einen Schaltbefehl ausgebe (Switch Licht_Kanal1 "Licht Kanal1" (Aktor1) {knx="2/1/0"}), gibt mir das Terminal (11:53:37.918 [INFO ] [runtime.busevents :22 ] - Licht_Kanal4 received command ON) die Bestätigung zurück, jedoch wird kein Befehl ausgeführt. Zu Testzwecken gebe ich über die KNX IP Schnittstelle 192.168.178.100 den gleiche Befehl in der ETS aus und da funktioniert es. Die ETS lasse ich über VirtualBox auf dem Mac laufen.
    Was könnte ich falsch gemacht haben?

    Vielen Dank

    #2
    Bevor du bei openhab den Fehler suchst solltest du erst einmal sicherstellen, dass eibd funktioniert. Kannst du mit den eibd-client-Kommandos Schaltbefehle ausführen?

    Sorry scheinbar verwendest du den eibd gar nicht. Hab mich wohl verlesen.
    Zuletzt geändert von thoern; 20.03.2016, 10:33.

    Kommentar


      #3
      Nein habe kein EIBD, ist bei mir ein Testaufbau mit PC und einem IP-Router N000402 von Eibmarkt. Wollte wenn alles funktioniert einen Raspberry mit Touchpad bauen.
      Ich finde es komisch dass mir im Terminalprogramm gar kein Hinweis auf einen Fehler angezeigt wird. Mir ist aber aufgefallen dass ich zwar die neueste Java-Version 1.8 installiert habe, aber im Terminal die Version 1.6 (build 1.6.0_65-b14-462-11M4609) angezeigt wird. Ich glaube aber dass man mindestens die 1.7 braucht. Ich schau mal weiter. Danke ...

      Kommentar


        #4
        Arbeitest Du auch auf einem Mac?

        Eventuell musst Du die alte Java-Version runter schmeißen, damit openHAB die richtige Version nimmt. Allerdings hat knx bei mir schon mit 1.6 gut funktioniert, es kann aber sein, dass sich seit v1.0 die Anforderungen geändert haben...

        knx:LocalIp ist ein komischer Parameter - Manchmal muss man ihn setzen, damit der Tunnel funktioniert (unter Debian ist das bei mir so) - manchmal darf er nicht gesetzt sein, auch wenn der eingetragene Wert korrekt ist. Du könntest das also mal versuchsweise auskommentieren.

        Kommentar


          #5
          Ja, hab es auch über einen Mac probiert. Funktioniert leider gar nicht. Habe heute noch das Java jdk 8u74 installiert. Mittlerweile bekomme ich auch im Terminal die Rückmeldung dass ich die Version: Java(TM) SE Runtime Environment (build 1.8.0_74-b02) habe. Den knx:LocalIP habe ich versuchsweise auch auskommentiert, geht leider nicht. Habe dann noch im Browser localhost durch meine IP ersetzt, aber leider...
          Hier mal das Listing vom Terminal:

          Launching the openHAB runtime in debug mode...
          Listening for transport dt_socket at address: 8001
          osgi> 13:48:17.516 [DEBUG] [.s.internal.SchedulerActivator:36 ] - Scheduler has been started.
          13:48:17.548 [INFO ] [uartz.impl.StdSchedulerFactory:1175 ] - Using default implementation for ThreadExecutor
          13:48:17.562 [INFO ] [rtz.core.SchedulerSignalerImpl:61 ] - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
          13:48:17.562 [INFO ] [rg.quartz.core.QuartzScheduler:243 ] - Quartz Scheduler v.2.1.7 created.
          13:48:17.564 [INFO ] [org.quartz.simpl.RAMJobStore :154 ] - RAMJobStore initialized.
          13:48:17.565 [INFO ] [rg.quartz.core.QuartzScheduler:268 ] - Scheduler meta-data: Quartz Scheduler (v2.1.7) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'
          Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
          NOT STARTED.
          Currently in standby mode.
          Number of jobs executed: 0
          Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
          Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

          13:48:17.565 [INFO ] [uartz.impl.StdSchedulerFactory:1324 ] - Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './etc/quartz.properties'
          13:48:17.565 [INFO ] [uartz.impl.StdSchedulerFactory:1328 ] - Quartz scheduler version: 2.1.7
          13:48:17.566 [INFO ] [rg.quartz.core.QuartzScheduler:534 ] - Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.
          13:48:17.568 [DEBUG] [o.config.core.ConfigDispatcher:146 ] - Processing openHAB default configuration file '/0pt/openhab/distribution-1.8.1-runtime/configurations/openhab_default.cfg'.
          13:48:17.597 [DEBUG] [o.config.core.ConfigDispatcher:168 ] - Processing openHAB main configuration file '/0pt/openhab/distribution-1.8.1-runtime/configurations/openhab.cfg'.
          13:48:17.610 [DEBUG] [.o.core.internal.CoreActivator:93 ] - UUID file already exists at '/0pt/openhab/distribution-1.8.1-runtime/webapps/static/uuid' with content 'aaa66354-5ee0-4a54-9d7f-9988d060fc08'
          13:48:17.610 [DEBUG] [.o.core.internal.CoreActivator:115 ] - Created file '/0pt/openhab/distribution-1.8.1-runtime/webapps/static/version' with content '1.8.1'
          13:48:17.611 [INFO ] [.o.core.internal.CoreActivator:61 ] - openHAB runtime has been started (v1.8.1).
          13:48:17.628 [DEBUG] [a.internal.AutoUpdateActivator:31 ] - AutoUpdate binding has been started.
          13:48:18.204 [DEBUG] [.p.i.PersistenceModelActivator:23 ] - Registered 'persistence' configuration parser
          13:48:18.216 [DEBUG] [.c.t.i.TransformationActivator:38 ] - Transformation Service has been started.
          13:48:18.241 [DEBUG] [m.internal.MultimediaActivator:34 ] - Multimedia I/O bundle has been started.
          13:48:18.256 [DEBUG] [.s.i.DiscoveryServiceActivator:27 ] - Discovery service has been started.
          13:48:18.258 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl:93 ] - mDNS service has been started
          13:48:18.270 [DEBUG] [.io.transport.mqtt.MqttService:123 ] - Starting MQTT Service...
          13:48:18.301 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl:53 ] - Service Discovery initialization completed.
          13:48:18.345 [DEBUG] [.i.internal.ItemModelActivator:24 ] - Registered 'item' configuration parser
          13:48:18.398 [DEBUG] [o.o.c.i.items.ItemRegistryImpl:137 ] - Item provider 'GenericItemProvider' has been added.
          13:48:18.955 [DEBUG] [.o.m.s.i.SitemapModelActivator:23 ] - Registered 'sitemap' configuration parser
          13:48:19.009 [DEBUG] [io.rest.internal.RESTActivator:33 ] - REST API has been started.
          13:48:19.051 [INFO ] [org.atmosphere.util.IOUtils :370 ] - META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
          13:48:19.073 [INFO ] [sphere.cpr.AtmosphereFramework:2601 ] - Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
          13:48:19.074 [INFO ] [cpr.DefaultAnnotationProcessor:138 ] - AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$Byte codeBasedAnnotationProcessor being used
          13:48:19.083 [WARN ] [cpr.DefaultAnnotationProcessor:178 ] - Unable to detect annotations. Application may fail to deploy.
          13:48:19.100 [INFO ] [sphere.cpr.AtmosphereFramework:1891 ] - Auto detecting atmosphere handlers /WEB-INF/classes/
          13:48:19.114 [INFO ] [sphere.cpr.AtmosphereFramework:639 ] - Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path /* and Broadcaster Class org.atmosphere.jersey.JerseyBroadcaster
          13:48:19.114 [INFO ] [sphere.cpr.AtmosphereFramework:1945 ] - Auto detecting WebSocketHandler in /WEB-INF/classes/
          13:48:19.115 [INFO ] [sphere.cpr.AtmosphereFramework:1602 ] - Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtoc ol
          13:48:19.141 [INFO ] [.a.h.ReflectorServletProcessor:103 ] - Installing Servlet com.sun.jersey.spi.container.servlet.ServletContai ner
          13:48:19.224 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:815 ] - Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM'
          13:48:19.225 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:826 ] - Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
          class org.atmosphere.jersey.AtmosphereResourceConfigurat or
          13:48:19.271 [INFO ] [j.s.i.a.DeferredResourceConfig:101 ] - Instantiated the Application class org.openhab.io.rest.RESTApplication
          13:48:19.890 [INFO ] [sphere.cpr.AtmosphereFramework:2435 ] - AtmosphereInterceptor CORS Interceptor Support will always be executed first
          13:48:19.891 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT
          13:48:19.891 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT
          13:48:19.892 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT
          13:48:19.893 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT
          13:48:19.893 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT
          13:48:19.894 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT
          13:48:19.895 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT
          13:48:19.898 [INFO ] [sphere.cpr.AtmosphereFramework:935 ] - Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
          13:48:19.899 [WARN ] [sphere.cpr.AtmosphereFramework:941 ] - No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache
          13:48:19.899 [INFO ] [sphere.cpr.AtmosphereFramework:949 ] - Default Broadcaster Class: org.atmosphere.jersey.JerseyBroadcaster
          13:48:19.899 [INFO ] [sphere.cpr.AtmosphereFramework:950 ] - Broadcaster Polling Wait Time 100
          13:48:19.899 [INFO ] [sphere.cpr.AtmosphereFramework:951 ] - Shared ExecutorService supported: true
          13:48:19.900 [INFO ] [sphere.cpr.AtmosphereFramework:958 ] - Messaging Thread Pool Size: 10
          13:48:19.900 [INFO ] [sphere.cpr.AtmosphereFramework:968 ] - Async I/O Thread Pool Size: 10
          13:48:19.900 [INFO ] [sphere.cpr.AtmosphereFramework:979 ] - Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
          13:48:19.900 [INFO ] [sphere.cpr.AtmosphereFramework:980 ] - Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
          13:48:19.901 [INFO ] [sphere.cpr.AtmosphereFramework:990 ] - Invoke AtmosphereInterceptor on WebSocket message true
          13:48:19.901 [INFO ] [sphere.cpr.AtmosphereFramework:991 ] - HttpSession supported: false
          13:48:19.901 [INFO ] [sphere.cpr.AtmosphereFramework:993 ] - Atmosphere is using DefaultAtmosphereObjectFactory for dependency injection and object creation
          13:48:19.901 [INFO ] [sphere.cpr.AtmosphereFramework:994 ] - Atmosphere is using async support: org.atmosphere.container.JettyAsyncSupportWithWebS ocket running under container: jetty/8.1.3.v20120522 with WebSocket enabled.
          13:48:19.902 [INFO ] [sphere.cpr.AtmosphereFramework:996 ] - Atmosphere Framework 2.2.5 started.
          13:48:19.903 [INFO ] [sphere.cpr.AtmosphereFramework:998 ] -

          For Atmosphere Framework Commercial Support, visit
          http://www.async-io.org/ or send an email to support@async-io.org

          13:48:19.903 [INFO ] [penhab.io.rest.RESTApplication:144 ] - Started REST API at /rest
          13:48:19.904 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66 ] - Registering new service _openhab-server._tcp.local. at port 8080
          13:48:25.855 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66 ] - Registering new service _openhab-server-ssl._tcp.local. at port 8443
          13:48:28.046 [INFO ] [c.internal.ModelRepositoryImpl:80 ] - Loading model 'Whg_Stgt.sitemap'
          13:48:28.159 [INFO ] [c.internal.ModelRepositoryImpl:80 ] - Loading model 'Whg_Stgt.items'
          13:48:28.186 [DEBUG] [i.internal.GenericItemProvider:154 ] - Processing binding configs for items from model 'Whg_Stgt.items'
          13:48:28.188 [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model 'Whg_Stgt.items'
          13:48:28.416 [INFO ] [.o.u.w.i.servlet.WebAppServlet:80 ] - Started Classic UI at /classicui/openhab.app
          13:48:28.594 [DEBUG] [.r.internal.RuleModelActivator:42 ] - Registered 'rules' configuration parser
          13:48:28.603 [DEBUG] [m.r.internal.engine.RuleEngine:77 ] - Started rule engine
          13:48:55.944 [INFO ] [runtime.busevents :22 ] - Licht_Kanal2 received command ON
          13:48:56.886 [INFO ] [runtime.busevents :22 ] - Licht_Kanal2 received command OFF

          Vielleicht erkennt ja jemand etwas


          Kommentar


            #6
            Bist Du sicher, dass Du das knx-Binding im addons Ordner drin hast?

            Kommentar


              #7
              Auf dem Mac den Java Home Pfad auf die 1.8 gesetzt? Dann klappst auch mit dem Mac.

              Kommentar


                #8
                Ja, habe das KNX-Binding aus All_addons kopiert und direkt in addons eingesetzt.
                Das Java File habe ich unter Library/Java/Javavirtualmachines/jdk1.8.0_73.jdk.
                Hatte gestern nochmal die ältere Version jdk1.8.0_73.jdk geladen, da es mit der ...74 nicht funktionierte, trotzdem ohne Erfolg.
                Alle anderen Java Files habe ich gelöscht. Ist da der Home Pfad somit gesetzt? Im Terminal bekomme ich auf die Eingabe: java -version, die Antwort: java version "1.8.0_73"
                Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
                Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

                Vielen Dank an Euch ...

                Kommentar


                  #9
                  echo $JAVA_HOME
                  /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home

                  Kommentar


                    #10
                    Also keine Reaktion. Aktor macht kein clack. Im Terminal wird KNX nicht mal erwähnt.

                    /0pt/openhab/distribution-1.8.1-runtime/start.sh
                    Launching the openHAB runtime...
                    osgi> 2016-03-21 16:17:31.911 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.8.1).
                    2016-03-21 16:17:33.602 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
                    2016-03-21 16:17:33.647 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
                    2016-03-21 16:17:35.861 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
                    2016-03-21 16:17:42.820 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'Whg_Stgt.sitemap'
                    2016-03-21 16:17:42.947 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'Whg_Stgt.items'
                    2016-03-21 16:17:43.852 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /classicui/openhab.app
                    2016-03-21 16:17:49.835 [INFO ] [runtime.busevents ] - Licht_Kanal2 received command ON
                    2016-03-21 16:17:50.964 [INFO ] [runtime.busevents ] - Licht_Kanal2 received command OFF
                    2016-03-21 16:17:55.371 [INFO ] [runtime.busevents ] - Licht_Kanal2 received command ON

                    Kommentar


                      #11
                      Bildschirmfoto 2016-03-21 um 16.24.08.png

                      Kommentar


                        #12
                        Ha, ich bin so blöd .....
                        Jetzt geht es. Hatte den Ordner addons nicht im distribution-1.8.1-runtime-Ordner. Nach Umkopieren funktioniert es jetzt. Man bin ich froh.

                        Kommentar


                          #13
                          Und wir sind beruhigt, dass es doch ein Layer8-Problem war

                          Kommentar

                          Lädt...
                          X