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.6k 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.
  • AndrewZA Offline
    AndrewZA Offline
    AndrewZ
    wrote on last edited by AndrewZ
    #349

    Hello everyone
    I'm slowly migrating to OH2, my small MySensors network generally works fine but I see some weird behavior with the binding configuration in Paper UI.
    So far it looks like "Disable network sanity check" is reversed - I'm sliding it to the left which means for me 'not disabled', i.e. 'enabled', but in the log I see "Checker thread disabled".

    2017-01-11 16:50:38.405 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;14;Gateway startup complete.
    2017-01-11 16:50:38.408 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;0;0;18;2.1.0
    2017-01-11 16:50:38.503 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    2017-01-11 16:50:38.511 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;2;2.1.0
    2017-01-11 16:50:38.512 [DEBUG] [col.serial.MySensorsSerialConnection] - Good,Gateway is up and running! (Ver:2.1.0)
    2017-01-11 16:50:38.514 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.
    2017-01-11 16:50:38.515 [WARN ] [col.serial.MySensorsSerialConnection] - Network Sanity Checker thread disabled from bridge configuration
    2017-01-11 16:50:48.516 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
    
    

    Is that ok?

    T 1 Reply Last reply
    0
    • AndrewZA AndrewZ

      Hello everyone
      I'm slowly migrating to OH2, my small MySensors network generally works fine but I see some weird behavior with the binding configuration in Paper UI.
      So far it looks like "Disable network sanity check" is reversed - I'm sliding it to the left which means for me 'not disabled', i.e. 'enabled', but in the log I see "Checker thread disabled".

      2017-01-11 16:50:38.405 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;14;Gateway startup complete.
      2017-01-11 16:50:38.408 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;0;0;18;2.1.0
      2017-01-11 16:50:38.503 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
      2017-01-11 16:50:38.511 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;2;2.1.0
      2017-01-11 16:50:38.512 [DEBUG] [col.serial.MySensorsSerialConnection] - Good,Gateway is up and running! (Ver:2.1.0)
      2017-01-11 16:50:38.514 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.
      2017-01-11 16:50:38.515 [WARN ] [col.serial.MySensorsSerialConnection] - Network Sanity Checker thread disabled from bridge configuration
      2017-01-11 16:50:48.516 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
      
      

      Is that ok?

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

      @AndrewZ Don't worry about that message, the debug log looks good. The warning is confusing and we need to change that. :-)

      AndrewZA 1 Reply Last reply
      0
      • T TimO

        @AndrewZ Don't worry about that message, the debug log looks good. The warning is confusing and we need to change that. :-)

        AndrewZA Offline
        AndrewZA Offline
        AndrewZ
        wrote on last edited by
        #351

        @TimO Thanks, will keep it off in the GUI.

        1 Reply Last reply
        0
        • Duncan PullenD Offline
          Duncan PullenD Offline
          Duncan Pullen
          wrote on last edited by
          #352

          Hi @TimO

          I've logged a job to include documentation about non-native OpenHAB 2.0 bindings in the official OH2 docs.

          ThomDeitrich is looking to know why it's not yet in the official distro. Can provide some info?

          https://github.com/openhab/openhab-docs/issues/188

          T 1 Reply Last reply
          0
          • Duncan PullenD Duncan Pullen

            Hi @TimO

            I've logged a job to include documentation about non-native OpenHAB 2.0 bindings in the official OH2 docs.

            ThomDeitrich is looking to know why it's not yet in the official distro. Can provide some info?

            https://github.com/openhab/openhab-docs/issues/188

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

            Hey @Duncan-Pullen !

            The main reason is: I'm waiting for suggestions / approval from the OH2 developers. :)

            The MySensors binding has grown big and a review takes some time.

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

              @TimO, thank you for all the effort you've put into this!

              1 Reply Last reply
              1
              • FusedHe3F Offline
                FusedHe3F Offline
                FusedHe3
                wrote on last edited by FusedHe3
                #355

                Hi everyone,
                @TimO, thanks for everything you did here!

                I just made the 2.0 version (code in comments of respective post) of petewill's Simple Scene Controller and discovered that a Scene Controller is not yet implemented in the OpenHAB binding. Is there a possibility that it will be implemented in the future?
                For now, is it possible to get this working with CustomSensor or Text?

                T 1 Reply Last reply
                0
                • FusedHe3F FusedHe3

                  Hi everyone,
                  @TimO, thanks for everything you did here!

                  I just made the 2.0 version (code in comments of respective post) of petewill's Simple Scene Controller and discovered that a Scene Controller is not yet implemented in the OpenHAB binding. Is there a possibility that it will be implemented in the future?
                  For now, is it possible to get this working with CustomSensor or Text?

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

                  Hi @FusedHe3 !

                  My first thought was: that's easy, lets add this! But after a second thought ...

                  I see one problem with S_SCENE_CONTROLLER: how do I map this in OpenHAB?

                  In MySensors there is V_SCENE_ON and V_SCENE_OFF. The message contains the corresponding scene number.

                  In OpenHAB I've: Number, Switch, Selection ...

                  0_1484735515591_upload-dac7eae9-cec0-4cbd-95ec-a0428268441c

                  In OpenHAB I may choose between Scene A, Scene B and so on, but I can't select between ON and OFF. Is Scene A switched off, when I select Scene B?

                  I'm using scenes with a switch in OpenHAB. Something like "Christmas decoration ON". In OpenHAB I'm using a group for that gChristmasDecoration or a rule: switch light on, shutter to 33%, ..

                  My approach in implementing a (hardware) scene controller would be a mapping of those switches. So I would define a switch / child for every button (scene) on the controller.

                  I'm open for ideas on how to map V_SCENE_CONTROLLER in OpenHAB, so if you or someone else have and idea, shout it out. :D

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

                    Ah, by the way, I forgot to mention: SmartSleep is supported since last week.

                    0_1484736645455_upload-d9d8432b-4892-4c07-876a-3abd4def86a0

                    1 Reply Last reply
                    1
                    • T TimO

                      Hi @FusedHe3 !

                      My first thought was: that's easy, lets add this! But after a second thought ...

                      I see one problem with S_SCENE_CONTROLLER: how do I map this in OpenHAB?

                      In MySensors there is V_SCENE_ON and V_SCENE_OFF. The message contains the corresponding scene number.

                      In OpenHAB I've: Number, Switch, Selection ...

                      0_1484735515591_upload-dac7eae9-cec0-4cbd-95ec-a0428268441c

                      In OpenHAB I may choose between Scene A, Scene B and so on, but I can't select between ON and OFF. Is Scene A switched off, when I select Scene B?

                      I'm using scenes with a switch in OpenHAB. Something like "Christmas decoration ON". In OpenHAB I'm using a group for that gChristmasDecoration or a rule: switch light on, shutter to 33%, ..

                      My approach in implementing a (hardware) scene controller would be a mapping of those switches. So I would define a switch / child for every button (scene) on the controller.

                      I'm open for ideas on how to map V_SCENE_CONTROLLER in OpenHAB, so if you or someone else have and idea, shout it out. :D

                      FusedHe3F Offline
                      FusedHe3F Offline
                      FusedHe3
                      wrote on last edited by
                      #358

                      @TimO Thanks for the quick reply!
                      I do think the ON/OFF switch for every scene would be the most logical solution. In that way it's fully compatibel with the MySensors Scene Controller and you can have multiple scenes active at the same time.

                      1 Reply Last reply
                      0
                      • AndrewZA Offline
                        AndrewZA Offline
                        AndrewZ
                        wrote on last edited by
                        #359

                        Just updated my OH2 installation from snapshot to RC/beta and immediately got an error with the binding:

                        [ERROR] [rs.internal.protocol.MySensorsReader] - (java.lang.NumberFormatException: For input string: "Gateway startup complete.") on reading from connection, message: class org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialReader
                        

                        But then the usual:

                        [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.
                        [WARN ] [col.serial.MySensorsSerialConnection] - Network Sanity Checker thread disabled from bridge configuration
                        

                        What could be a problem? Do I need to perform some cleanup on my system? What exactly needs to be deleted?

                        1 Reply Last reply
                        0
                        • T TimO

                          Hey @Nicklas-Starkel !
                          I hope it will work out for you! :-)

                          It is not yet part of OH2 and downloadable within OH2 because my pull request is still open. A OH2 developer needs to look at it. :-)

                          K Offline
                          K Offline
                          krejcarek
                          wrote on last edited by
                          #360

                          I ran into trouble today by apt-get updating Openhab.

                          I am over redefining the Distro for Snapshot... I have 2.0.0-SNAPSHOT, Build #743 up and running.

                          my bundle list looks following:
                          204 | Active | 80 | 3.12.0.OH | nrjavaserial
                          205 | Installed | 80 | 2.0.0.201611221149 | MySensors Binding

                          Still getting these errors:
                          "03:17:10.911 [ERROR] [org.openhab.binding.mysensors ] - FrameworkEvent ERROR - org.openhab.binding.mysensors
                          org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [205]
                          Unresolved requirement: Require-Bundle: org.openhab.io.transport.serial"

                          Any idea for next step?

                          T 1 Reply Last reply
                          0
                          • K krejcarek

                            I ran into trouble today by apt-get updating Openhab.

                            I am over redefining the Distro for Snapshot... I have 2.0.0-SNAPSHOT, Build #743 up and running.

                            my bundle list looks following:
                            204 | Active | 80 | 3.12.0.OH | nrjavaserial
                            205 | Installed | 80 | 2.0.0.201611221149 | MySensors Binding

                            Still getting these errors:
                            "03:17:10.911 [ERROR] [org.openhab.binding.mysensors ] - FrameworkEvent ERROR - org.openhab.binding.mysensors
                            org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [205]
                            Unresolved requirement: Require-Bundle: org.openhab.io.transport.serial"

                            Any idea for next step?

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

                            @krejcarek please upgrade the binding to the most recent version. :-)

                            AndrewZA K 2 Replies Last reply
                            1
                            • T TimO

                              @krejcarek please upgrade the binding to the most recent version. :-)

                              AndrewZA Offline
                              AndrewZA Offline
                              AndrewZ
                              wrote on last edited by
                              #362

                              @TimO what about my error? I'm on the latest version already.

                              T 1 Reply Last reply
                              0
                              • AndrewZA AndrewZ

                                @TimO what about my error? I'm on the latest version already.

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

                                @AndrewZ Sorry! Is it working despite the error? I need to test with RC1 myself. The error looks like it could be ignored. From time to time messages get corrupted, due to connection issues and the parser stumbles about that. But it should continue to work just fine. I suppose this is the case here, but I'll check!

                                AndrewZA 1 Reply Last reply
                                0
                                • T TimO

                                  @AndrewZ Sorry! Is it working despite the error? I need to test with RC1 myself. The error looks like it could be ignored. From time to time messages get corrupted, due to connection issues and the parser stumbles about that. But it should continue to work just fine. I suppose this is the case here, but I'll check!

                                  AndrewZA Offline
                                  AndrewZA Offline
                                  AndrewZ
                                  wrote on last edited by
                                  #364

                                  @TimO yes, it is working, but please check this one and 2nd (Network Sanity Checker thread disabled). Thank you!

                                  1 Reply Last reply
                                  0
                                  • jogantJ Offline
                                    jogantJ Offline
                                    jogant
                                    wrote on last edited by
                                    #365

                                    I had the same error messages on first boot of OH. After finishing upgrade procedure and restarting OH once again error message is gone. New version of the binding is working well. No hickups at the moment.

                                    1 Reply Last reply
                                    0
                                    • ben999B Offline
                                      ben999B Offline
                                      ben999
                                      wrote on last edited by ben999
                                      #366

                                      Hi Guys
                                      I am currently playing with a fairly fresh install of openhab2 (last weekend)
                                      I have played with the auto-discovery function in PaperUI
                                      Wow that's amazing :)
                                      But i am having trouble when it comes to sitemap file : sitemap function is not included within PaperUI (as far as i know) and i need this file to configure properly my iOS app
                                      So i have to go back to the old fashionned way and edit thing, item and map files with a text editor (which is fine)

                                      Two questions from here:

                                      • please prove me wrong in the way that i can discover things and configure items within paperUI and still create a valid sitemap file usable by my iOS devices
                                      • if above not possible, is there a way to "flush" openhab things and items database as i am getting warnings about things that don't exist anymore (things previously discovered by paperUI but deleted since)
                                        Thanks a lot for reading
                                      T 1 Reply Last reply
                                      0
                                      • H Offline
                                        H Offline
                                        hillmanr
                                        wrote on last edited by
                                        #367

                                        I must be missing something. I have the same error as well. Is there a link to the latest binding. The one on the instructions page is dated 20161122 and a second one refereed to in this topic above dated 20161222. Which binding should I be using

                                        T 1 Reply Last reply
                                        0
                                        • T TimO

                                          @krejcarek please upgrade the binding to the most recent version. :-)

                                          K Offline
                                          K Offline
                                          krejcarek
                                          wrote on last edited by
                                          #368

                                          @TimO, Thanks for the quick response. Probably was some stupid mistake with copying.jar file. Got mine now on 2.0.0.201701181308, and works like charm.
                                          Hoping to have mysensors soon as official binding to avoid the need of workarounds and thus prone to mistakes.

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


                                          21

                                          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