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. OH3 - MySensors Binding

OH3 - MySensors Binding

Scheduled Pinned Locked Moved OpenHAB
135 Posts 34 Posters 1.7k 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.
  • 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
        • D daanjjansen

          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 Offline
          C Offline
          CyborgAndy
          wrote on last edited by
          #123

          @daanjjansen I'm using OpenHAB 3.3.0
          Information from OpenHAB 3.3.0 release notes:
          Support for the MQTT System Broker has been removed. Replace 'mqtt:systemBroker' things with 'mqtt:broker' things.

          I fixed this error with MqttConnection. Your need remove MQTT System Broker and create new MQTT Broker.

          Download fixed org.openhab.binding.mysensors-3.3.0-SNAPSHOT.jar from my Google Disk

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mbedarff
            wrote on last edited by
            #124

            It seems that still some people are interested in this MySensors binding being updated further.

            I'm currently using in openHAB 3.2 the version that @vores8 kindly provided in post #109 on 21/07/2022, based on the source fork from @ncollins (https://github.com/nikolac/openhab2-addons/tree/mysensors-oh3-migration).

            Now I noticed that there seems to be a bug in the ethernet gateway with reconnecting after the TCP connection is lost. The loss of the connection is detected, but it is not disconnected and re-established afterwards.

            I would like to look at this in the " current" source code and if possible develop a fix and provide it.

            Therefore the question to the community and especially to @vores8 and @ncollins, if the source code adapted to OH 3.2 or now to OH 3.3 has been uploaded by you to GitHub. If so, under which repository and branch? If not, please catch up on it for us so that we can merge the adaption you have made to the source and possibly bundle and ensure further development.

            Thanks a lot in advance! :face_with_cowboy_hat:

            N C 2 Replies Last reply
            0
            • M mbedarff

              It seems that still some people are interested in this MySensors binding being updated further.

              I'm currently using in openHAB 3.2 the version that @vores8 kindly provided in post #109 on 21/07/2022, based on the source fork from @ncollins (https://github.com/nikolac/openhab2-addons/tree/mysensors-oh3-migration).

              Now I noticed that there seems to be a bug in the ethernet gateway with reconnecting after the TCP connection is lost. The loss of the connection is detected, but it is not disconnected and re-established afterwards.

              I would like to look at this in the " current" source code and if possible develop a fix and provide it.

              Therefore the question to the community and especially to @vores8 and @ncollins, if the source code adapted to OH 3.2 or now to OH 3.3 has been uploaded by you to GitHub. If so, under which repository and branch? If not, please catch up on it for us so that we can merge the adaption you have made to the source and possibly bundle and ensure further development.

              Thanks a lot in advance! :face_with_cowboy_hat:

              N Offline
              N Offline
              ncollins
              wrote on last edited by
              #125

              @mbedarff good question. Seems @CyborgAndy is keeping the addon alive? If so, @CyborgAndy are you publishing your changes to a public branch/fork?

              1 Reply 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?

                Duncan PullenD Offline
                Duncan PullenD Offline
                Duncan Pullen
                wrote on last edited by
                #126

                @forexsieno Did you solve this one?

                I'm still getting the same error.

                Using 3.3.0-SNAPSHOT

                2022-08-08 02:21:23.200 [ERROR] [col.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) [?:?]
                
                1 Reply Last reply
                0
                • M mbedarff

                  It seems that still some people are interested in this MySensors binding being updated further.

                  I'm currently using in openHAB 3.2 the version that @vores8 kindly provided in post #109 on 21/07/2022, based on the source fork from @ncollins (https://github.com/nikolac/openhab2-addons/tree/mysensors-oh3-migration).

                  Now I noticed that there seems to be a bug in the ethernet gateway with reconnecting after the TCP connection is lost. The loss of the connection is detected, but it is not disconnected and re-established afterwards.

                  I would like to look at this in the " current" source code and if possible develop a fix and provide it.

                  Therefore the question to the community and especially to @vores8 and @ncollins, if the source code adapted to OH 3.2 or now to OH 3.3 has been uploaded by you to GitHub. If so, under which repository and branch? If not, please catch up on it for us so that we can merge the adaption you have made to the source and possibly bundle and ensure further development.

                  Thanks a lot in advance! :face_with_cowboy_hat:

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

                  Hi.
                  @mbedarff I fix gateway connection checking issue.
                  You can download the fixed version from my Google Disk

                  @mbedarff @ncollins I published all changes to GitHub, "mysensors-binding-addon" branch.

                  @forexsieno I tested my 3.3.0-SNAPSHOT in different environments (Arduino Nano as serial gateway, OH 3.3 installed on Windows 10 and Ubuntu Server 20.04) and did not find such a problem.

                  D od1O 2 Replies Last reply
                  2
                  • M Offline
                    M Offline
                    mbedarff
                    wrote on last edited by
                    #128

                    @CyborgAndy Glad to hear, that you have published all your fixes and upgrades to GitHub! So we have a current source code base to continue development or for debugging. :+1:

                    Thank you for the gateway connection fix! I just upgrade my OH instance from 3.2 to 3.3 and successfully tested your snapshot. :smiley:

                    Have a nice weekend!

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      niccodemi
                      wrote on last edited by
                      #129

                      After upgrading OH from 3.2.0 to 3.3.0 and placing latest Mysensors binding (3.3.0-SNAPSHOT) into addon folder I can only get it to "Installed" status but not "active".

                      Any advise how to remove following issues?

                      openhab> feature:install openhab-transport-serial
                      openhab> feature:install openhab-core-io-transport-mqtt
                      openhab> diag 291
                      openHAB Add-ons :: Bundles :: MySensors Binding (291)
                      -----------------------------------------------------
                      Status: Installed
                      Unsatisfied Requirements:
                      osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mqtt.handler)"
                      osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mysensors.action)"
                      osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mysensors.config)"
                      osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mysensors.factory)"
                      Declarative Services
                      
                      1 Reply Last reply
                      0
                      • C CyborgAndy

                        Hi.
                        @mbedarff I fix gateway connection checking issue.
                        You can download the fixed version from my Google Disk

                        @mbedarff @ncollins I published all changes to GitHub, "mysensors-binding-addon" branch.

                        @forexsieno I tested my 3.3.0-SNAPSHOT in different environments (Arduino Nano as serial gateway, OH 3.3 installed on Windows 10 and Ubuntu Server 20.04) and did not find such a problem.

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

                        @CyborgAndy work perfectly here.
                        Thanks for you effort!

                        1 Reply Last reply
                        0
                        • jerseyguy1996J Offline
                          jerseyguy1996J Offline
                          jerseyguy1996
                          wrote on last edited by
                          #131

                          @CyborgAndy @vores8 and @TimO and everyone else that worked on getting this binding to work on OH3, you guys are rockstars. I fubar'd my OH2 installation and decided that i might as well upgrade to OH3. I'm so glad that the mysensors binding works with it. I'm running a Raspberry Pi Serial Gateway which amazingly also installed with only a few minor hick-ups. Thank you all so much!

                          1 Reply Last reply
                          0
                          • C CyborgAndy

                            Hi.
                            @mbedarff I fix gateway connection checking issue.
                            You can download the fixed version from my Google Disk

                            @mbedarff @ncollins I published all changes to GitHub, "mysensors-binding-addon" branch.

                            @forexsieno I tested my 3.3.0-SNAPSHOT in different environments (Arduino Nano as serial gateway, OH 3.3 installed on Windows 10 and Ubuntu Server 20.04) and did not find such a problem.

                            od1O Offline
                            od1O Offline
                            od1
                            wrote on last edited by
                            #132

                            @CyborgAndy said in OH3 - MySensors Binding:

                            @mbedarff @ncollins I published all changes to GitHub, "mysensors-binding-addon" branch.

                            Is it normal than the add-on is not displayed on the official listing available through the UI of openHAB 3.3.0?

                            1 Reply Last reply
                            0
                            • 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

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

                              I've upgraded to OH4 and tried Mysensors binding 3.3.0-SNAPSHOT. It fails to load with error:

                              Unresolved requirement: Import-Package: org.openhab.binding.mqtt.handler
                              

                              However 3.2.0-SNAPSHOT works perfectly with OH4!!!
                              You can download it from this post:

                              @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

                              Install instructions: https://github.com/tobof/openhab-addons/wiki/Installation

                              C 1 Reply Last reply
                              0
                              • ChachaC Chacha

                                I've upgraded to OH4 and tried Mysensors binding 3.3.0-SNAPSHOT. It fails to load with error:

                                Unresolved requirement: Import-Package: org.openhab.binding.mqtt.handler
                                

                                However 3.2.0-SNAPSHOT works perfectly with OH4!!!
                                You can download it from this post:

                                @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

                                Install instructions: https://github.com/tobof/openhab-addons/wiki/Installation

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

                                Hi @Chacha

                                Download org.openhab.binding.mysensors-4.0.4-SNAPSHOT.jar from my Google Disk and try it.
                                I only tested as a MySensors MQTT Gateway

                                kerberosK 1 Reply Last reply
                                1
                                • C CyborgAndy

                                  Hi @Chacha

                                  Download org.openhab.binding.mysensors-4.0.4-SNAPSHOT.jar from my Google Disk and try it.
                                  I only tested as a MySensors MQTT Gateway

                                  kerberosK Offline
                                  kerberosK Offline
                                  kerberos
                                  wrote on last edited by
                                  #135

                                  Hi @CyborgAndy

                                  many thanks for providing the binding update for MySensors 4.0.4! I upgrade my OpenHAB 3.4.4 a few minutes ago to 4.0.4 successfully with your binding update. I use a USB connected serial-gateway. The OpenHAB manual installation upgrade works perfect. I need to do afterwards the following steps in the Karaf console, to get the gateway online again, after the update:

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

                                  Many thanks again!
                                  kerberos

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


                                  25

                                  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