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.
  • M Offline
    M Offline
    matt shepherd
    wrote on last edited by
    #521

    Have you tried using Mqtt? I've recently set up a motion sensor with a mqtt gateway and it seems to be more reliable. The motion just sends a 1 for motion or 0 for no motion (obvs). I have a rule that says turn lights on if motion state =1 .You don't have to worry about connecting 'things' with openhab as you use the mqtt binding.

    S 1 Reply Last reply
    0
    • M matt shepherd

      Have you tried using Mqtt? I've recently set up a motion sensor with a mqtt gateway and it seems to be more reliable. The motion just sends a 1 for motion or 0 for no motion (obvs). I have a rule that says turn lights on if motion state =1 .You don't have to worry about connecting 'things' with openhab as you use the mqtt binding.

      S Offline
      S Offline
      stolly82
      wrote on last edited by
      #522

      @matt-shepherd
      for now not.
      The problem is more, that openhab 2 accepts only one device per Node with the 2.0 binding. It doesn´t matter if it it a motion sensor or if it is a second relay.

      Alway´s if I setup a second thing with a existing ChildID,... the first Thing is not working anymore (LOG = Child x not present in Node x ).

      I tried to install on a second Raspberry with OpenHab2 and MySensors2.0 binding (Openhabian) and there is the same issue.

      That´s really really strange.

      1 Reply Last reply
      0
      • mickM Offline
        mickM Offline
        mick
        wrote on last edited by
        #523

        I would like to attempt the irrigation controller with this binding, I believe the "light" thing is used. This only has channels: Status, Battery, LastUpdate. Is it possible to add more channels to the light thing ?, ie: V_VAR1 ... V_VAR3, regards.

        andreacioniA 1 Reply Last reply
        0
        • mickM mick

          I would like to attempt the irrigation controller with this binding, I believe the "light" thing is used. This only has channels: Status, Battery, LastUpdate. Is it possible to add more channels to the light thing ?, ie: V_VAR1 ... V_VAR3, regards.

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

          @mick you aren't the first asking that :sweat_smile: . I opened a new issue on GitHub (https://github.com/tobof/openhab2-addons/issues/95) to discuss about adding it to the binding.

          mickM 1 Reply Last reply
          0
          • andreacioniA andreacioni

            @mick you aren't the first asking that :sweat_smile: . I opened a new issue on GitHub (https://github.com/tobof/openhab2-addons/issues/95) to discuss about adding it to the binding.

            mickM Offline
            mickM Offline
            mick
            wrote on last edited by
            #525

            Cheers @andreacioni - fingers crossed :+1:

            1 Reply Last reply
            0
            • T TimO

              Features

              • Serial Gateway supported (with variable baud rate)
              • Ethernet Gateway supported
              • Supported sensors: S_TEMP, S_HUM, S_VOLTAGE, S_LIGHT, S_POWER, S_BARO, S_DOOR, S_MOTION, S_SMOKE, S_DIMMER, S_COVER (Stop not implemented in OH2 yet), S_WIND, S_RAIN, S_UV, S_WEIGHT, S_DISTANCE, S_LIGHT_LEVEL
              • Request for an ID is answered (random free number is given)
              • Discovery of devices, to use it: start the scan for devices in OpenHAB 2.0 and restart your nodes

              Pictures
              Discovery:
              openhab2-mysensors-discovery-2015-07-27.png

              What is not working yet:

              • no reconnect after lost connection

              How to test:

              Visit the wiki on the GitHub Repo.

              D Offline
              D Offline
              doctor64
              wrote on last edited by
              #526

              @TimO just updated to version 2.2.0.201708090807 of binding and get exception in network check

              22:41:33.015 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
              22:41:33.029 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;2;2.1.1
              22:41:36.015 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Network sanity check: PASSED
              22:41:36.015 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Sending I_HEARTBEAT_REQUESTs
              22:41:36.016 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;255;3;0;18;
              22:41:36.032 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;22;436674305
              22:41:36.116 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 1;255;3;0;18;
              22:41:36.217 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 2;255;3;0;18;
              22:41:36.317 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 3;255;3;0;18;
              22:41:36.398 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;255;3;0;22;717683
              22:41:36.418 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 4;255;3;0;18;
              22:41:36.518 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 5;255;3;0;18;
              22:41:36.619 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 6;255;3;0;18;
              22:41:36.652 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 5;255;3;0;22;9428217
              22:41:36.683 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 6;255;3;0;22;3111897
              22:41:39.016 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Node 1 request heartbreat answer, missing null of 10
              22:41:39.016 [ERROR] [ateway.MySensorsNetworkSanityChecker] - Exception in network sanity thread checker
              java.lang.NullPointerException
              	at org.openhab.binding.mysensors.internal.gateway.MySensorsNetworkSanityChecker.checkHeartbeatsResponse(MySensorsNetworkSanityChecker.java:178)[195:org.openhab.binding.mysensors:2.2.0.201708090807]
              	at org.openhab.binding.mysensors.internal.gateway.MySensorsNetworkSanityChecker.run(MySensorsNetworkSanityChecker.java:122)[195:org.openhab.binding.mysensors:2.2.0.201708090807]
              	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_144]
              	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_144]
              	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_144]
              	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_144]
              	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_144]
              	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_144]
              	at java.lang.Thread.run(Thread.java:748)[:1.8.0_144]
              
              
              andreacioniA 1 Reply Last reply
              0
              • D doctor64

                @TimO just updated to version 2.2.0.201708090807 of binding and get exception in network check

                22:41:33.015 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
                22:41:33.029 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;2;2.1.1
                22:41:36.015 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Network sanity check: PASSED
                22:41:36.015 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Sending I_HEARTBEAT_REQUESTs
                22:41:36.016 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;255;3;0;18;
                22:41:36.032 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;22;436674305
                22:41:36.116 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 1;255;3;0;18;
                22:41:36.217 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 2;255;3;0;18;
                22:41:36.317 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 3;255;3;0;18;
                22:41:36.398 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;255;3;0;22;717683
                22:41:36.418 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 4;255;3;0;18;
                22:41:36.518 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 5;255;3;0;18;
                22:41:36.619 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 6;255;3;0;18;
                22:41:36.652 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 5;255;3;0;22;9428217
                22:41:36.683 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 6;255;3;0;22;3111897
                22:41:39.016 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Node 1 request heartbreat answer, missing null of 10
                22:41:39.016 [ERROR] [ateway.MySensorsNetworkSanityChecker] - Exception in network sanity thread checker
                java.lang.NullPointerException
                	at org.openhab.binding.mysensors.internal.gateway.MySensorsNetworkSanityChecker.checkHeartbeatsResponse(MySensorsNetworkSanityChecker.java:178)[195:org.openhab.binding.mysensors:2.2.0.201708090807]
                	at org.openhab.binding.mysensors.internal.gateway.MySensorsNetworkSanityChecker.run(MySensorsNetworkSanityChecker.java:122)[195:org.openhab.binding.mysensors:2.2.0.201708090807]
                	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_144]
                	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_144]
                	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_144]
                	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_144]
                	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_144]
                	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_144]
                	at java.lang.Thread.run(Thread.java:748)[:1.8.0_144]
                
                
                andreacioniA Offline
                andreacioniA Offline
                andreacioni
                wrote on last edited by
                #527

                Hi @doctor64, could you please post your things configuration file?

                D 1 Reply Last reply
                0
                • andreacioniA andreacioni

                  Hi @doctor64, could you please post your things configuration file?

                  D Offline
                  D Offline
                  doctor64
                  wrote on last edited by
                  #528

                  @andreacioni All mySensors item defined using auto-discovery, so no things file in configuration. I'm think you mean this file? 0_1506175698221_org.eclipse.smarthome.core.thing.Thing.json

                  andreacioniA 1 Reply Last reply
                  0
                  • D doctor64

                    @andreacioni All mySensors item defined using auto-discovery, so no things file in configuration. I'm think you mean this file? 0_1506175698221_org.eclipse.smarthome.core.thing.Thing.json

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

                    @doctor64 it is enough, I can replicate it. Thanks for reporting this issue :smile: . You can keep track of it here: https://github.com/tobof/openhab2-addons/issues/97

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

                      Today brand new setup with fail results.

                      I have installed a brand new OH2 snapshot build #1047 and the latest relese of the binding available.

                      I am using just a single node as ethernet gateway. After a couple of minutes the binding stops sending the messages to the node. It logs as it would send them but nothing is really sent out. I have sniffed the connection with wireshark.

                      Sometimes, while looking the binding debug logs at OH2 console, it hangs and I have to restablish the connection. This last issue seems more related to OH2 itself but maybe something wrong in the binding is causing it. Again, the is not a single clue in the logs about this.

                      I have just installed the OH2.1 stable release with the latest release of the binding and everything runs great yet.

                      Anyone with a similar experience?

                      AndrewZA 1 Reply Last reply
                      0
                      • G gonzalonal

                        Today brand new setup with fail results.

                        I have installed a brand new OH2 snapshot build #1047 and the latest relese of the binding available.

                        I am using just a single node as ethernet gateway. After a couple of minutes the binding stops sending the messages to the node. It logs as it would send them but nothing is really sent out. I have sniffed the connection with wireshark.

                        Sometimes, while looking the binding debug logs at OH2 console, it hangs and I have to restablish the connection. This last issue seems more related to OH2 itself but maybe something wrong in the binding is causing it. Again, the is not a single clue in the logs about this.

                        I have just installed the OH2.1 stable release with the latest release of the binding and everything runs great yet.

                        Anyone with a similar experience?

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

                        @gonzalonal I've observed something similar on my system, as I recall the binding wasn't even able to establish the initial connection to a gateway. Have OH upgraded today from an earlier build (~3 weeks old).

                        1 Reply Last reply
                        0
                        • jocke4uJ Offline
                          jocke4uJ Offline
                          jocke4u
                          wrote on last edited by
                          #532
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            Skorpilein
                            wrote on last edited by
                            #533

                            Is it possible to implement RS485 Gateway? Or it works with Serial Gateway?

                            1 Reply Last reply
                            0
                            • ร Offline
                              ร Offline
                              รอเรือ
                              wrote on last edited by รอเรือ
                              #534

                              I get this in my log sometimes:

                              [WARN ] [.discovery.MySensorsDiscoveryService] - Cannot automatic discover thing node: 0, child: 255 please insert it manually
                              

                              I use MySensors Binding 2.3.0.201801160936 on a serial gateway with mysensors 2.2.0

                              Where shall I insert the thing node and what should it look like?

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


                              3

                              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