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. OH3 - MySensors Binding
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

OH3 - MySensors Binding

Scheduled Pinned Locked Moved OpenHAB
135 Posts 34 Posters 1.5k Views 40 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.
  • ChachaC Chacha

    Hi!

    I've upgraded to OH 3.1.0 from OH 3.0.x

    Installed openhab-transport-serial and openhab-core-io-transport-mqtt in Karaf console with:

    feature:install openhab-transport-serial 
    feature:install openhab-core-io-transport-mqtt
    

    Tried to restart mysensors binding:

    openhab> bundle:restart org.openhab.binding.mysensors
    Error executing command: Error restarting bundles:
    	Unable to start bundle 29: Could not resolve module: org.openhab.binding.mysensors [29]
      Unresolved requirement: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)"
    

    Checked that only org.apache.commons.lang3 is installed:

    openhab> bundle:list org.apache.commons.lang3 
    START LEVEL 100 , List Threshold: 50
    ID │ State  │ Lvl │ Version │ Name
    66 │ Active │  80 │ 3.12.0  │ Apache Commons Lang
    

    Thanks

    P Offline
    P Offline
    Peter Loeffler
    wrote on last edited by
    #103

    @Chacha the log says it all: in OH3 the required package org.apache.commons.lang is installed with version 3.12.0

    the (very depreciated) binding does only support up to version 3.0.0

    the bug has been known for several months now.

    there are 2 ways out of that situation:

    a) if possible recode your sensors without mysensors and use Homie instead

    b) get rid of the binding and use plain mqtt

    this also applys to @syntacrsc

    ChachaC P 2 Replies Last reply
    1
    • P Peter Loeffler

      @Chacha the log says it all: in OH3 the required package org.apache.commons.lang is installed with version 3.12.0

      the (very depreciated) binding does only support up to version 3.0.0

      the bug has been known for several months now.

      there are 2 ways out of that situation:

      a) if possible recode your sensors without mysensors and use Homie instead

      b) get rid of the binding and use plain mqtt

      this also applys to @syntacrsc

      ChachaC Offline
      ChachaC Offline
      Chacha
      wrote on last edited by
      #104

      Thanks @Peter-Loeffler !
      I think I'll dive into mqtt than!
      As I can see Homie is only for sensors. I use mySensors to control my rollershutters.

      syntacrscS 1 Reply Last reply
      0
      • ChachaC Chacha

        Thanks @Peter-Loeffler !
        I think I'll dive into mqtt than!
        As I can see Homie is only for sensors. I use mySensors to control my rollershutters.

        syntacrscS Offline
        syntacrscS Offline
        syntacrsc
        wrote on last edited by syntacrsc
        #105

        @Chacha
        Same here, I use MySensors to control rollershutters, pool pump, HVAC and solar panels.

        Maybe we should collect some volunteers for a bounty to give to @TimO to enhance his beautiful mySensors binding to work with the recent OH 3.1.0 version??
        @Peter-Loeffler
        I used to use plain MQTT before I found the mySensors binding and don't really want go back to it.

        I'd be willing to throw 100 USD into the bounty pot to enhance MySensors to work with the recent version of OH3...
        (I'd do it myself if I'd know how to ;-) )

        P gundark2G 2 Replies Last reply
        0
        • P Peter Loeffler

          @Chacha the log says it all: in OH3 the required package org.apache.commons.lang is installed with version 3.12.0

          the (very depreciated) binding does only support up to version 3.0.0

          the bug has been known for several months now.

          there are 2 ways out of that situation:

          a) if possible recode your sensors without mysensors and use Homie instead

          b) get rid of the binding and use plain mqtt

          this also applys to @syntacrsc

          P Offline
          P Offline
          Peter Loeffler
          wrote on last edited by
          #106

          @Chacha you are wrong: Homie is NOT ONLY for sensors.

          1 Reply Last reply
          0
          • syntacrscS syntacrsc

            @Chacha
            Same here, I use MySensors to control rollershutters, pool pump, HVAC and solar panels.

            Maybe we should collect some volunteers for a bounty to give to @TimO to enhance his beautiful mySensors binding to work with the recent OH 3.1.0 version??
            @Peter-Loeffler
            I used to use plain MQTT before I found the mySensors binding and don't really want go back to it.

            I'd be willing to throw 100 USD into the bounty pot to enhance MySensors to work with the recent version of OH3...
            (I'd do it myself if I'd know how to ;-) )

            P Offline
            P Offline
            Peter Loeffler
            wrote on last edited by
            #107

            @syntacrsc well, for me it's no solution to throw Dollars into a pot that a community-based software get's some updates. either the software is state of the art ro it is not. and MySensors turned out to be not :(

            1 Reply Last reply
            0
            • syntacrscS syntacrsc

              @Chacha
              Same here, I use MySensors to control rollershutters, pool pump, HVAC and solar panels.

              Maybe we should collect some volunteers for a bounty to give to @TimO to enhance his beautiful mySensors binding to work with the recent OH 3.1.0 version??
              @Peter-Loeffler
              I used to use plain MQTT before I found the mySensors binding and don't really want go back to it.

              I'd be willing to throw 100 USD into the bounty pot to enhance MySensors to work with the recent version of OH3...
              (I'd do it myself if I'd know how to ;-) )

              gundark2G Offline
              gundark2G Offline
              gundark2
              wrote on last edited by
              #108

              @syntacrsc @TimO My system just upgraded and killed all of mySensors, which is probably half of my system... so I would be in for $50 at least

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vores8
                wrote on last edited by
                #109

                i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration

                So far, so good - working with the latest OH 3.1.0

                please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA

                DbagioniD T ChachaC 3 Replies Last reply
                2
                • V vores8

                  i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration

                  So far, so good - working with the latest OH 3.1.0

                  please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA

                  DbagioniD Offline
                  DbagioniD Offline
                  Dbagioni
                  wrote on last edited by
                  #110

                  @vores8 just down loaded it and installed. Showing up online with my serial gateway. Gonna let it run but looks like it’s working now. Nice work, and thank you.

                  1 Reply Last reply
                  0
                  • T TimO

                    I've solved the dependency error and the package compiles fine, but I had no time for testing yet.
                    If you're willing to test: Download

                    H Offline
                    H Offline
                    haasje30
                    wrote on last edited by
                    #111

                    @TimO After my system upgrade yesterday the mysensor binding stopt working. after I replaced the binding with your new download, it started working again. Thanks, you are a real hero (at least for me).

                    1 Reply Last reply
                    0
                    • YoshuY Offline
                      YoshuY Offline
                      Yoshu
                      wrote on last edited by
                      #112

                      Hi

                      Just tested out the mysensors openhab binding (org.openhab.binding.mysensors-3.2.0-SNAPSHOT) in the link provided by vores8 a few messages above.
                      Testing with the serial gateway, openhab 3.2 latest snapshot running pi 4.
                      Another detail for new users setting up by following the instruction, in the openhab install wiki (https://github.com/tobof/openhab-addons/wiki/Installation) here. This line does not work
                      feature:install openhab-transport-serial and feature:install openhab-core-io-transport-mqtt.
                      From other comments I found it is overcome by installing the openhab serial and mqtt bindings .

                      1 Reply Last reply
                      0
                      • N ncollins

                        One thing I had to do was explicitly set secure="false" into /opt/openhab/userdata/config/org/openhab/mqttbroker.config.

                        Please try that, then restart.

                        D Offline
                        D Offline
                        dsbibby
                        wrote on last edited by
                        #113

                        @ncollins said in OH3 - MySensors Binding:

                        One thing I had to do was explicitly set secure="false" into /opt/openhab/userdata/config/org/openhab/mqttbroker.config.

                        Please try that, then restart.

                        Just had a whole load of trouble getting the binding working using MQTT - this was the solution in case anyone else hits this!

                        1 Reply Last reply
                        2
                        • V vores8

                          i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration

                          So far, so good - working with the latest OH 3.1.0

                          please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA

                          T Offline
                          T Offline
                          ThkUF
                          wrote on last edited by
                          #114

                          @vores8 said in OH3 - MySensors Binding:

                          i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration

                          So far, so good - working with the latest OH 3.1.0

                          please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA

                          For anyone interested, I just installed the latest version of OpenHabian on a raspberry pi and it is running OH 3.1.0. The Openhab 3.1 MySensors binding from the Mysensors website was not working (same error as @Chacha).

                          I have now installed the version that @vores8 has provided and MySensors is up and running properly.

                          Thanks for the help.

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            forexsieno
                            wrote on last edited by
                            #115

                            Hi,
                            just tested OH3 (3.1.0) on PI3 with mysensors openhab binding (org.openhab.binding.mysensors-3.2.0-SNAPSHOT) in the link provided by vores8.
                            feature:install openhab-transport-serial and feature:install openhab-core-io-transport-mqtt. done. It's all up and running . bundle:list shows all active.
                            But the "MySensors Serial Gateway" which I intend to use in OH3 will not keep ONLINE.
                            It always goes back to offline...

                            11:48:29.035 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge mysensors:bridge-ser:6e5dca16a9 DONE!
                            11:48:29.035 [DEBUG] [ocol.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB1 [baudRate:115200]
                            11:48:29.045 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-ser:6e5dca16a9' changed from OFFLINE to ONLINE
                            11:48:29.062 [ERROR] [ocol.serial.MySensorsSerialConnection] - Exception found
                            java.lang.IllegalStateException: Serial Port Identifier not found
                                    at org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialConnection.establishConnection(MySensorsSerialConnection.java:59) [bundleFile:?]
                                    at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.connect(MySensorsAbstractConnection.java:145) [bundleFile:?]
                                    at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.run(MySensorsAbstractConnection.java:124) [bundleFile:?]
                                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
                                    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
                                    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
                                    at java.lang.Thread.run(Thread.java:829) [?:?]
                            11:48:29.073 [DEBUG] [ors.internal.gateway.MySensorsGateway] - MySensorsGateway connection status update -connected: false
                            11:48:29.077 [DEBUG] [s.discovery.MySensorsDiscoveryService] - Stopping MySensors discovery scan
                            11:48:29.080 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-ser:6e5dca16a9' changed from ONLINE to OFFLINE
                            11:48:29.081 [DEBUG] [ysensors.internal.event.EventRegister] - Listener org.openhab.binding.mysensors.discovery.MySensorsDiscoveryService@b2d6b0 not present, cannot remove it
                            11:48:29.086 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Connection status mysensors:bridge-ser:6e5dca16a9 updated to false
                            11:48:29.090 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [0,4]
                            11:48:29.095 [ERROR] [ocol.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:0)
                            
                            

                            any ideas?

                            T Duncan PullenD 2 Replies Last reply
                            0
                            • F forexsieno

                              Hi,
                              just tested OH3 (3.1.0) on PI3 with mysensors openhab binding (org.openhab.binding.mysensors-3.2.0-SNAPSHOT) in the link provided by vores8.
                              feature:install openhab-transport-serial and feature:install openhab-core-io-transport-mqtt. done. It's all up and running . bundle:list shows all active.
                              But the "MySensors Serial Gateway" which I intend to use in OH3 will not keep ONLINE.
                              It always goes back to offline...

                              11:48:29.035 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge mysensors:bridge-ser:6e5dca16a9 DONE!
                              11:48:29.035 [DEBUG] [ocol.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB1 [baudRate:115200]
                              11:48:29.045 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-ser:6e5dca16a9' changed from OFFLINE to ONLINE
                              11:48:29.062 [ERROR] [ocol.serial.MySensorsSerialConnection] - Exception found
                              java.lang.IllegalStateException: Serial Port Identifier not found
                                      at org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialConnection.establishConnection(MySensorsSerialConnection.java:59) [bundleFile:?]
                                      at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.connect(MySensorsAbstractConnection.java:145) [bundleFile:?]
                                      at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.run(MySensorsAbstractConnection.java:124) [bundleFile:?]
                                      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
                                      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
                                      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
                                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
                                      at java.lang.Thread.run(Thread.java:829) [?:?]
                              11:48:29.073 [DEBUG] [ors.internal.gateway.MySensorsGateway] - MySensorsGateway connection status update -connected: false
                              11:48:29.077 [DEBUG] [s.discovery.MySensorsDiscoveryService] - Stopping MySensors discovery scan
                              11:48:29.080 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-ser:6e5dca16a9' changed from ONLINE to OFFLINE
                              11:48:29.081 [DEBUG] [ysensors.internal.event.EventRegister] - Listener org.openhab.binding.mysensors.discovery.MySensorsDiscoveryService@b2d6b0 not present, cannot remove it
                              11:48:29.086 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Connection status mysensors:bridge-ser:6e5dca16a9 updated to false
                              11:48:29.090 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [0,4]
                              11:48:29.095 [ERROR] [ocol.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:0)
                              
                              

                              any ideas?

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

                              @forexsieno Is the device accessible by the user that Openhab is running with?

                              1 Reply Last reply
                              0
                              • F Offline
                                F Offline
                                forexsieno
                                wrote on last edited by
                                #117

                                @TimO said in OH3 - MySensors Binding:

                                Is the device accessible by the user that Openhab is running with?

                                @TimO Yes it is. This behaviour is not reproduceable for me. Sometimes after reboot Serial gateway keeps online. in other cases it switches to OFFLINE. I assume anything is wrong with serial driver.

                                1 Reply Last reply
                                1
                                • YoshuY Offline
                                  YoshuY Offline
                                  Yoshu
                                  wrote on last edited by
                                  #118

                                  Openhab 3.2 now contains a community marketplace for bindings, perhaps the mysensors binding can be made available there?

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    Jarosław Narbut
                                    wrote on last edited by
                                    #119

                                    Someone have working mysensors binding in openhab 3.3 ?

                                    C 1 Reply Last reply
                                    0
                                    • J Jarosław Narbut

                                      Someone have working mysensors binding in openhab 3.3 ?

                                      C Offline
                                      C Offline
                                      CyborgAndy
                                      wrote on last edited by
                                      #120

                                      @Jarosław-Narbut Yes, I have.

                                      D 1 Reply Last reply
                                      0
                                      • C CyborgAndy

                                        @Jarosław-Narbut Yes, I have.

                                        D Offline
                                        D Offline
                                        daanjjansen
                                        wrote on last edited by
                                        #121

                                        @CyborgAndy could you please share?

                                        1 Reply Last reply
                                        0
                                        • D Offline
                                          D Offline
                                          daanjjansen
                                          wrote on last edited by
                                          #122

                                          Im receiving following error in openhab:
                                          [protocol.mqtt.MySensorsMqttConnection] - Can't send message, connection writer is null
                                          Did you have the same? What did you do to resolve this?

                                          Using addon: org.openhab.binding.mysensors-3.2.0-SNAPSHOT.jar

                                          Thanks

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


                                          15

                                          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