ethernet gateway on OpenHAB 2.4.0 + mysensors 2.4.0



  • Hello,
    I'm running OpenHAB 2.4.0 on Windows 7 and I followed the instructions to install mysensors (org.openhab.binding.mysensors-2.4.0-SNAPSHOT.jar) Now I not able to connect the gateway to the controller. I think the gateway code is fine. When I check the ports on the controller, there is no service listening on port 5003.

    Installed bundles:

    Launching the openHAB runtime...
    Listening for transport dt_socket at address: 5005
    
                              __  _____    ____
      ____  ____  ___  ____  / / / /   |  / __ )
     / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
    / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /
    \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/
        /_/                        2.4.0
                                   Release Build
    
    Hit '<tab>' for a list of available commands
    and '[cmd] --help' for help on a specific command.
    Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.
    
    openhab> bundle:list
    START LEVEL 100 , List Threshold: 50
     ID | State    | Lvl | Version                | Name
    ----+----------+-----+------------------------+--------------------------------
     20 | Active   |  80 | 5.3.1.201602281253     | OSGi JAX-RS Connector
     21 | Active   |  80 | 2.7.0.v20170129-0911   | Gson: Google Json Library for
     22 | Active   |  80 | 18.0.0                 | Guava: Google Core Libraries f
     23 | Active   |  80 | 3.0.0.v201312141243    | Google Guice (No AOP)
     24 | Active   |  80 | 3.18.1.GA              | Javassist
     26 | Active   |  80 | 3.5.5                  | JmDNS
     28 | Active   |  80 | 1.0.0                  | Units of Measurement API
     30 | Active   |  80 | 1.1.0.Final            | Bean Validation API
     31 | Active   |  80 | 2.0.1                  | javax.ws.rs-api
     32 | Active   |  80 | 3.2.0.v201101311130    | ANTLR Runtime
     35 | Active   |  80 | 3.2.1                  | Commons Collections
     36 | Active   |  80 | 1.1                    | Commons Exec
     37 | Active   |  80 | 2.2.0                  | Commons IO
     38 | Active   |  80 | 2.6                    | Commons Lang
     47 | Active   |  80 | 4.2.1                  | Apache Karaf :: OSGi Services
     63 | Active   |  80 | 4.6.0                  | Apache XBean OSGI Bundle Utili
     64 | Active   |  80 | 4.6.0                  | Apache XBean :: Classpath Reso
     65 | Active   |  80 | 2.12.0.v20160420-0247  | EMF Common
     66 | Active   |  80 | 2.12.0.v20160420-0247  | EMF Ecore
     67 | Active   |  80 | 2.11.0.v20160420-0247  | EMF Change Model
     68 | Active   |  80 | 2.12.0.v20160420-0247  | EMF XML/XMI Persistence
     69 | Active   |  80 | 3.8.0.v20160509-1230   | Common Eclipse Runtime
     70 | Active   |  80 | 3.6.100.v20160223-2218 | Extension Registry Support
     80 | Active   |  80 | 9.4.11.v20180605       | Jetty :: Proxy
     94 | Active   |  80 | 0.4.1.v20180515-1321   | org.eclipse.lsp4j
     95 | Active   |  80 | 0.4.1.v20180515-1321   | org.eclipse.lsp4j.jsonrpc
     96 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome OAuth2Client
     97 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Config Core
     98 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Configuratio
     99 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Configuratio
    100 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Config Dispa
    101 | Active   |  75 | 0.10.0.oh240           | Eclipse SmartHome Config XML
    102 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core
    103 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core Audio
    104 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core Binding
    105 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core ID
    106 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core Persist
    107 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Scheduler Se
    108 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core Semanti
    109 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core Thing
    110 | Active   |  75 | 0.10.0.oh240           | Eclipse SmartHome Core Thing X
    111 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Transformati
    112 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core Voice
    113 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Console
    114 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Console for
    115 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome HTTP Interfa
    116 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome JavaSound I/
    117 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Monitor
    118 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Net I/O Bund
    119 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome REST Interfa
    120 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Core REST API
    121 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome REST mDNS An
    122 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome REST Interfa
    123 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Sitemap REST
    124 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome SSE REST API
    125 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Voice REST A
    126 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Bonjour/MDS
    127 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Web Audio Su
    128 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Model Core
    129 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Item Model
    130 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Item Model I
    131 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Item Model R
    132 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Language Ser
    133 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Persistence
    134 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Persistence
    135 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Persistence
    136 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Rule Model
    137 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Rule Model I
    138 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Rule Runtime
    139 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Script
    140 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Script Model
    141 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Script Runti
    142 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Sitemap Model
    143 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Sitemap Mode
    144 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Sitemap Runt
    145 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Thing Model
    146 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Thing Model
    147 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Thing Model
    148 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Json Storage
    149 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome UI
    150 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome UI Icons
    151 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Classic Icon
    152 | Active   |  80 | 2.14.0.v20180522-1629  | Xtend Runtime Library
    153 | Active   |  80 | 2.14.0.v20180522-1629  | Xtend Macro Interfaces
    154 | Active   |  80 | 2.14.0.v20180522-1821  | Xtext
    155 | Active   |  80 | 2.14.0.v20180522-1833  | Xtext Common Types
    156 | Active   |  80 | 2.14.0.v20180522-1821  | Xtext IDE Core
    157 | Active   |  80 | 2.14.0.v20180522-1821  | Xtext Utility
    158 | Active   |  80 | 2.14.0.v20180522-1833  | Xbase Model
    159 | Active   |  80 | 2.14.0.v20180522-1833  | Xbase Generic IDE Services
    160 | Active   |  80 | 2.14.0.v20180522-1629  | Xbase Runtime Library
    175 | Active   |  80 | 1.9.6                  | MIME streaming extension
    177 | Active   |  80 | 6.2.0                  | org.objectweb.asm
    178 | Active   |  80 | 6.2.0                  | org.objectweb.asm.commons
    179 | Active   |  80 | 6.2.0                  | org.objectweb.asm.tree
    180 | Active   |  90 | 2.4.0                  | openHAB Core
    181 | Active   |  80 | 2.4.0                  | openHAB Karaf Integration
    183 | Resolved |  80 | 2.4.0                  | openHAB Sound Support, Hosts:
    184 | Active   |  80 | 2.4.0                  | openHAB Dashboard UI
    189 | Active   |  80 | 1.0.2                  | Units of Measurement Common Li
    190 | Active   |  80 | 1.0.8                  | Units of Measurement Implement
    192 | Active   |  80 | 3.3.0                  | Commons Net
    193 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Basic UI, Fr
    194 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Paper UI, Fr
    195 | Resolved |  75 | 2.4.0                  | openHAB Basic UI Fragment, Hos
    196 | Active   |  80 | 2.4.0                  | HABPanel User Interface
    197 | Active   |  80 | 2.4.0                  | HomeBuilder User Interface
    198 | Resolved |  75 | 2.4.0                  | openHAB Paper UI Theme Fragmen
    199 | Active   |  80 | 1.2.0                  | Paho MQTT Client
    203 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome MQTT Transpo
    205 | Active   |  80 | 3.14.0                 | nrjavaserial
    206 | Active   |  80 | 3.15.0.OH2             | nrjavaserial
    207 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Configuratio
    208 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Configuratio
    209 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Config Serial
    210 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Serial Trans
    211 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Serial Trans
    212 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Serial Trans
    239 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Automation A
    240 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome MQTT Binding
    241 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome MQTT Thing B
    243 | Active   |  80 | 0.10.0.oh240           | Eclipse SmartHome Embedded MQT
    244 | Active   |  80 | 2.4.0.201812040738     | MySensors Binding
    openhab>
    

    DEBUG OpenHAB output

    openhab> log:set DEBUG org.openhab.binding.mysensors
    openhab> log:tail
    19:20:43.607 [INFO ] [e.core.internal.i18n.I18nProviderImpl] - Location set to '49.1911985,16.6012874'.
    19:20:45.120 [INFO ] [bpanel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
    19:20:45.557 [INFO ] [mebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
    19:20:53.685 [INFO ] [rthome.model.lsp.internal.ModelServer] - Started LanguageServer Protocol (LSP) service on port 5007
    19:20:55.198 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'MySensorsDevice011_Status-mqtt:topic:424a9ca3:1' has been added.
    19:20:55.198 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'MySensorsDevice011_Status-mysensors:light:3802127b:light_0_11:status' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'GenericMQTTThing_Rele-mqtt:topic:cf69ffbc:2' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'MySensorsDevice011_Status-mqtt:topic:3444e4d0:1' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'MySensorsDevice011_Status-mysensors:light:022d5309:light_0_1:status' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'GenericMQTTThing_-mqtt:topic:3444e4d0:2' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'GenericMQTTThing_-mqtt:topic:cf69ffbc:1' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'MySensorsDevice02_Level-mysensors:dust:022d5309:dust_0_2:level' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'GenericMQTTThing_Rele-mqtt:topic:310e7267:iddd' has been added.
    19:20:55.214 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'MySensorsDevice011_Statussssssssssssssssssss-mqtt:topic:3444e4d0:1' has been added.
    19:20:55.292 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:topic:310e7267' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
    19:20:55.900 [INFO ] [i.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.0.50:8080
    19:20:56.056 [INFO ] [i.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.0.50:8443
    19:20:56.867 [INFO ] [marthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
    19:20:57.694 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from UNINITIALIZED to INITIALIZING
    19:20:57.741 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): The system connection with the name embedded-mqtt-broker doesnt exist anymore.
    19:20:57.756 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:topic:310e7267' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
    19:20:57.819 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:topic:310e7267' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE)
    19:20:58.380 [WARN ] [er.internal.EmbeddedBrokerServiceImpl] - Embedded broker offline - Reason unknown
    19:20:58.396 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from OFFLINE (CONFIGURATION_ERROR): The system connection with the name embedded-mqtt-broker doesnt exist anymore. to OFFLINE
    19:20:58.474 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '127.0.0.1' with clientid embedded-mqtt-broker and file store 'C:\openhab\userdata\mqtt\127.0.0.1'
    19:20:58.552 [WARN ] [.moquette.spi.impl.SessionsRepository] - Session does notexist. CId=embedded-mqtt-broker
    19:20:58.552 [WARN ] [.moquette.spi.impl.SessionsRepository] - Session does notexist. CId=embedded-mqtt-broker
    19:20:58.614 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from OFFLINE to ONLINE
    19:20:58.614 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mqtt:topic:310e7267' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
    

    Gateway output:

    0 MCO:BGN:INIT GW,CP=R-NGA---,REL=255,VER=2.3.1
    1004 GWT:TIN:IP=192.168.0.33
    2009 !GWT:TIN:ETH FAIL
    2011 MCO:BGN:STP
    MY_NODE_ID: 
    2552013 MCO:REG:NOT NEEDED
    2016 MCO:BGN:INIT OK,TSP=NA
    2020 !GWT:TSA:ETH FAIL
    2023 !GWT:TSA:ETH FAIL
    2027 !GWT:TSA:ETH FAIL
    2030 !GWT:TSA:ETH FAIL
    2033 !GWT:TSA:ETH FAIL
    2037 !GWT:TSA:ETH FAIL
    

    The gateway works fine as MQTT client and it is able to connect to MQTT broker at port 1883 but I would like to make it work as regular mysensor ethernet gateway.


  • Mod

    @ivosch said in ethernet gateway on OpenHAB 2.4.0 + mysensors 2.4.0:

    2009 !GWT:TIN:ETH FAIL

    The ethernet interface isn't initializing correctly.
    I would focus on the gateway and ethernet hardware first.


 

342
Online

8.2k
Users

9.1k
Topics

96.7k
Posts