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.3 and MQTT

OpenHAB 2.3 and MQTT

Scheduled Pinned Locked Moved OpenHAB
7 Posts 4 Posters 2.5k Views 4 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
    martim
    wrote on last edited by martim
    #1

    Hi All,

    I am very new to openHAB and I have a lot of problems installing/configuring openHAB 2.3 so that mysensors are working. Does anyone have a guidline how to install this?

    It seems that MQTT connect well but I got an error which I do not understand. I am already busy with it for days but I do not get it working. Unfortunatly I am not able to find openHAB 2.2 img so that I can install this on my PI.

    Anyone willing to help me?

    Error:

    2018-12-07 20:23:01.046 [hingStatusInfoChangedEvent] - 'mysensors:bridge-mqtt:gateway' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR): org/eclipse/smarthome/io/transport/mqtt/MqttActionCallback
    
    ==> /var/log/openhab2/openhab.log <==
    
    2018-12-07 20:23:01.025 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occurred while initializing handler of thing 'mysensors:bridge-mqtt:gateway': org/eclipse/smarthome/io/transport/mqtt/MqttActionCallback
    
    java.lang.NoClassDefFoundError: org/eclipse/smarthome/io/transport/mqtt/MqttActionCallback```
    T 1 Reply Last reply
    0
    • M martim

      Hi All,

      I am very new to openHAB and I have a lot of problems installing/configuring openHAB 2.3 so that mysensors are working. Does anyone have a guidline how to install this?

      It seems that MQTT connect well but I got an error which I do not understand. I am already busy with it for days but I do not get it working. Unfortunatly I am not able to find openHAB 2.2 img so that I can install this on my PI.

      Anyone willing to help me?

      Error:

      2018-12-07 20:23:01.046 [hingStatusInfoChangedEvent] - 'mysensors:bridge-mqtt:gateway' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR): org/eclipse/smarthome/io/transport/mqtt/MqttActionCallback
      
      ==> /var/log/openhab2/openhab.log <==
      
      2018-12-07 20:23:01.025 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occurred while initializing handler of thing 'mysensors:bridge-mqtt:gateway': org/eclipse/smarthome/io/transport/mqtt/MqttActionCallback
      
      java.lang.NoClassDefFoundError: org/eclipse/smarthome/io/transport/mqtt/MqttActionCallback```
      T Offline
      T Offline
      TheoL
      Contest Winner
      wrote on last edited by
      #2

      @martim I'm sorry myFriend. I've tried OpenHaB a couple of years ago. But in those days I couldn't get it to work. To complicated for me. That's why I've switched to Domoticz. That does what I need. You could give that - or another controller - a try. OpenHAB is overly complicated if you ask me.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Guillermo Schimmel
        wrote on last edited by
        #3

        I'm using mysensors with openhab and mqtt and works great.

        Check your config files!

        Let's take a look at your mqtt.cfg.

        Which broker are you using? I'm on mosquitto.

        M 1 Reply Last reply
        0
        • G Guillermo Schimmel

          I'm using mysensors with openhab and mqtt and works great.

          Check your config files!

          Let's take a look at your mqtt.cfg.

          Which broker are you using? I'm on mosquitto.

          M Offline
          M Offline
          martim
          wrote on last edited by
          #4

          @guillermo-schimmel

          Could you check here? I am really getting frustrated by the OpenHAB :)

          https://forum.mysensors.org/post/95623

          G 1 Reply Last reply
          0
          • M martim

            @guillermo-schimmel

            Could you check here? I am really getting frustrated by the OpenHAB :)

            https://forum.mysensors.org/post/95623

            G Offline
            G Offline
            Guillermo Schimmel
            wrote on last edited by
            #5

            @martim I would recommend you to use plain mqtt.

            Don't use the binding or the bridge stuff. Once you have the mysensors-mqtt, use plain mqtt items on your openhab config and it will work great.

            I already have several sensors this way.

            Perhaps after openhab 2.4 I will play a little with the binding and then I could be more useful to you.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Guillermo Schimmel
              wrote on last edited by Guillermo Schimmel
              #6

              Just for you to know, I just updated to 2.4 and can confirm that with the new mqtt binding I can connect with mysensors.

              You have to create the MQTT Broker think via the web ui and then each thing, finally you have to modify your items, like this:

              //Contact GaragePorton "Portón Garage [%s]" <garagedoor> { mqtt="<[mosquitto:mygateway1-out/11/3/1/0/16:state:default]" }
              //Contact GaragePuerta "Puerta Garage [%s]" <door>       { mqtt="<[mosquitto:mygateway1-out/11/4/1/0/16:state:default]" }
              
              Contact GaragePorton "Portón Garage [%s]" <garagedoor> { channel="mqtt:topic:efe295fe:porton_garage" }
              Contact GaragePuerta "Puerta Garage [%s]" <door>       { channel="mqtt:topic:efe295fe:puerta_garage" }
              
              1 Reply Last reply
              0
              • M Offline
                M Offline
                momo90
                wrote on last edited by
                #7

                Use this tutorial for OH 2.3 and mqtt
                https://www.smarthomeblog.net/diy-home-automation-sensors/
                Was working for me

                1 Reply Last reply
                1

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                19

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                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