Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. OpenHAB
  4. MySensors Ethernet Gateway goes to OFFLINE state

MySensors Ethernet Gateway goes to OFFLINE state

Scheduled Pinned Locked Moved OpenHAB
86 Posts 6 Posters 28.9k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pentti12P Offline
    pentti12P Offline
    pentti12
    wrote on last edited by
    #18

    If I look at the configuration from HABmin side, I see for example this:

    Channels [1 active, 2 total]
    Temperature

    Linked Items
    Temperature

    So there is some linked items!

    jogantJ 1 Reply Last reply
    0
    • pentti12P pentti12

      If I look at the configuration from HABmin side, I see for example this:

      Channels [1 active, 2 total]
      Temperature

      Linked Items
      Temperature

      So there is some linked items!

      jogantJ Offline
      jogantJ Offline
      jogant
      wrote on last edited by
      #19

      @pentti12

      ok, but you have to see mysensor messages in the log file on a regularly basis. At least the default sketch for temperature and humidity sends updates every minute. Maybe your temperature is very constant then you will see updates every hour I think. Try to heat the node and let it cool down again.
      And connect your node or the gateway to the serial monitor. There you will see the mysensors activity. You should see OK for status updates and not to much NACK. Then you have a problem with your mysensors network.

      good luck ...

      1 Reply Last reply
      0
      • pentti12P Offline
        pentti12P Offline
        pentti12
        wrote on last edited by
        #20

        Here is the serial monitor printout from MySensors W5100 Gateway. I think that this listing is OK, but still there is no actual temperature nor humidity values at control screen of OH2 .

        0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
        0;255;3;0;9;TSM:INIT
        0;255;3;0;9;TSM:RADIO:OK
        0;255;3;0;9;TSM:GW MODE
        0;255;3;0;9;TSM:READY
        IP: 192.168.1.201
        0;255;3;0;9;No registration required
        0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:22.6
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:37.9
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:22.7
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSP:MSG:BC
        0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
        0;255;3;0;9;TSP:CHKUPL:OK
        0;255;3;0;9;TSP:MSG:GWL OK
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
        0;255;3;0;9;TSP:MSG:READ 9-9-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
        0;255;3;0;9;TSP:MSG:PINGED (ID=9, hops=1)
        0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1
        0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:37.9
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:38.0
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:38.0
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK
        0;255;3;0;9;TSP:SANCHK:OK

        The problem must be on OpenHAB2 side. What to do next?

        jogantJ 1 Reply Last reply
        0
        • pentti12P pentti12

          Here is the serial monitor printout from MySensors W5100 Gateway. I think that this listing is OK, but still there is no actual temperature nor humidity values at control screen of OH2 .

          0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
          0;255;3;0;9;TSM:INIT
          0;255;3;0;9;TSM:RADIO:OK
          0;255;3;0;9;TSM:GW MODE
          0;255;3;0;9;TSM:READY
          IP: 192.168.1.201
          0;255;3;0;9;No registration required
          0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:22.6
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:37.9
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:22.7
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:MSG:READ 9-9-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSP:MSG:BC
          0;255;3;0;9;TSP:MSG:FPAR REQ (sender=9)
          0;255;3;0;9;TSP:CHKUPL:OK
          0;255;3;0;9;TSP:MSG:GWL OK
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
          0;255;3;0;9;TSP:MSG:READ 9-9-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
          0;255;3;0;9;TSP:MSG:PINGED (ID=9, hops=1)
          0;255;3;0;9;TSP:MSG:SEND 0-0-9-9 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1
          0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:37.9
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:38.0
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:MSG:READ 9-9-0 s=10,c=1,t=1,pt=7,l=5,sg=0:38.0
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK
          0;255;3;0;9;TSP:SANCHK:OK

          The problem must be on OpenHAB2 side. What to do next?

          jogantJ Offline
          jogantJ Offline
          jogant
          wrote on last edited by
          #21

          @pentti12
          you are right, your serial log looks ok. So at least your mysensors network is up and running. In the moment the gateway receives an update from a sensor you should also see an incoming message in OH log. If this is not the case there might be something wrong with your binding config. You know https://github.com/tobof/openhab2-addons/wiki? There are valuable hints. Only difference to my setup is that I'm using mysensors 2.0.1 beta. No idea whether this makes any difference. Besides that I have no further idea. Sorry.

          1 Reply Last reply
          0
          • pentti12P Offline
            pentti12P Offline
            pentti12
            wrote on last edited by
            #22

            I see from OH2 event log:

            2016-11-22 06:17:43.911 [hingStatusInfoChangedEvent] - 'mysensors:bridge-eth:19d1e911' changed from UNINITIALIZED to INITIALIZING
            2016-11-22 06:17:43.937 [hingStatusInfoChangedEvent] - 'mysensors:bridge-eth:19d1e911' changed from INITIALIZING to ONLINE
            2016-11-22 06:19:49.491 [ItemCommandEvent ] - Item 'mysensors_temperature_9d001ab8_battery' received command REFRESH
            2016-11-22 06:20:05.658 [ItemCommandEvent ] - Item 'mysensors_temperature_9d001ab8_temp' received command REFRESH
            2016-11-22 06:21:08.469 [ItemCommandEvent ] - Item 'mysensors_temperature_9d001ab8_battery' received command REFRESH

            And from OH2 log:

            2016-11-22 06:11:11.125 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'test.things' is either empty or cannot be parsed correctly!
            2016-11-22 06:11:11.194 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.things'
            2016-11-22 06:11:11.251 [ERROR] [rs.protocol.ip.MySensorsIpConnection] - Error while trying to connect InputStreamReader
            2016-11-22 06:11:11.255 [ERROR] [rs.protocol.ip.MySensorsIpConnection] - Something went wrong!
            2016-11-22 06:11:11.322 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
            2016-11-22 06:12:08.388 [INFO ] [ome.io.rest.core.thing.ThingResource] - Received HTTP PUT request for update configuration at 'things/mysensors:bridge-eth:gateway/config' for an unmanaged thing 'mysensors:bridge-eth:gateway'.
            2016-11-22 06:12:32.535 [INFO ] [ome.io.rest.core.thing.ThingResource] - Received HTTP PUT request for update at 'things/mysensors:bridge-eth:gateway' for an unmanaged thing 'mysensors:bridge-eth:gateway'.
            2016-11-22 06:12:51.983 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
            2016-11-22 06:12:51.990 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'test.things' is either empty or cannot be parsed correctly!
            2016-11-22 06:12:52.016 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.things'
            2016-11-22 06:12:52.072 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
            2016-11-22 06:14:46.978 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
            2016-11-22 06:14:46.986 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'test.things' is either empty or cannot be parsed correctly!
            2016-11-22 06:14:47.045 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.things'

            So there are some problems at least on test.things file:

            Bridge mysensors:bridge-eth:gateway [ ipAddress="192.168.1.201", tcpPort=5003, sendDelay=200, imperial=false ] {
            /** define things connected to that bridge here */
            humidity hum01 [ nodeId="9", childId="10" ]
            temperature temp01 [ nodeId="9", childId="11" ]
            }

            Any advice?

            jogantJ 1 Reply Last reply
            0
            • pentti12P pentti12

              I see from OH2 event log:

              2016-11-22 06:17:43.911 [hingStatusInfoChangedEvent] - 'mysensors:bridge-eth:19d1e911' changed from UNINITIALIZED to INITIALIZING
              2016-11-22 06:17:43.937 [hingStatusInfoChangedEvent] - 'mysensors:bridge-eth:19d1e911' changed from INITIALIZING to ONLINE
              2016-11-22 06:19:49.491 [ItemCommandEvent ] - Item 'mysensors_temperature_9d001ab8_battery' received command REFRESH
              2016-11-22 06:20:05.658 [ItemCommandEvent ] - Item 'mysensors_temperature_9d001ab8_temp' received command REFRESH
              2016-11-22 06:21:08.469 [ItemCommandEvent ] - Item 'mysensors_temperature_9d001ab8_battery' received command REFRESH

              And from OH2 log:

              2016-11-22 06:11:11.125 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'test.things' is either empty or cannot be parsed correctly!
              2016-11-22 06:11:11.194 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.things'
              2016-11-22 06:11:11.251 [ERROR] [rs.protocol.ip.MySensorsIpConnection] - Error while trying to connect InputStreamReader
              2016-11-22 06:11:11.255 [ERROR] [rs.protocol.ip.MySensorsIpConnection] - Something went wrong!
              2016-11-22 06:11:11.322 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
              2016-11-22 06:12:08.388 [INFO ] [ome.io.rest.core.thing.ThingResource] - Received HTTP PUT request for update configuration at 'things/mysensors:bridge-eth:gateway/config' for an unmanaged thing 'mysensors:bridge-eth:gateway'.
              2016-11-22 06:12:32.535 [INFO ] [ome.io.rest.core.thing.ThingResource] - Received HTTP PUT request for update at 'things/mysensors:bridge-eth:gateway' for an unmanaged thing 'mysensors:bridge-eth:gateway'.
              2016-11-22 06:12:51.983 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
              2016-11-22 06:12:51.990 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'test.things' is either empty or cannot be parsed correctly!
              2016-11-22 06:12:52.016 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.things'
              2016-11-22 06:12:52.072 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
              2016-11-22 06:14:46.978 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'test.things'
              2016-11-22 06:14:46.986 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'test.things' is either empty or cannot be parsed correctly!
              2016-11-22 06:14:47.045 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.things'

              So there are some problems at least on test.things file:

              Bridge mysensors:bridge-eth:gateway [ ipAddress="192.168.1.201", tcpPort=5003, sendDelay=200, imperial=false ] {
              /** define things connected to that bridge here */
              humidity hum01 [ nodeId="9", childId="10" ]
              temperature temp01 [ nodeId="9", childId="11" ]
              }

              Any advice?

              jogantJ Offline
              jogantJ Offline
              jogant
              wrote on last edited by
              #23

              @pentti12

              ahh, try to leave out thing definition in config file and let OH discover things. After discovery remember to restart mysensors binding like @TimO explained. Then link discovered things to items and see if that works.
              Are you shure about your sonsor IDs? Usually they are numbered starting with 0.

              1 Reply Last reply
              0
              • pentti12P Offline
                pentti12P Offline
                pentti12
                wrote on last edited by
                #24

                No success!

                I ended up to the same situation, no real values of temperature nor humidity.
                OH2 cannot search things automatically. I added them manually after I configured the MySensors Gateway.

                jogantJ T 2 Replies Last reply
                0
                • pentti12P pentti12

                  No success!

                  I ended up to the same situation, no real values of temperature nor humidity.
                  OH2 cannot search things automatically. I added them manually after I configured the MySensors Gateway.

                  jogantJ Offline
                  jogantJ Offline
                  jogant
                  wrote on last edited by
                  #25

                  @pentti12

                  here you see a snippet from my log while in DEBUG mode for mysensors binding:

                  10:57:19.269 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:57:29.271 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:57:39.273 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:57:39.820 [INFO ] [marthome.event.ItemStateChangedEvent] - RTemp_EG_WZ_R_signal changed from -50 to -51
                  10:57:42.145 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;255;3;0;21;0
                  10:57:42.171 [DEBUG] [ternal.handler.MySensorsThingHandler] - Setting last update for node 2 to 2016-11-22T10:57:42.169+0100
                  10:57:42.174 [DEBUG] [ternal.handler.MySensorsThingHandler] - Setting last update for node 2 to 2016-11-22T10:57:42.172+0100
                  10:57:49.274 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:57:50.476 [INFO ] [marthome.event.ItemStateChangedEvent] - RTemp_UG_Ki_Li_signal changed from -61 to -60
                  10:57:59.276 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:57:59.465 [INFO ] [marthome.event.ItemStateChangedEvent] - RTemp_UG_SZ_signal changed from -68 to -67
                  10:58:09.278 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:58:19.280 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:58:29.282 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  10:58:30.810 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;0;1;0;23;80
                  10:58:30.817 [DEBUG] [ternal.handler.MySensorsThingHandler] - Setting last update for node 1 to 2016-11-22T10:58:30.815+0100
                  10:58:30.824 [DEBUG] [ternal.handler.MySensorsThingHandler] - Setting last update for node 1 to 2016-11-22T10:58:30.822+0100
                  10:58:30.833 [DEBUG] [ternal.handler.MySensorsThingHandler] - Setting last update for node 1 to 2016-11-22T10:58:30.831+0100
                  10:58:30.837 [INFO ] [marthome.event.ItemStateChangedEvent] - Lightlevel changed from 81 to 80
                  10:58:39.284 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped
                  

                  Here is the mysensors part my default.things

                  Bridge mysensors:bridge-eth:gateway [ ipAddress="192.168.96.9", tcpPort=5003, sendDelay=200 ] {
                       /** define things connected to that bridge here */
                    }
                  
                  

                  0_1479809074466_upload-a4b1d17f-3056-4c44-9f95-13fbeccae68b

                  0_1479809140350_upload-320df1cc-3f4d-4893-8a5e-dc44d0045cba

                  and the mysensors part of my items:

                  /* mysensors Licht/Temp/Hum */
                  Number Lightlevel "Helligkeit [%.0f %%]" <sun> (gLicht)                         { channel="mysensors:light-level:gateway:Light_level_1_0:light-level" }
                  Number mySensors1Hum "Luftfeuchte [%.1f %%]" <water>                            { channel="mysensors:humidity:gateway:Humidity_1_1:hum" }
                  Number mySensors1Temp "Temperatur [%.1f °C]" <temperature>                      { channel="mysensors:temperature:gateway:Temperature_1_2:temp" }
                  
                  

                  Maybe this is of any help as I don't have an idea what's wrong with your config.

                  1 Reply Last reply
                  0
                  • pentti12P pentti12

                    No success!

                    I ended up to the same situation, no real values of temperature nor humidity.
                    OH2 cannot search things automatically. I added them manually after I configured the MySensors Gateway.

                    T Offline
                    T Offline
                    TimO
                    Hero Member
                    wrote on last edited by
                    #26

                    Hi @pentti12 !
                    Stop searching, there is a bug in the binding. I'm working on it. ;-)

                    jogantJ 1 Reply Last reply
                    0
                    • pentti12P Offline
                      pentti12P Offline
                      pentti12
                      wrote on last edited by
                      #27

                      OK, TimO!

                      I will wait for the new version until I continue!

                      Pentti

                      T 1 Reply Last reply
                      0
                      • T TimO

                        Hi @pentti12 !
                        Stop searching, there is a bug in the binding. I'm working on it. ;-)

                        jogantJ Offline
                        jogantJ Offline
                        jogant
                        wrote on last edited by
                        #28

                        @TimO
                        funny that it works for me :smiley:

                        T 1 Reply Last reply
                        0
                        • jogantJ jogant

                          @TimO
                          funny that it works for me :smiley:

                          T Offline
                          T Offline
                          TimO
                          Hero Member
                          wrote on last edited by
                          #29

                          @jogant Sadly it works fine in my devolpment and test environment, too. ;-)
                          If you are using a OH2 snapshot that is older than 11 days there is a chance that it still works but it's not predictable.

                          jogantJ 1 Reply Last reply
                          0
                          • T TimO

                            @jogant Sadly it works fine in my devolpment and test environment, too. ;-)
                            If you are using a OH2 snapshot that is older than 11 days there is a chance that it still works but it's not predictable.

                            jogantJ Offline
                            jogantJ Offline
                            jogant
                            wrote on last edited by
                            #30

                            @TimO
                            ok, I'm using OH2 b4, that is definitely older than 11 days.

                            1 Reply Last reply
                            0
                            • pentti12P pentti12

                              OK, TimO!

                              I will wait for the new version until I continue!

                              Pentti

                              T Offline
                              T Offline
                              TimO
                              Hero Member
                              wrote on last edited by
                              #31

                              @pentti12 I've pushed a new version of the binding to github, please try it out and let me know if it helps.

                              jogantJ 1 Reply Last reply
                              0
                              • pentti12P Offline
                                pentti12P Offline
                                pentti12
                                wrote on last edited by
                                #32

                                Now I got only MySensors Ethernet Gateway into ONLINE state. The Humidity and Temperature Sensors (Things) stay UNINITIALIZED state.

                                T 1 Reply Last reply
                                0
                                • pentti12P pentti12

                                  Now I got only MySensors Ethernet Gateway into ONLINE state. The Humidity and Temperature Sensors (Things) stay UNINITIALIZED state.

                                  T Offline
                                  T Offline
                                  TimO
                                  Hero Member
                                  wrote on last edited by
                                  #33

                                  @pentti12 Have you deleted the things and newly discovered them? When the binding changes the mapdb (where discovered devices are stored) isn't updated as well. That's why I'm using the *.things files instead. If you try to remove the items errors could occure, this is another hint that this is the problem. After restart of OH2 the things should disappear.

                                  Another way to do this is:

                                  1. stop OH2
                                  2. rm /var/lib/openhab2/mapdb/*
                                  3. start OH2

                                  But this will delete all discovered things (not only MySensors)!

                                  1 Reply Last reply
                                  0
                                  • pentti12P Offline
                                    pentti12P Offline
                                    pentti12
                                    wrote on last edited by
                                    #34

                                    @pentti12 said:

                                    Now I got only MySensors Ethernet Gateway into ONLINE state. The Humidity and Temperature Sensors (Things) stay UNINITIALIZED state.

                                    I removed mapdb and things disappeared. I started OH2 again, but I got only MySensors Ethernet Gateway into ONLINE state after adding them manually The Humidity and Temperature Sensors (Things) stay UNINITIALIZED state.

                                    T 1 Reply Last reply
                                    0
                                    • pentti12P pentti12

                                      @pentti12 said:

                                      Now I got only MySensors Ethernet Gateway into ONLINE state. The Humidity and Temperature Sensors (Things) stay UNINITIALIZED state.

                                      I removed mapdb and things disappeared. I started OH2 again, but I got only MySensors Ethernet Gateway into ONLINE state after adding them manually The Humidity and Temperature Sensors (Things) stay UNINITIALIZED state.

                                      T Offline
                                      T Offline
                                      TimO
                                      Hero Member
                                      wrote on last edited by
                                      #35

                                      @pentti12 What does the log say?

                                      JicJ 1 Reply Last reply
                                      0
                                      • T TimO

                                        @pentti12 What does the log say?

                                        JicJ Offline
                                        JicJ Offline
                                        Jic
                                        wrote on last edited by
                                        #36

                                        @TimO I have exactly the same problem.

                                        My event.log is:

                                        2016-11-22 20:45:24.043 [temChannelLinkRemovedEvent] - Link 'mysensors_door_gateway_door01_armed => mysensors:door:gateway:door01:armed' has been removed.
                                        2016-11-22 20:54:35.089 [ItemChannelLinkAddedEvent ] - Link 'door01_tripped-mysensors:door:gateway:door01:tripped' has been added.
                                        2016-11-22 20:54:35.097 [ItemChannelLinkAddedEvent ] - Link 'door01_lastupdate-mysensors:door:gateway:door01:lastupdate' has been added.
                                        2016-11-22 20:54:35.671 [ThingAddedEvent           ] - Thing 'mysensors:bridge-ser:gateway' has been added.
                                        2016-11-22 20:54:35.682 [ThingAddedEvent           ] - Thing 'mysensors:door:gateway:door01' has been added.
                                        2016-11-22 20:54:36.702 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:gateway' changed from UNINITIALIZED to INITIALIZING
                                        2016-11-22 20:54:36.713 [hingStatusInfoChangedEvent] - 'mysensors:door:gateway:door01' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
                                        2016-11-22 20:54:40.191 [hingStatusInfoChangedEvent] - 'mysensors:bridge-ser:gateway' changed from INITIALIZING to ONLINE
                                        2016-11-22 20:54:40.262 [hingStatusInfoChangedEvent] - 'mysensors:door:gateway:door01' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
                                        2016-11-22 20:54:40.462 [hingStatusInfoChangedEvent] - 'mysensors:door:gateway:door01' changed from INITIALIZING to OFFLINE
                                        

                                        And my openhab.log is:

                                        2016-11-22 20:58:10.295 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                        2016-11-22 20:58:11.254 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;4;1;0;16;1
                                        2016-11-22 20:58:16.264 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;255;3;0;0;23
                                        2016-11-22 20:58:20.297 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                        2016-11-22 20:58:21.279 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;4;1;0;16;0
                                        2016-11-22 20:58:26.295 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;255;3;0;0;23
                                        2016-11-22 20:58:30.300 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                        2016-11-22 20:58:31.319 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;4;1;0;16;1
                                        

                                        I have downloaded your last binding, and the last version of MySensors. Thanks

                                        1 Reply Last reply
                                        0
                                        • pentti12P Offline
                                          pentti12P Offline
                                          pentti12
                                          wrote on last edited by
                                          #37

                                          Event log:
                                          2016-11-22 18:57:07.915 [hingStatusInfoChangedEvent] - 'mysensors:humidity:dd0f7b9e' changed from UNINITIALIZED to INITIALIZING
                                          2016-11-22 18:57:07.928 [hingStatusInfoChangedEvent] - 'mysensors:humidity:dd0f7b9e' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR): org.eclipse.smarthome.core.thing.Bridge.getHandler()Lorg/eclipse/smarthome/core/thing/binding/BridgeHandler;

                                          And Openhba log:

                                          2016-11-22 18:57:07.924 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while initializing handler of thing 'mysensors:humidity:dd0f7b9e': java.lang.NoSuchMethodError: org.eclipse.smarthome.core.thing.Bridge.getHandler()Lorg/eclipse/smarthome/core/thing/binding/BridgeHandler;
                                          java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: org.eclipse.smarthome.core.thing.Bridge.getHandler()Lorg/eclipse/smarthome/core/thing/binding/BridgeHandler;
                                          at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_101]
                                          at java.util.concurrent.FutureTask.get(FutureTask.java:206)[:1.8.0_101]
                                          at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:186)[96:org.eclipse.smarthome.core:0.9.0.201611102032]
                                          at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:79)[96:org.eclipse.smarthome.core:0.9.0.201611102032]
                                          at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:63)[96:org.eclipse.smarthome.core:0.9.0.201611102032]
                                          at org.eclipse.smarthome.core.thing.internal.ThingManager$9.run(ThingManager.java:761)[103:org.eclipse.smarthome.core.thing:0.9.0.201611102032]
                                          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_101]
                                          at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_101]
                                          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_101]
                                          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_101]
                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_101]
                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_101]
                                          at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
                                          Caused by: java.lang.NoSuchMethodError: org.eclipse.smarthome.core.thing.Bridge.getHandler()Lorg/eclipse/smarthome/core/thing/binding/BridgeHandler;
                                          at org.openhab.binding.mysensors.internal.handler.MySensorsThingHandler.getBridgeHandler(MySensorsThingHandler.java:284)
                                          at org.openhab.binding.mysensors.internal.handler.MySensorsThingHandler.initialize(MySensorsThingHandler.java:74)
                                          at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:764)
                                          at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:1)
                                          at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:177)
                                          at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_101]
                                          ... 3 more

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          13

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular