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. openHAB 2.0 binding

openHAB 2.0 binding

Scheduled Pinned Locked Moved OpenHAB
534 Posts 88 Posters 480.0k Views 99 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.
  • FutureCowF FutureCow

    I have a problem with adding one of my nodes.
    My temp en hum nodes are working perfectly, but i try to add a Light Level node. The sensor is sending the amount of Lux and not the percentage:

    18:14:59.572 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=3,l=2,sg=0:3
    18:14:59.572 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 1;0;1;0;23;3
    18:14:59.574 [ERROR] [g.mysensors.protocol.MySensorsReader] - (java.lang.IllegalStateException: Could not update state, because callback is missing) on reading from serial port, message: class org.openhab.binding.mysensors.protocol.serial.MySensorsSerialReader
    

    It is using CHILD_ID_LIGHT inside the skechts. Is this light level node supported?

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

    @FutureCow said:

    18:14:59.572 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 1;0;1;0;23;3
    

    According to this: https://www.mysensors.org/download/serial_api_20

    V_LIGHT_LEVEL	23	Uncalibrated light level. 0-100%. Use V_LEVEL for light level in lux.	S_LIGHT_LEVEL
    V_LEVEL	37	Used for sending level-value	S_DUST, S_AIR_QUALITY, S_SOUND (dB), S_VIBRATION (hz), S_LIGHT_LEVEL (lux)
    

    Your node should send "1;0;1;0;37;3 if I'm not mistaken.

    The light level message is supported by the binding.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TimO
      Hero Member
      wrote on last edited by TimO
      #263

      Small update to the progress:

      1. Expert mode: I've added a special thing that will allow rule based parsing and sending of MySensors messages. If the binding is limiting your creativity you are now free to go. ;-) You are now able to combine/adapt rules like in this Thread with the easy process of thing/item/sensor configuration. I've added a description to the Wiki. This may solve some problems mentioned above with sensors requesting information like pulse count.

      2. Last week the OH2 core team has released beta4 of OH2. I've tested the binding against the current beta and it is working fine.

      3. I've created a PR against the official openhab2-addons repository. I'm now awaiting feedback and hope to introduce the MySensors binding as part of OH2.

      1 Reply Last reply
      1
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #264

        Great job @Timo!

        1 Reply Last reply
        0
        • G Offline
          G Offline
          gonzalonal
          wrote on last edited by
          #265

          Great news to hear @TimO .
          I will be testing the binding in a couple of hours. It's really usefull the new RAW messenger things.
          Thanks!

          1 Reply Last reply
          0
          • xliborX Offline
            xliborX Offline
            xlibor
            wrote on last edited by
            #266

            Hi all, i am new in mysensors, but i have problem with install this plugin to OpenHab2.0 i tried versions 2.0 and 2.0b4 but i couldn't see this plugin in OpenHab2, i tried with RPi B, RPi3 with Raspian Jessie, and with Windows 10. But all with the same result.

            I placed org.openhab.binding.mysensors-2.0.0.SNAPSHOT.jar into addons directory, but i can't se it in OpenHab.

            Can anyone help me?

            T 1 Reply Last reply
            0
            • xliborX xlibor

              Hi all, i am new in mysensors, but i have problem with install this plugin to OpenHab2.0 i tried versions 2.0 and 2.0b4 but i couldn't see this plugin in OpenHab2, i tried with RPi B, RPi3 with Raspian Jessie, and with Windows 10. But all with the same result.

              I placed org.openhab.binding.mysensors-2.0.0.SNAPSHOT.jar into addons directory, but i can't se it in OpenHab.

              Can anyone help me?

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

              @xlibor Did you follow the instructions on the wiki and installed serial transport first? Is there a log file entry? How did you install OH2? Debian Package or Zip File?

              xliborX 2 Replies Last reply
              0
              • T TimO

                @xlibor Did you follow the instructions on the wiki and installed serial transport first? Is there a log file entry? How did you install OH2? Debian Package or Zip File?

                xliborX Offline
                xliborX Offline
                xlibor
                wrote on last edited by
                #268
                This post is deleted!
                1 Reply Last reply
                0
                • T TimO

                  @xlibor Did you follow the instructions on the wiki and installed serial transport first? Is there a log file entry? How did you install OH2? Debian Package or Zip File?

                  xliborX Offline
                  xliborX Offline
                  xlibor
                  wrote on last edited by xlibor
                  #269

                  @TimO Yes, i follow instruction on wiki and install serial transport sucesfully. I tried both types, first zip file and next package, but both with the same result :-(

                  In log file is nothing about mysensors or any error.

                  Now i downloaded again from github and now all works without any problem. But i don't know where was problem.

                  1 Reply Last reply
                  0
                  • daxjonesD Offline
                    daxjonesD Offline
                    daxjones
                    wrote on last edited by
                    #270

                    Hey All. Newbie alert here. I love the work you all do on here and this project is so exciting. I'm hooked after 2 weeks of 'fettling' and building sensors.

                    I've hit a brick wall though. after struggling with openhab1 I decided to make the leap straight to openhab2. Although in early days of testing it seems immediately abit more user friendly.

                    What I've done so far...
                    RaspberryPi3 is acting as controller with openhab2 installed and running fine. bindings to TV and Nest thermostat all working lovely.

                    Clone arduino Uno's with capacitors added for radio with NRF24 radio cards

                    Created GatewayW5100 gateway using the mysensors library sketch for it and set static IP to 192.168.0.11 (Openhab2 is set to 192.168.0.10) and my router gives DHCP from 192.168.0.20 up

                    created a temp and humidity sensor node and a node with a relay to turn a lamp on (both from mysensors library). Tested radio on all before moving ahead.

                    Installed the mysensors binding on OH2

                    Added a ethernet gateway

                    disabled startup connection check as it kept failing to initialise and showed as offline

                    Tried auto discovery of nodes... NOTHING

                    Tried setting node ID manually on the arduinos.. Still NOTHING, even if i add a thing manually to OH2.

                    I'm hoping i'm doing something stupid and its an easy fix.. Any pointers for a newbie??

                    D.

                    T 1 Reply Last reply
                    0
                    • daxjonesD daxjones

                      Hey All. Newbie alert here. I love the work you all do on here and this project is so exciting. I'm hooked after 2 weeks of 'fettling' and building sensors.

                      I've hit a brick wall though. after struggling with openhab1 I decided to make the leap straight to openhab2. Although in early days of testing it seems immediately abit more user friendly.

                      What I've done so far...
                      RaspberryPi3 is acting as controller with openhab2 installed and running fine. bindings to TV and Nest thermostat all working lovely.

                      Clone arduino Uno's with capacitors added for radio with NRF24 radio cards

                      Created GatewayW5100 gateway using the mysensors library sketch for it and set static IP to 192.168.0.11 (Openhab2 is set to 192.168.0.10) and my router gives DHCP from 192.168.0.20 up

                      created a temp and humidity sensor node and a node with a relay to turn a lamp on (both from mysensors library). Tested radio on all before moving ahead.

                      Installed the mysensors binding on OH2

                      Added a ethernet gateway

                      disabled startup connection check as it kept failing to initialise and showed as offline

                      Tried auto discovery of nodes... NOTHING

                      Tried setting node ID manually on the arduinos.. Still NOTHING, even if i add a thing manually to OH2.

                      I'm hoping i'm doing something stupid and its an easy fix.. Any pointers for a newbie??

                      D.

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

                      @daxjones

                      Have you tried to reach your gateway with telnet?

                      telnet 192.168.2.11 5003
                      

                      Does it respond? Do you see the messages from the node arriving?

                      Have you enabled debug output of the binding like described in the wiki? What does the log say?

                      FleischtorteF 1 Reply Last reply
                      0
                      • T TimO

                        @daxjones

                        Have you tried to reach your gateway with telnet?

                        telnet 192.168.2.11 5003
                        

                        Does it respond? Do you see the messages from the node arriving?

                        Have you enabled debug output of the binding like described in the wiki? What does the log say?

                        FleischtorteF Offline
                        FleischtorteF Offline
                        Fleischtorte
                        wrote on last edited by
                        #272

                        Hi@TimO

                        first, thanks for your awesome work :+1:
                        On the weekend i switched from OH1 to OH2 and your binding is working just out of the box :)
                        Im only missing the IR_Send and the V_TEXT sensor to integrate all of my sensors :(
                        could you integrate them in your binding?

                        T 1 Reply Last reply
                        0
                        • FleischtorteF Fleischtorte

                          Hi@TimO

                          first, thanks for your awesome work :+1:
                          On the weekend i switched from OH1 to OH2 and your binding is working just out of the box :)
                          Im only missing the IR_Send and the V_TEXT sensor to integrate all of my sensors :(
                          could you integrate them in your binding?

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

                          Thanks @Fleischtorte!

                          There already was a request for IR and I've added one for V_TEXT.

                          https://github.com/tobof/openhab2-addons/issues

                          @andreacioni has done some serious refactoring of the code. After looking in the refactoring I'll add the missing sensors.

                          1 Reply Last reply
                          1
                          • Meshx86M Offline
                            Meshx86M Offline
                            Meshx86
                            wrote on last edited by
                            #274

                            I have the following setup:

                            1. MQTT Gateway on Wemos D1 mini (ESP8266)
                            2. Node on Arduin pro mini

                            i can't get the openhab binding to distribute address to the nodes, in things in openhab there is no option for MQTT Gateway to add, what is the procedure ?

                            Cheers

                            Q 1 Reply Last reply
                            0
                            • Meshx86M Meshx86

                              I have the following setup:

                              1. MQTT Gateway on Wemos D1 mini (ESP8266)
                              2. Node on Arduin pro mini

                              i can't get the openhab binding to distribute address to the nodes, in things in openhab there is no option for MQTT Gateway to add, what is the procedure ?

                              Cheers

                              Q Offline
                              Q Offline
                              Qu3Uk
                              wrote on last edited by
                              #275

                              @Meshx86 the openhab binding doesnt support MQTT as far as I know.

                              If you are using the MQTT binding then you need another controller/method to provide the internal functions for my sensors. I use NodeRed workflow to listen for ID requests and it provides them.

                              Or static assign them in the node stretch.

                              1 Reply Last reply
                              0
                              • carlylerC Offline
                                carlylerC Offline
                                carlyler
                                wrote on last edited by
                                #276

                                @TimO: Thanks to you this weekend, while kids slept or napped, I managed to setup RPi gateway/controller with NRF24 and OH2.
                                Following the OH2 install instructions caused me some trouble, not sure why, but following your install instructions it came right up.
                                Thank you for the time and effort here.

                                1 Reply Last reply
                                0
                                • carlylerC Offline
                                  carlylerC Offline
                                  carlyler
                                  wrote on last edited by
                                  #277

                                  Having a couple issues:

                                  1. while adding 2nd node (tried power and temp/hum) OH2 would not assign node ID.
                                  2. assigned node ID manually (ID=2) and OH2 recognized power node but will not respond to V_VAR1 request.
                                  16:23:58.850 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;1;1;0;0;20.4
                                  16:23:58.874 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;0;1;0;1;47.3
                                  16:24:01.910 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:24:09.293 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;0;1;0;1;47.5
                                  16:24:11.911 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:24:11.942 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;0;2;0;24;
                                  16:24:19.736 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;0;1;0;1;47.7
                                  16:24:21.912 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:24:26.987 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;0;2;0;24;
                                  16:24:30.177 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;0;1;0;1;47.6
                                  16:24:31.913 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:24:40.604 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;0;1;0;1;47.5
                                  16:24:41.914 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:24:42.044 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;0;2;0;24;
                                  16:24:51.916 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:24:57.102 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;0;2;0;24;
                                  16:25:01.917 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:25:11.919 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:25:12.145 [DEBUG] [rs.internal.protocol.MySensorsReader] - 2;0;2;0;24;
                                  16:25:21.921 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
                                  16:25:22.304 [DEBUG] [rs.internal.protocol.MySensorsReader] - 1;0;1;0;1;47.6
                                  

                                  Things:

                                  Bridge mysensors:bridge-ser:gateway [ serialPort="/dev/pts/2", sendDelay=200 ] {
                                     /** define things connected to that bridge here */
                                     humidity        hum01   [ nodeId="1", childId="0" ]
                                     temperature     temp01  [ nodeId="1", childId="1" ]
                                     power           power01 [ nodeId="2", childId="0" ]
                                  }
                                  

                                  Items:

                                  Number hum01   "Humidity"              <humidity> { channel="mysensors:humidity:gateway:hum01:hum" }
                                  Number temp01  "Temperature"           <temperature> { channel="mysensors:temperature:gateway:temp01:temp" }
                                  Number temp01F "Temperature [%.1f °F]" <temperature>
                                  DateTime Sensor01LastUpdate "Last seen [%1$ta %1$tR]" <clock>
                                  DateTime Sensor02LastUpdate "Last seen [%1$ta %1$tR]" <clock>
                                  Number watt01  "Current Demand [%.0f Watt]" { channel="mysensors:power:gateway:power01:watt" }
                                  Number kwh01  "Daily Use [%.1f kWh]"        { channel="mysensors:power:gateway:power01:kwh" }
                                  
                                  

                                  What am i doing wrong?

                                  1 Reply Last reply
                                  0
                                  • carlylerC Offline
                                    carlylerC Offline
                                    carlyler
                                    wrote on last edited by
                                    #278

                                    OK, I think I got past that, I reinstalled everything and cleaned up my MySensors libraries.There is a chance I was pulling from different version when compiling the different examples from different packages.

                                    But, I noticed this exception at OH2 startup:

                                    06:29:26.838 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:gateway' changed from UNINITIALIZED to INITIALIZING
                                    06:29:26.924 [DEBUG] [ternal.handler.MySensorsThingHandler] - Configuration: node 1, chiledId: 1, revertState: false
                                    06:29:26.924 [DEBUG] [ternal.handler.MySensorsThingHandler] - Configuration: node 1, chiledId: 0, revertState: false
                                    06:29:26.932 [DEBUG] [ternal.handler.MySensorsThingHandler] - Configuration: node 2, chiledId: 0, revertState: false
                                    06:29:26.951 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:humidity:gateway:hum01' changed from UNINITIALIZED to INITIALIZING
                                    06:29:26.946 [DEBUG] [col.serial.MySensorsSerialConnection] - Set skip check on startup to: false
                                    06:29:26.956 [DEBUG] [col.serial.MySensorsSerialConnection] - Enabling connection watchdog
                                    06:29:26.964 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:temperature:gateway:temp01' changed from UNINITIALIZED to INITIALIZING
                                    06:29:26.969 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:power:gateway:power01' changed from UNINITIALIZED to INITIALIZING
                                    06:29:26.993 [DEBUG] [ternal.factory.MySensorsCacheFactory] - Cache file: given_ids.cached exist.
                                    06:29:27.001 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/pts/3 [baudRate:115200]
                                    06:29:27.032 [DEBUG] [ternal.factory.MySensorsCacheFactory] - Cache (given_ids) content: []
                                    06:29:27.067 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:gateway' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
                                    06:29:27.041 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while initializing handler of thing 'mysensors:bridge-ser:gateway': java.lang.UnsupportedOperationException
                                    java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
                                    	at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_65]
                                    	at java.util.concurrent.FutureTask.get(FutureTask.java:206)[:1.8.0_65]
                                    	at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:186)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                    	at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:79)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                    	at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:63)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                    	at org.eclipse.smarthome.core.thing.internal.ThingManager$9.run(ThingManager.java:755)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
                                    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_65]
                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
                                    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_65]
                                    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_65]
                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65]
                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65]
                                    	at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
                                    Caused by: java.lang.UnsupportedOperationException
                                    	at java.util.AbstractList.add(AbstractList.java:148)[:1.8.0_65]
                                    	at java.util.AbstractList.add(AbstractList.java:108)[:1.8.0_65]
                                    	at org.openhab.binding.mysensors.internal.handler.MySensorsBridgeHandler.loadCacheFile(MySensorsBridgeHandler.java:176)[10:org.openhab.binding.mysensors:2.0.0.201610021604]
                                    	at org.openhab.binding.mysensors.internal.handler.MySensorsBridgeHandler.initialize(MySensorsBridgeHandler.java:90)[10:org.openhab.binding.mysensors:2.0.0.201610021604]
                                    	at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:758)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
                                    	at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:1)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
                                    	at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:177)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
                                    	... 3 more
                                    06:29:27.198 [DEBUG] [col.serial.MySensorsSerialConnection] - Final port list: /dev/pts/3
                                    06:29:27.232 [DEBUG] [col.serial.MySensorsSerialConnection] - Successfully connected to serial port.
                                    06:29:27.234 [DEBUG] [col.serial.MySensorsSerialConnection] - Waiting 3 seconds to allow correct reset trigger on serial connection opening
                                    06:29:29.428 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
                                    06:29:29.897 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
                                    06:29:30.262 [DEBUG] [rs.internal.protocol.MySensorsReader] - ;255;3;0;14;Gateway startup complete.
                                    06:29:30.274 [ERROR] [rs.internal.protocol.MySensorsReader] - (java.lang.NumberFormatException: For input string: "") on reading from serial port, message: class org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialReader
                                    06:29:30.283 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;0;0;18;2.0.1-beta
                                    

                                    Things still seem to work, but do I have something wrong?

                                    andreacioniA 1 Reply Last reply
                                    0
                                    • carlylerC carlyler

                                      OK, I think I got past that, I reinstalled everything and cleaned up my MySensors libraries.There is a chance I was pulling from different version when compiling the different examples from different packages.

                                      But, I noticed this exception at OH2 startup:

                                      06:29:26.838 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:gateway' changed from UNINITIALIZED to INITIALIZING
                                      06:29:26.924 [DEBUG] [ternal.handler.MySensorsThingHandler] - Configuration: node 1, chiledId: 1, revertState: false
                                      06:29:26.924 [DEBUG] [ternal.handler.MySensorsThingHandler] - Configuration: node 1, chiledId: 0, revertState: false
                                      06:29:26.932 [DEBUG] [ternal.handler.MySensorsThingHandler] - Configuration: node 2, chiledId: 0, revertState: false
                                      06:29:26.951 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:humidity:gateway:hum01' changed from UNINITIALIZED to INITIALIZING
                                      06:29:26.946 [DEBUG] [col.serial.MySensorsSerialConnection] - Set skip check on startup to: false
                                      06:29:26.956 [DEBUG] [col.serial.MySensorsSerialConnection] - Enabling connection watchdog
                                      06:29:26.964 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:temperature:gateway:temp01' changed from UNINITIALIZED to INITIALIZING
                                      06:29:26.969 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:power:gateway:power01' changed from UNINITIALIZED to INITIALIZING
                                      06:29:26.993 [DEBUG] [ternal.factory.MySensorsCacheFactory] - Cache file: given_ids.cached exist.
                                      06:29:27.001 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/pts/3 [baudRate:115200]
                                      06:29:27.032 [DEBUG] [ternal.factory.MySensorsCacheFactory] - Cache (given_ids) content: []
                                      06:29:27.067 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:gateway' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
                                      06:29:27.041 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while initializing handler of thing 'mysensors:bridge-ser:gateway': java.lang.UnsupportedOperationException
                                      java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
                                      	at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_65]
                                      	at java.util.concurrent.FutureTask.get(FutureTask.java:206)[:1.8.0_65]
                                      	at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:186)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                      	at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:79)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                      	at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:63)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                      	at org.eclipse.smarthome.core.thing.internal.ThingManager$9.run(ThingManager.java:755)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
                                      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_65]
                                      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
                                      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_65]
                                      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_65]
                                      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_65]
                                      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_65]
                                      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
                                      Caused by: java.lang.UnsupportedOperationException
                                      	at java.util.AbstractList.add(AbstractList.java:148)[:1.8.0_65]
                                      	at java.util.AbstractList.add(AbstractList.java:108)[:1.8.0_65]
                                      	at org.openhab.binding.mysensors.internal.handler.MySensorsBridgeHandler.loadCacheFile(MySensorsBridgeHandler.java:176)[10:org.openhab.binding.mysensors:2.0.0.201610021604]
                                      	at org.openhab.binding.mysensors.internal.handler.MySensorsBridgeHandler.initialize(MySensorsBridgeHandler.java:90)[10:org.openhab.binding.mysensors:2.0.0.201610021604]
                                      	at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:758)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
                                      	at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:1)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
                                      	at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:177)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
                                      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_65]
                                      	... 3 more
                                      06:29:27.198 [DEBUG] [col.serial.MySensorsSerialConnection] - Final port list: /dev/pts/3
                                      06:29:27.232 [DEBUG] [col.serial.MySensorsSerialConnection] - Successfully connected to serial port.
                                      06:29:27.234 [DEBUG] [col.serial.MySensorsSerialConnection] - Waiting 3 seconds to allow correct reset trigger on serial connection opening
                                      06:29:29.428 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
                                      06:29:29.897 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
                                      06:29:30.262 [DEBUG] [rs.internal.protocol.MySensorsReader] - ;255;3;0;14;Gateway startup complete.
                                      06:29:30.274 [ERROR] [rs.internal.protocol.MySensorsReader] - (java.lang.NumberFormatException: For input string: "") on reading from serial port, message: class org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialReader
                                      06:29:30.283 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;0;0;18;2.0.1-beta
                                      

                                      Things still seem to work, but do I have something wrong?

                                      andreacioniA Offline
                                      andreacioniA Offline
                                      andreacioni
                                      wrote on last edited by
                                      #279

                                      Hi @carlyler :)

                                      what version of JVM are you using? 1.7 or 1.8?

                                      carlylerC 1 Reply Last reply
                                      0
                                      • andreacioniA andreacioni

                                        Hi @carlyler :)

                                        what version of JVM are you using? 1.7 or 1.8?

                                        carlylerC Offline
                                        carlylerC Offline
                                        carlyler
                                        wrote on last edited by
                                        #280

                                        @andreacioni after reading this thread I realized you have done a lot of work here as well, thank you.

                                        I am running:
                                        pi@raspberrypi:~ $ java -version
                                        java version "1.8.0_65"
                                        Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
                                        Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
                                        pi@raspberrypi:~ $

                                        1 Reply Last reply
                                        0
                                        • H Offline
                                          H Offline
                                          hausinger
                                          wrote on last edited by
                                          #281

                                          Hello community,

                                          i have a small problem with openhab2 (on a orange pi with armbian - similar to raspberry) and mysensors Serial Gateway.
                                          I installed openhab2 with the get methode and it works fine. I was able, to start it with openhab2.service (also automated) and openhab2 worked as it should. But if i want to connect the mysensors serial gateway to the orange pi with openhab2, openhab2 can't find my gateway. The log says "openhab is unable to connect to serial port, wrong serial port?"
                                          But my serial port is ok.
                                          If i stop openhab2.service and manual start openhab2, than all is fine, it can connect to serial gateway immediately and work fine. I don't know, why it can't work if openhab2 starts as service. Can you help me in this case?

                                          Thank you.

                                          And sorry for my english, it's not my first language

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


                                          11

                                          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