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.2 binding

openHAB 2.2 binding

Scheduled Pinned Locked Moved OpenHAB
132 Posts 32 Posters 58.2k Views 34 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.
  • T TimO

    @LastSamurai Upgrade the binding. You're using the current beta of MySensors and the request for I'd has changed.

    L Offline
    L Offline
    LastSamurai
    Hardware Contributor
    wrote on last edited by
    #64

    @TimO Ahh thank you! I am using version 2.2 linked in the first post of this thread though. Where do I get a newer version? Maybe I overlooked it but I am not seeing any newer releases.

    T 1 Reply Last reply
    0
    • L LastSamurai

      @TimO Ahh thank you! I am using version 2.2 linked in the first post of this thread though. Where do I get a newer version? Maybe I overlooked it but I am not seeing any newer releases.

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

      @LastSamurai just replace the jar from the link above. I'm doing small changes from time to time.

      L 1 Reply Last reply
      0
      • T TimO

        @LastSamurai just replace the jar from the link above. I'm doing small changes from time to time.

        L Offline
        L Offline
        LastSamurai
        Hardware Contributor
        wrote on last edited by
        #66

        @TimO Thank you again for the help. Everything is now back up and running :+1: With the new jar my node could finally get a new id and after also enabling signing again everything worked as expected.
        Can I see anywhere that you updated the jar file? I am using the current beta of mysensors mostly so I would also need to use an updated version of the openhab plugin.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Nicklas Starkel
          wrote on last edited by
          #67

          @TimO , is this binding supported via mysensors MQTT gateway?
          In previous bending inormation you had some text indicating that you would implement it. But all that is gone.
          So I'm thinking you either implemented it, or aborted that feature :)

          T 1 Reply Last reply
          0
          • N Nicklas Starkel

            @TimO , is this binding supported via mysensors MQTT gateway?
            In previous bending inormation you had some text indicating that you would implement it. But all that is gone.
            So I'm thinking you either implemented it, or aborted that feature :)

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

            @Nicklas-Starkel It happens, that MQTT support is sadly still on the to do list. There were some changes in the Smarthome MQTT library and we need to adopt them now.

            Here's the Issue: https://github.com/tobof/openhab2-addons/issues/98

            N 1 Reply Last reply
            0
            • T TimO

              @Nicklas-Starkel It happens, that MQTT support is sadly still on the to do list. There were some changes in the Smarthome MQTT library and we need to adopt them now.

              Here's the Issue: https://github.com/tobof/openhab2-addons/issues/98

              N Offline
              N Offline
              Nicklas Starkel
              wrote on last edited by
              #69

              @TimO, cool that you are stil on it, even if it's on the "todo-list".
              Kudos and keep up the great work :)

              1 Reply Last reply
              0
              • gahlawathomeG Offline
                gahlawathomeG Offline
                gahlawathome
                wrote on last edited by
                #70

                @TimO

                Can we use this binding for MQTT once the PR is available in OpenHAB?
                It is a separate mqtt generic binding in ESH for things discovery but I cannot make out if this will solve the dependency issue or not.
                https://github.com/eclipse/smarthome/pull/3876

                T 1 Reply Last reply
                0
                • L Offline
                  L Offline
                  LastSamurai
                  Hardware Contributor
                  wrote on last edited by
                  #71

                  @TimO My sketches are sending the nodes remaining battery power to the controller via a V_VOLTAGE. Openhab 2 with your binding doesn't seem to be able to read these values. Is this an error (possibly on my side) or does the not yet support this?

                  T 1 Reply Last reply
                  0
                  • L LastSamurai

                    @TimO My sketches are sending the nodes remaining battery power to the controller via a V_VOLTAGE. Openhab 2 with your binding doesn't seem to be able to read these values. Is this an error (possibly on my side) or does the not yet support this?

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

                    @LastSamurai Did you connect a channel / item for V_VOLTAGE? If the sensor is not represented by the sketch you need to connect it manually.

                    L 1 Reply Last reply
                    0
                    • gahlawathomeG gahlawathome

                      @TimO

                      Can we use this binding for MQTT once the PR is available in OpenHAB?
                      It is a separate mqtt generic binding in ESH for things discovery but I cannot make out if this will solve the dependency issue or not.
                      https://github.com/eclipse/smarthome/pull/3876

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

                      @gahlawathome I'm currently looking into the new MQTT implementation in smartphone. It should work without the PR above. The PR will bring us a new option to connect a MQTT binding with OpenHAB!

                      1 Reply Last reply
                      1
                      • T TimO

                        @LastSamurai Did you connect a channel / item for V_VOLTAGE? If the sensor is not represented by the sketch you need to connect it manually.

                        L Offline
                        L Offline
                        LastSamurai
                        Hardware Contributor
                        wrote on last edited by LastSamurai
                        #74

                        @TimO I am not sure what you mean.
                        My sketch sends a presentation:

                         present(CHILD_ID_BATTERY, S_MULTIMETER);
                        

                        and in openhab I added these (tried both sensor kinds)

                        // things
                        customSensor abc [nodeId=26, childId=1]
                        multimeter def [nodeId=17, childId=1]
                        // and items
                        Number 	voltageSensorWZ ... { channel="mysensors:multimeter:gwSerial:def:volt" }
                        //...
                        

                        Is there anything i am missing here?

                        T 1 Reply Last reply
                        0
                        • L LastSamurai

                          @TimO I am not sure what you mean.
                          My sketch sends a presentation:

                           present(CHILD_ID_BATTERY, S_MULTIMETER);
                          

                          and in openhab I added these (tried both sensor kinds)

                          // things
                          customSensor abc [nodeId=26, childId=1]
                          multimeter def [nodeId=17, childId=1]
                          // and items
                          Number 	voltageSensorWZ ... { channel="mysensors:multimeter:gwSerial:def:volt" }
                          //...
                          

                          Is there anything i am missing here?

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

                          @LastSamurai

                          The channel is not correct:

                          channel="mysensors:multimeter:gwSerial:voltageSensorWZ:volt"
                          

                          It's confusing, but that's the way OpenHAB2 handles channels. :confused:

                          L 1 Reply Last reply
                          0
                          • T TimO

                            @LastSamurai

                            The channel is not correct:

                            channel="mysensors:multimeter:gwSerial:voltageSensorWZ:volt"
                            

                            It's confusing, but that's the way OpenHAB2 handles channels. :confused:

                            L Offline
                            L Offline
                            LastSamurai
                            Hardware Contributor
                            wrote on last edited by LastSamurai
                            #76

                            @TimO Thanks for your help though I am afraid you mixed something up there. The channel linking to the item itself doesn't really make sense ;)
                            Not 100% sure why it did not work earlier for me but I now got it to work like this:

                            // thing
                            multimeter		voltTHWohnzimmer	[nodeId=1, childId=2]
                            // item
                            Number 	voltageSensorWZ 		"Spannung [%3f mV]" 		<poweroutlet_eu> 	(grVolt, grWZ)	{ channel="mysensors:multimeter:gwSerial:voltTHWohnzimmer:volt" }
                            

                            My error in the code above seems to have been that I defined most as customSensor instead of multimeter.

                            1 Reply Last reply
                            0
                            • gerritvG Offline
                              gerritvG Offline
                              gerritv
                              wrote on last edited by
                              #77

                              @TimO said in openHAB 2.2 binding:

                              @LastSamurai

                              The channel is not correct:

                              channel="mysensors:multimeter:gwSerial:voltageSensorWZ:volt"
                              

                              It's confusing, but that's the way OpenHAB2 handles channels. :confused:

                              Is the pattern:
                              <binding name>:<mysensors type>:<gateway id>:<thing name>:<data name> ?

                              1 Reply Last reply
                              0
                              • gerritvG Offline
                                gerritvG Offline
                                gerritv
                                wrote on last edited by gerritv
                                #78

                                Just to let you know that I am very happy with this binding.
                                One thing for others to be aware of:
                                If you use PaperUI for configuring etc, make sure you leave Simple Mode off if you expect to use Groups later on. Simple mode adds the items (including the VAR1-5 :-() automatically but they are not 'managed'. This means you will get 404 and 405 errors on trying to edit them later on.
                                My solution was to let the binding autodiscover and add the Things. Then add 1 Item manually so that the \\192.168.0.123\openHAB-share\openhab2-userdata\jsondb\org.eclipse.smarthome.core.items.Item.json
                                file gets created and filled with an example to clone. I then added the various sensors using Name of pattern <binding name><sensorname><nodeid>_<dataname>, e.g. "mysensors_light_level_node4_last_update": { "class": "org.eclipse.smarthome.core.items.ManagedItemProvider$PersistedItem", "value": { "groupNames": [ "gLastUpdated" ], "itemType": "DateTime", "tags": [], "label": "Last", "category": "calendar" } },

                                You must stop Openhab before editing the file (else you will lose your edits) but once it starts up again you will see the Items listed in PaperUI (and VSCode if you use that). You can then add the Channel/Item links for each Thing.

                                1 Reply Last reply
                                0
                                • F Offline
                                  F Offline
                                  fredswed
                                  wrote on last edited by
                                  #79

                                  Thanks for some great work @TimO ! Version 2.2 now works smoothly with my simple OpenHAB setup (2.2 snapshot).

                                  One thing I noticed is that the gateway thing configuration page says "Disable network sanity check" even though the logic has been reversed in v2.2.
                                  So the UI needs to be similarly changed to "Enable startup check" instead.

                                  While I'm at it, could you please also clarify (in the UI) what "Send delay" is? Please also add that timing is in ms. If I understand things correctly it could say "Minimum time between messages sent to the gateway (ms)"

                                  Also, the comment for "Imperial/Metric selection" could use some clarification. Preferably change the label to "Imperial units" and the explanation to "Use imperial units (default is metric)."

                                  And finally it would be great to add add that the time is given in "...(minutes)" for the Network sanity check interval.

                                  1 Reply Last reply
                                  0
                                  • L Offline
                                    L Offline
                                    LastSamurai
                                    Hardware Contributor
                                    wrote on last edited by
                                    #80

                                    I have just updated to the stable openHAB 2.2 Version and everything seemed to be working just fine in the beginning but after the next restart I got this error:

                                    10:31:19.727 [WARN ] [fig.xml.osgi.XmlDocumentBundleTracker] - The XML document '/ESH-INF/binding/binding.xml' in module 'org.openhab.binding.mysensors' could not be parsed: The XmlConfigDescriptionProvider must not be null!
                                    

                                    It seems like I can still control my devices just fine but I just wanted to make sure that this doesn't cause errors down the line. So @TimO any idea where this error is coming from?

                                    1 Reply Last reply
                                    0
                                    • mythbaiM Offline
                                      mythbaiM Offline
                                      mythbai
                                      wrote on last edited by
                                      #81

                                      After upgrade OH to 2.2 stable release. (2.2_01). I'm having the same issue that zwave binding not working. After Mysensors binding is installed and gateway configured. There is only one serial port visiable in PaperUI, which is /dev/ttyUSB0 that is configured for the serial gateway. I'm using org.openhab.binding.mysensors-2.2.0-SNAPSHOT-serial-fix.jar.

                                      Also the old 2.1 snapshot version doesn't work either. anyone else experience this issue?

                                      mythbaiM 1 Reply Last reply
                                      0
                                      • jocke4uJ Offline
                                        jocke4uJ Offline
                                        jocke4u
                                        wrote on last edited by
                                        #82

                                        Hi,

                                        I have issues with MySensors and specifically Energy Sensors where they request latest value.
                                        See this thread for details: https://forum.mysensors.org/topic/8833/power-sensors-stopped-working

                                        Any idea how to solve it?

                                        1 Reply Last reply
                                        0
                                        • L Offline
                                          L Offline
                                          lesockz
                                          wrote on last edited by
                                          #83

                                          Hello,

                                          iam using "openHAB 2.2.0-1 (Release Build)" as openhabian on a PI3.

                                          i've installed "org.openhab.binding.mysensors-2.2.0-SNAPSHOT.jar" as explained in the instructions.

                                          configured the thing "MySensors Serial Gateway" to use "/dev/ttyACM0" with Baudrate "38400" because i'm using a pro micro with 8Mhz which isn't capable of 115200 (as far as i know).

                                          the Items got discovered fine.

                                          Atm i have only one item with

                                          #define CHILD_ID_TEMP 0
                                          unsigned long SLEEP_TIME = 3 * 1000; // Sleep time between reads (in milliseconds)
                                          
                                          MyMessage tempMsg(CHILD_ID_TEMP, S_TEMP);
                                          

                                          Presentation:

                                          void presentation()
                                          {
                                            // Send the sketch version information to the gateway and Controller
                                            sendSketchInfo("Temp/Hum/Pre Sensor", "1.2");
                                          
                                            // Register all sensors to gateway (they will be created as child devices)
                                            present(CHILD_ID_TEMP, S_TEMP);
                                          }
                                          

                                          and Loop:

                                            unsigned long currentTime = millis();
                                            temperature++;//bme.readTemperature();
                                          
                                          
                                              lastSend = currentTime;
                                              send(tempMsg.set(temperature, 2));
                                              lastTemp = temperature;
                                          
                                          
                                            sleep(SLEEP_TIME);
                                          

                                          This is my debug from "openhab-cli showlogs"

                                          2018-01-07 13:59:17.676 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;6;109.00
                                          2018-01-07 13:59:17.680 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 1 found in gateway
                                          2018-01-07 13:59:17.683 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 1
                                          2018-01-07 13:59:17.687 [WARN ] [rs.internal.gateway.MySensorsGateway] - Variable V_RAIN not present
                                          

                                          And this from Log Viewer

                                          2018-01-07 14:00:18.836 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 1 found in gateway
                                          2018-01-07 14:00:18.841 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 1
                                          2018-01-07 14:00:18.846 [WARN ] [rs.internal.gateway.MySensorsGateway] - Variable V_RAIN not present
                                          2018-01-07 14:00:27.561 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;9;TSF:MSG:READ,1-1-0,s=0,c=1,t=6,pt=7,l=5,sg=0:117.00
                                          2018-01-07 14:00:27.566 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;6;117.00
                                          2018-01-07 14:00:27.572 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 1 found in gateway
                                          2018-01-07 14:00:27.577 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 1
                                          2018-01-07 14:00:27.582 [WARN ] [rs.internal.gateway.MySensorsGateway] - Variable V_RAIN not present
                                          2018-01-07 14:00:36.301 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;9;TSF:MSG:READ,1-1-0,s=0,c=1,t=6,pt=7,l=5,sg=0:118.00
                                          2018-01-07 14:00:36.308 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;6;118.00
                                          2018-01-07 14:00:36.311 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 1 found in gateway
                                          2018-01-07 14:00:36.315 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 1
                                          2018-01-07 14:00:36.318 [WARN ] [rs.internal.gateway.MySensorsGateway] - Variable V_RAIN not present
                                          2018-01-07 14:00:45.034 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;9;TSF:MSG:READ,1-1-0,s=0,c=1,t=6,pt=7,l=5,sg=0:119.00
                                          2018-01-07 14:00:45.037 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;6;119.00
                                          2018-01-07 14:00:45.039 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 1 found in gateway
                                          2018-01-07 14:00:45.042 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 1
                                          2018-01-07 14:00:45.045 [WARN ] [rs.internal.gateway.MySensorsGateway] - Variable V_RAIN not present
                                          

                                          So from log i can see Temp is counting up. but in "Paper Ui"

                                          i always get "Temperature -NaN °C" or "Temperature 0 °C"

                                          Please correct me if this is the wrong place for this question.

                                          Greets Andi

                                          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