Skip to content
  • 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
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

openHAB 2.0 binding

Scheduled Pinned Locked Moved OpenHAB
534 Posts 88 Posters 479.5k 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.
  • H Offline
    H Offline
    hillmanr
    wrote on last edited by
    #371

    Got the 2.0.0.201701181308 binding, works, thanks. Amazing effort on the binding, great job.

    1 Reply Last reply
    0
    • T TimO

      @ben999

      1. It is possible to discover things with PaperUI and afterwards insert them in an item and sitemap file. Just use the channel that was given due to recovery. This way you don't need the things file.

      2. You may delete the hole database or edit it with a text editor as it is a jsondb file. I'm on my phone, so I can't give you the correct location right now.

      Did you try habmin? I've seen some amazing screenshots but haven't tried it myself.

      ben999B Offline
      ben999B Offline
      ben999
      wrote on last edited by ben999
      #372

      @TimO
      Thanks a lot Tim
      Found a few interresting files in /usr/share/openhab2/userdata/jsondb (one containing history of discovery)
      Got rid of them all then rebooted but no change: my log is still polluted with that kind of entries:

      05:33:19.658 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '3' for item 'salonBatt01' to handler for channel 'mysensors:temperature:gateway:Temperature_1_0:battery', because no thing with the UID 'mysensors:temperature:gateway:Temperature_1_0' could be found.
      05:33:19.660 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '3' for item 'salonBatt01' to handler for channel 'mysensors:humidity:gateway:salonBatt01:battery', because no thing with the UID 'mysensors:humidity:gateway:salonBatt01' could be found.
      

      There also was a backup directory in there... deleted but no change
      Another location?

      EDIT : files in that directory are back after a reboot :D (meaning that the files themselves are back, and the one containing discovery data still contains it !!!)

      Thanks a lot for your help buddies

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Fabien
        wrote on last edited by
        #373

        This binding works fine with 2.1.1 sensors actually Temp/Hum, Ph/ORP, RollerShutters. thanks for your work on this binding @TimO !
        Is this binding work with firmware update : http://docs.openhab.org/administration/runtime.html ?

        T 1 Reply Last reply
        0
        • F Fabien

          This binding works fine with 2.1.1 sensors actually Temp/Hum, Ph/ORP, RollerShutters. thanks for your work on this binding @TimO !
          Is this binding work with firmware update : http://docs.openhab.org/administration/runtime.html ?

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

          @Fabien Thank you for your feedback!
          And: I've waited for that question according firmware updates to come up. :-D

          I've looked into it and I'm very interested but till now there is only the implementation in the library, I've not seen an implementation in a binding. I'll continue to look at it, but with low priority. :-)

          Current priority list is:

          1. Include binding in OH2 repository.
          2. Test and include the big refactoring from @andreacioni .
          3. Add MQTT gateway (proof of concept working, full integration after refactoring).
          4. Add little feature requests, add sensors ...
          1 Reply Last reply
          1
          • F Offline
            F Offline
            Fritzin
            wrote on last edited by
            #375

            This is so great. I am fairly new to openhab 2. I have it up and running on a RP3. No issues during the install. I was able to get Habmin and paperhab up and running. I installed a few add-ons that were part of the img on openhab.com. However, i cant figure out how to add mysensors.org add-on. I am using OSX and I can't figure out where to place the file in openhab2 on the raspberry pi. Please help!!!!

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

              The jar needs to be placed here:

              /usr/share/openhab2/addons/

              You'll find further instructions here:

              https://github.com/tobof/openhab2-addons/wiki/Installation

              1 Reply Last reply
              0
              • A Offline
                A Offline
                azuntik
                wrote on last edited by
                #377

                I was able to successfully install the binding, but when I added a temperature sensor as a test, it keeps failing. This is the error message I'm getting:

                17:01:28.130 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while initializing handler of thing 'mysensors:temperature:4c0b17b9': java.lang.NullPointerException
                java.util.concurrent.ExecutionException: java.lang.NullPointerException
                        at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_121]
                        at java.util.concurrent.FutureTask.get(FutureTask.java:206)[:1.8.0_121]
                        at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:188)[98:org.eclipse.smarthome.core:0.9.0.b4]
                        at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:81)[98:org.eclipse.smarthome.core:0.9.0.b4]
                        at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:65)[98:org.eclipse.smarthome.core:0.9.0.b4]
                        at org.eclipse.smarthome.core.thing.internal.ThingManager$9.run(ThingManager.java:710)[105:org.eclipse.smarthome.core.thing:0.9.0.b4]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
                        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_121]
                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
                        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
                Caused by: java.lang.NullPointerException
                        at org.openhab.binding.mysensors.internal.handler.MySensorsThingHandler.getBridgeHandler(MySensorsThingHandler.java:268)[193:org.openhab.binding.mysensors:2.0.0.201701181308]
                        at org.openhab.binding.mysensors.internal.handler.MySensorsThingHandler.initialize(MySensorsThingHandler.java:77)[193:org.openhab.binding.mysensors:2.0.0.201701181308]
                        at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:713)[105:org.eclipse.smarthome.core.thing:0.9.0.b4]
                        at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:1)[105:org.eclipse.smarthome.core.thing:0.9.0.b4]
                        at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:179)[98:org.eclipse.smarthome.core:0.9.0.b4]
                        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
                        ... 3 more
                

                Any thoughts?

                T 1 Reply Last reply
                0
                • A azuntik

                  I was able to successfully install the binding, but when I added a temperature sensor as a test, it keeps failing. This is the error message I'm getting:

                  17:01:28.130 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while initializing handler of thing 'mysensors:temperature:4c0b17b9': java.lang.NullPointerException
                  java.util.concurrent.ExecutionException: java.lang.NullPointerException
                          at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_121]
                          at java.util.concurrent.FutureTask.get(FutureTask.java:206)[:1.8.0_121]
                          at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:188)[98:org.eclipse.smarthome.core:0.9.0.b4]
                          at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:81)[98:org.eclipse.smarthome.core:0.9.0.b4]
                          at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:65)[98:org.eclipse.smarthome.core:0.9.0.b4]
                          at org.eclipse.smarthome.core.thing.internal.ThingManager$9.run(ThingManager.java:710)[105:org.eclipse.smarthome.core.thing:0.9.0.b4]
                          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
                          at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
                          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121]
                          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_121]
                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
                          at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
                  Caused by: java.lang.NullPointerException
                          at org.openhab.binding.mysensors.internal.handler.MySensorsThingHandler.getBridgeHandler(MySensorsThingHandler.java:268)[193:org.openhab.binding.mysensors:2.0.0.201701181308]
                          at org.openhab.binding.mysensors.internal.handler.MySensorsThingHandler.initialize(MySensorsThingHandler.java:77)[193:org.openhab.binding.mysensors:2.0.0.201701181308]
                          at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:713)[105:org.eclipse.smarthome.core.thing:0.9.0.b4]
                          at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:1)[105:org.eclipse.smarthome.core.thing:0.9.0.b4]
                          at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:179)[98:org.eclipse.smarthome.core:0.9.0.b4]
                          at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
                          ... 3 more
                  

                  Any thoughts?

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

                  @azuntik Did you configure the temperature thing in the things and items file? Please post the contents of these files. Please add the debug log from the time before and after the exception occurs. Which version (snapshot, stable) of OH2 are you running?

                  A 1 Reply Last reply
                  0
                  • T TimO

                    @azuntik Did you configure the temperature thing in the things and items file? Please post the contents of these files. Please add the debug log from the time before and after the exception occurs. Which version (snapshot, stable) of OH2 are you running?

                    A Offline
                    A Offline
                    azuntik
                    wrote on last edited by azuntik
                    #379

                    @TimO I'll be honest with you: I'm not sure I configured everything properly. I don't have things or items files, because I set things up through the PaperUI. Do I need to set everything up through config files?

                    I've attached the complete log file. I'm running stable.

                    Thanks for your help!

                    Edit: Nevermind. I don't have permission to upload a file. So, here's a pastebin: http://pastebin.com/jLeTXbvX (the timestamps are wrong, you can ignore the date).

                    Edit2: One thing that I was having trouble with was determining the Node and Child IDs. I finally settled on what I think they are (105 and 255, respectively), but I may be wrong. Any advice with regard to figuring that out would also be greatly appreciated!

                    marceltrapmanM 1 Reply Last reply
                    0
                    • A azuntik

                      @TimO I'll be honest with you: I'm not sure I configured everything properly. I don't have things or items files, because I set things up through the PaperUI. Do I need to set everything up through config files?

                      I've attached the complete log file. I'm running stable.

                      Thanks for your help!

                      Edit: Nevermind. I don't have permission to upload a file. So, here's a pastebin: http://pastebin.com/jLeTXbvX (the timestamps are wrong, you can ignore the date).

                      Edit2: One thing that I was having trouble with was determining the Node and Child IDs. I finally settled on what I think they are (105 and 255, respectively), but I may be wrong. Any advice with regard to figuring that out would also be greatly appreciated!

                      marceltrapmanM Offline
                      marceltrapmanM Offline
                      marceltrapman
                      Mod
                      wrote on last edited by
                      #380

                      @azuntik You should know what you are creating ;)

                      In PaperUI you first create a thing for the gateway (I assume that worked for you).
                      Next OpenHAB should find all attached things for you, no need to create them manually. Just confirm what OpenHAB found.
                      Based on available properties you create an Item.

                      Fulltime Servoy Developer
                      Parttime Moderator MySensors board

                      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                      I have a FABtotum to print cases.

                      A 1 Reply Last reply
                      0
                      • marceltrapmanM marceltrapman

                        @azuntik You should know what you are creating ;)

                        In PaperUI you first create a thing for the gateway (I assume that worked for you).
                        Next OpenHAB should find all attached things for you, no need to create them manually. Just confirm what OpenHAB found.
                        Based on available properties you create an Item.

                        A Offline
                        A Offline
                        azuntik
                        wrote on last edited by azuntik
                        #381

                        @marceltrapman Frankenstein's Monster? :D

                        So, the UI is not detecting anything, although testing mysgw shows it receiving data. Is this a misconfiguration on my part?

                        Edit: Nevermind. I think what you said just sank in. Thanks for your help!

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nikos1671
                          wrote on last edited by
                          #382

                          Hi TimO
                          Can you please add support for gas meter S_GAS like the water meter.

                          Thanks
                          Nikos

                          S 1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            David Link
                            wrote on last edited by
                            #383

                            Hello all! I believe I have done my due diligence in solving my own problem, but I am stuck. Can anyone point me in the right direction?

                            I am trying to get started with an Ethernet Gateway. The gateway is displayed on the PaperUI, but in the log, it continues to try and connect to the ip bridge (Sending to MySensors: 0;0;3;0;2;)

                            I am on:
                            openhab 2.1.0-snapshot build #791
                            MySensors Binding: 2.0.0.201701181308
                            Gateway is using library 2.1.1

                            I have tried:
                            Clearing the EEPROM on the gateway thinking some garbage got stuck there.
                            Set up and successfully used an MQTT gateway, thinking bad hardware?
                            Restarted the binding, openhab, kitchen sink countless times.
                            Updating everything to the latest build I could find
                            Manually creating things

                            The only thing that seems odd to me is the gateway repeats over and over what appears to be initialization data (displays ip address, 0;255;3;0;9;MC0;BGN;STP.....). However, it does receive data from a temperature node I built.

                            I appreciate any pointers that can be provided, including "have you read this page?", though I think my Google search is permanently stuck on "mysensors openhab" at this point.

                            Thanks,

                            Dave

                            T A 2 Replies Last reply
                            0
                            • N nikos1671

                              Hi TimO
                              Can you please add support for gas meter S_GAS like the water meter.

                              Thanks
                              Nikos

                              S Offline
                              S Offline
                              stoffej
                              wrote on last edited by
                              #384

                              @nikos1671

                              Where do I found the Mysensors Binding 2.0.0.201701181308 jar file for download?
                              Or is it mandatory to compile it from source?

                              Thanks Kristoffer

                              T 1 Reply Last reply
                              0
                              • D David Link

                                Hello all! I believe I have done my due diligence in solving my own problem, but I am stuck. Can anyone point me in the right direction?

                                I am trying to get started with an Ethernet Gateway. The gateway is displayed on the PaperUI, but in the log, it continues to try and connect to the ip bridge (Sending to MySensors: 0;0;3;0;2;)

                                I am on:
                                openhab 2.1.0-snapshot build #791
                                MySensors Binding: 2.0.0.201701181308
                                Gateway is using library 2.1.1

                                I have tried:
                                Clearing the EEPROM on the gateway thinking some garbage got stuck there.
                                Set up and successfully used an MQTT gateway, thinking bad hardware?
                                Restarted the binding, openhab, kitchen sink countless times.
                                Updating everything to the latest build I could find
                                Manually creating things

                                The only thing that seems odd to me is the gateway repeats over and over what appears to be initialization data (displays ip address, 0;255;3;0;9;MC0;BGN;STP.....). However, it does receive data from a temperature node I built.

                                I appreciate any pointers that can be provided, including "have you read this page?", though I think my Google search is permanently stuck on "mysensors openhab" at this point.

                                Thanks,

                                Dave

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

                                @David-Link Are you sure the gateway isn't in a boot loop?

                                D 1 Reply Last reply
                                0
                                • S stoffej

                                  @nikos1671

                                  Where do I found the Mysensors Binding 2.0.0.201701181308 jar file for download?
                                  Or is it mandatory to compile it from source?

                                  Thanks Kristoffer

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

                                  @stoffej HERE

                                  1 Reply Last reply
                                  0
                                  • T TimO

                                    @David-Link Are you sure the gateway isn't in a boot loop?

                                    D Offline
                                    D Offline
                                    David Link
                                    wrote on last edited by
                                    #387

                                    @TimO That's exactly what is going on. Thank you for the tip, I was pulling my hair out. Now on to solving that problem! Thanks again.

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      mlava
                                      wrote on last edited by
                                      #388

                                      Hi @TimO
                                      I am having trouble but think I might be doing it wrong.
                                      Is it possible to use this binding with a MQTT gateway?
                                      I see that it needs to find the gateway on port 5003 but this isn't defined in MQTT gateway.
                                      Is it possible?

                                      T 1 Reply Last reply
                                      0
                                      • M mlava

                                        Hi @TimO
                                        I am having trouble but think I might be doing it wrong.
                                        Is it possible to use this binding with a MQTT gateway?
                                        I see that it needs to find the gateway on port 5003 but this isn't defined in MQTT gateway.
                                        Is it possible?

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

                                        Hi @mlava !
                                        The MQTT gateway is not supported at the moment. I've done a proof of concept and it will be implemented after the refactoring we're currently working on.

                                        M 1 Reply Last reply
                                        1
                                        • T TimO

                                          Hi @mlava !
                                          The MQTT gateway is not supported at the moment. I've done a proof of concept and it will be implemented after the refactoring we're currently working on.

                                          M Offline
                                          M Offline
                                          mlava
                                          wrote on last edited by
                                          #390

                                          @TimO
                                          Wonderful, thank you for the answer.
                                          I'll wait eagerly for progress! 😀

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


                                          14

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular