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. Never been able to get MySensors to work

Never been able to get MySensors to work

Scheduled Pinned Locked Moved OpenHAB
27 Posts 11 Posters 2.5k Views 10 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.
  • I Offline
    I Offline
    iamtheghost
    wrote on last edited by iamtheghost
    #6

    @yveaux said in Never been able to get MySensors to work:

    That guide is already 2 years old; I'm not sure if it is correct. This is the official guide.

    That guide is the only complete tutorial I've found to getting MySensors 2.4 working with OpenHab 2.4 via the serial gateway. While the original post is 2 years old, it has been updated multiple times. I've followed the official guide as well, to the same result, however.

    Still, they can be counterfeit nRF24L01+ (e.g. https://forum.mysensors.org/topic/1664/which-are-the-best-nrf24l01-modules)

    Looking at my ICs through a magnifying lens, it appears that mine have the "hole" in the middle of the "+" symbol on the etching. They were purchased from Amazon, but I can't recall which supplier.

    Would you be able to build an Arduino serial gateway (e.g. based on Uno or Nano) and test if that gets the communication running?

    Yeah, I can throw one together.

    1 Reply Last reply
    1
    • YveauxY Yveaux

      @iamtheghost said in Never been able to get MySensors to work:

      Both authentic, no "blobs", real chips.

      Still, they can be counterfeit nRF24L01+ (e.g. https://forum.mysensors.org/topic/1664/which-are-the-best-nrf24l01-modules)

      I don't feel like either of these are horrible soldering jobs.

      The top appears OK, the DHT pins look 'battle-tested' though ;-)

      Followed this guide "to the T"

      That guide is already 2 years old; I'm not sure if it is correct. This is the official guide.

      May 18 17:40:48 DEBUG !TSM:INIT:TSP FAIL

      That is a clear indication of communication error between MySensors and the radio; the radio communication check by MySensors has failed.
      There's no use trying to continue with this error.

      I built a small breakout board for the radio and it appears to connect to the OH2 instance successfully with this pinout board.

      Not sure what you mean here...

      Even though the gateway appears to be recognized by OH2, the node still looks like this

      Yes, the gateway starts and can be connected to by OH2, but the gateway cannot communicate with the radio.
      There's no use looking deeper into the node, cause your gateway is faulty for some reason.

      Would you be able to build an Arduino serial gateway (e.g. based on Uno or Nano) and test if that gets the communication running? That way we could rule out defective radio(s).
      Beware to power the radio from 3.3V then.

      I Offline
      I Offline
      iamtheghost
      wrote on last edited by iamtheghost
      #7

      @yveaux

      Okay, threw together an Arduino Nano serial gateway. It's currently plugged into the Pi via USB. Same port, ttyUSB0, and appears to be responding to sanity checks. Need to look at the gateway logs, now.

      YveauxY 1 Reply Last reply
      0
      • I iamtheghost

        @yveaux

        Okay, threw together an Arduino Nano serial gateway. It's currently plugged into the Pi via USB. Same port, ttyUSB0, and appears to be responding to sanity checks. Need to look at the gateway logs, now.

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #8

        @iamtheghost said in Never been able to get MySensors to work:

        Looking at my ICs through a magnifying lens, it appears that mine have the "hole" in the middle of the "+" symbol on the etching. They were purchased from Amazon, but I can't recall which supplier.

        We know now, that It is impossible to identify fakes from the outside (apart from the blob ones obviously).

        Okay, threw together an Arduino Nano serial gateway. It's currently plugged into the Pi via USB. Same port, ttyUSB0, and appears to be responding to sanity checks. Need to look at the gateway logs, now.

        Well, that sounds hopeful. Does the node find its parent now? Are the messages coming in correctly on the gateway?

        http://yveaux.blogspot.nl

        1 Reply Last reply
        0
        • bjacobseB Offline
          bjacobseB Offline
          bjacobse
          wrote on last edited by
          #9

          If the proposed serial gateway wont work, then try something else, if you have a friend that also use home automation, maybe you can try to connect you gateway and sensor to his system, then you are away from your home, maybe something is disturbing your 2.4GHz communication

          YveauxY 1 Reply Last reply
          1
          • bjacobseB bjacobse

            If the proposed serial gateway wont work, then try something else, if you have a friend that also use home automation, maybe you can try to connect you gateway and sensor to his system, then you are away from your home, maybe something is disturbing your 2.4GHz communication

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #10

            @bjacobse IMHO wireless disturbance is quite unlikely to be the root cause here, as messages do come in to the gateway (they pass the radio's crc check, so they are almost certain valid messages).
            The gateway just reads them as all zeroes from the radio for some bizarre reason.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            1
            • B Offline
              B Offline
              badisensors
              wrote on last edited by
              #11

              Is your power supply enough to supply the right current? Also play with the RF POWER when you build the gateway.

              I 1 Reply Last reply
              0
              • N Offline
                N Offline
                Neo Mod
                wrote on last edited by
                #12

                @iamtheghost I'm sorry I could not post any kind of solution, but just to say "Me too!".

                Two years and half of experimentations, different platform (ESP8266 / ESP-12) but same radio and same h/w for the controller, and in the end I had your exact same results.

                Same as you, I did everything I could to figure out the problem, including spending and "insane" amount of time (and money!) in sourcing the same hardware components from different sources.

                I did change the hardware (wires, components, microSD, cables, power sources, etc. etc. ) so many times that I can't even count; that poor raspberry of mine has been flashed over and over; same goes for the ESP-module, which I have also tried in every possible "flavour" (NodeMCU, Lolin, Amica, WeMos, etc. ). And in doing so I left quite a trail of "weird and unsolved" problems here in the forum.

                In the end, just like you have discovered, I could never make it work!
                I was captivated by the idea of having a "mesh sensors network" working around my building, especially because I have wide areas not covered by WiFi and I was intrigued (to say the least) by the possibilities promised by MySensors. But as you said, "It promises all the bells and whistles for cheap home automation, but despite my every effort, I cannot even read a simple DHT11". (*)

                (to be precise, in my case it was also a BME280; I switched to those AIO sensors after failing with DHT variants)

                I did never solve the issues, and I abandoned this platform when I reached the verge of my patience having exactly the same sketch with the same hardware (really, the same sensor, the same radio, the same wires, and two identical boards) working on one board and failing on another.

                After 2 years and a half I gave up on the idea of a "mesh network" and moved to another library (still free and still available to install on a raspberry to use as a controller, and with a beautiful UI)... wish I had done it sooner. In 4 days I fixed my whole network, having a plethora of sensors constantly reporting, never hanging up for any reason (I mean, I tried removing power in 60 seconds intervals for 5 minutes and in the end they all rebooted correctly with no errors) and with the bonus feature of outputting "eye friendly" data due to the different controller.

                Hence, I perfectly understand your situation and I know how it feels: the best suggestion I can give you is to "move on" and use a different library/architecture.

                I 1 Reply Last reply
                0
                • N Neo Mod

                  @iamtheghost I'm sorry I could not post any kind of solution, but just to say "Me too!".

                  Two years and half of experimentations, different platform (ESP8266 / ESP-12) but same radio and same h/w for the controller, and in the end I had your exact same results.

                  Same as you, I did everything I could to figure out the problem, including spending and "insane" amount of time (and money!) in sourcing the same hardware components from different sources.

                  I did change the hardware (wires, components, microSD, cables, power sources, etc. etc. ) so many times that I can't even count; that poor raspberry of mine has been flashed over and over; same goes for the ESP-module, which I have also tried in every possible "flavour" (NodeMCU, Lolin, Amica, WeMos, etc. ). And in doing so I left quite a trail of "weird and unsolved" problems here in the forum.

                  In the end, just like you have discovered, I could never make it work!
                  I was captivated by the idea of having a "mesh sensors network" working around my building, especially because I have wide areas not covered by WiFi and I was intrigued (to say the least) by the possibilities promised by MySensors. But as you said, "It promises all the bells and whistles for cheap home automation, but despite my every effort, I cannot even read a simple DHT11". (*)

                  (to be precise, in my case it was also a BME280; I switched to those AIO sensors after failing with DHT variants)

                  I did never solve the issues, and I abandoned this platform when I reached the verge of my patience having exactly the same sketch with the same hardware (really, the same sensor, the same radio, the same wires, and two identical boards) working on one board and failing on another.

                  After 2 years and a half I gave up on the idea of a "mesh network" and moved to another library (still free and still available to install on a raspberry to use as a controller, and with a beautiful UI)... wish I had done it sooner. In 4 days I fixed my whole network, having a plethora of sensors constantly reporting, never hanging up for any reason (I mean, I tried removing power in 60 seconds intervals for 5 minutes and in the end they all rebooted correctly with no errors) and with the bonus feature of outputting "eye friendly" data due to the different controller.

                  Hence, I perfectly understand your situation and I know how it feels: the best suggestion I can give you is to "move on" and use a different library/architecture.

                  I Offline
                  I Offline
                  iamtheghost
                  wrote on last edited by
                  #13

                  @neo-mod said in Never been able to get MySensors to work:

                  @iamtheghost I'm sorry I could not post any kind of solution, but just to say "Me too!".

                  Two years and half of experimentations, different platform (ESP8266 / ESP-12) but same radio and same h/w for the controller, and in the end I had your exact same results.

                  Same as you, I did everything I could to figure out the problem, including spending and "insane" amount of time (and money!) in sourcing the same hardware components from different sources.

                  I did change the hardware (wires, components, microSD, cables, power sources, etc. etc. ) so many times that I can't even count; that poor raspberry of mine has been flashed over and over; same goes for the ESP-module, which I have also tried in every possible "flavour" (NodeMCU, Lolin, Amica, WeMos, etc. ). And in doing so I left quite a trail of "weird and unsolved" problems here in the forum.

                  In the end, just like you have discovered, I could never make it work!
                  I was captivated by the idea of having a "mesh sensors network" working around my building, especially because I have wide areas not covered by WiFi and I was intrigued (to say the least) by the possibilities promised by MySensors. But as you said, "It promises all the bells and whistles for cheap home automation, but despite my every effort, I cannot even read a simple DHT11". (*)

                  (to be precise, in my case it was also a BME280; I switched to those AIO sensors after failing with DHT variants)

                  I did never solve the issues, and I abandoned this platform when I reached the verge of my patience having exactly the same sketch with the same hardware (really, the same sensor, the same radio, the same wires, and two identical boards) working on one board and failing on another.

                  After 2 years and a half I gave up on the idea of a "mesh network" and moved to another library (still free and still available to install on a raspberry to use as a controller, and with a beautiful UI)... wish I had done it sooner. In 4 days I fixed my whole network, having a plethora of sensors constantly reporting, never hanging up for any reason (I mean, I tried removing power in 60 seconds intervals for 5 minutes and in the end they all rebooted correctly with no errors) and with the bonus feature of outputting "eye friendly" data due to the different controller.

                  Hence, I perfectly understand your situation and I know how it feels: the best suggestion I can give you is to "move on" and use a different library/architecture.

                  I knew I wasn't alone. I totally accept and encourage platforms that are geared towards EEs and programmers, and MySensors is definitely that. Even as a programmer by trade, it's still difficult.

                  What library are you using now? I'm piqued.

                  N 1 Reply Last reply
                  0
                  • B badisensors

                    Is your power supply enough to supply the right current? Also play with the RF POWER when you build the gateway.

                    I Offline
                    I Offline
                    iamtheghost
                    wrote on last edited by
                    #14

                    @badisensors I'm using the 'official' 5v 2A transformer that came with the Pi kit when I bought it from Adafruit. Multimeter reads a flat 5v, no jumping around, and amperage/current draw seems to be normal.

                    zboblamontZ 1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      badisensors
                      wrote on last edited by
                      #15

                      Make a last try and change the RF POWER parameter when you build the gateway. If it is at high power set it to low power or the opposite. Did you try with other RF24 module?

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        kimot
                        wrote on last edited by kimot
                        #16

                        Sorry, but you select most difficult way for build your sensor network.
                        You spare one arduino like serial gateway or one Wemos like ethernet wifi gateway and two years hacking RPI gateway with no result.
                        And you choose bad radio module too, I think. Instead of NRF24 use RFM69 and no more problems with distance in your home and mesh network function no needed.
                        For all beginners I recommended step by step solution of problems, if something do not works.
                        For example, first try simple communication between two modules using basic examples from RFM69 library for example.
                        If it works, you have got certainty, that your hardware is OK ( radio properly connected to arduino ).
                        Then you can load sketches for gateway and normal node to both modules and I bet, it will work.

                        1 Reply Last reply
                        0
                        • alowhumA Offline
                          alowhumA Offline
                          alowhum
                          Plugin Developer
                          wrote on last edited by
                          #17

                          You can also check if messages come in to your Pi ok using minicom.

                          For example:
                          minicom -b 115200 -o -D /dev/ttyUSB0

                          You would have to install minicom (sudo apt-get install minicom)
                          You may have to change settings a bit so that it displays the data on newlines.

                          1 Reply Last reply
                          0
                          • TmasterT Offline
                            TmasterT Offline
                            Tmaster
                            wrote on last edited by Tmaster
                            #18

                            2 years and keep trying without ask help??!!!
                            I'm using lot of sensors since i'm registered on this forum and it works since first day.I only had problems with nrf24 chinese clones range,so a i changed all network to rfm69 and now i have an sensor 50m away from house and keep working every day.
                            the only diference is that i use a serial gateway connected to raspberry pi. It's the arduino version with and rfm69 conected by usb.
                            order some rfm69 from ebay and try again and order an arduino pro mini (1.x€) and an genuineftdi(clones won't work) or even an arduino nano with original ftdi chip and connect it by usb to the pi. I assure that it works.:+1:

                            i'm a arduino fan .Even sometimes don't undestanding how to use it :P

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              MagnusF
                              wrote on last edited by
                              #19

                              At first I'm no expert of MySensors or openHAB.
                              Perhaps I had luck but got the connection between MySensors and OH to work from
                              the beginning with only minor problems. The system has now been working for almost 2 years and I did it this way.
                              OH is installed on a RPi 3B, have a serial gateway on an Arduino Nano with nrf24L01 pa+lna the nodes (5 pcs) are built on Arduino pro mini.
                              The nodes are 3 Door/Window sensors, one relay and one tempereture/humidity sensor.
                              Since the gateway is placed in the basement and the nodes are on first floor one of the nodes is using nrf24L01 pa+lna and the other nrf24L01+.
                              The nrf24L01+ are chines and I bought about 15 of them and tested them at a distance of 12m through 2 wooden walls and have to scrap 3 of them.
                              The gateway and nodes have all standard sketches according to MySensors examples with minor changes. All nodes have fixed node_id.
                              Installation:
                              Downloaded "openHABianPi" SD card image file.
                              Wrote the image to a SD card and put it in the RPi.
                              Started the RPi and after some minutes OH was up and running.
                              Complete insructions can be found at https://www.openhab.org/v2.4/docs/installation/openhabian.html.
                              Connected the gateway to OH via a USB cable.
                              Went to MySensors/Controller/openHAB and followed the "Install instructions" at https://github.com/tobof/openhab2-addons/wiki.
                              Used Paper UI to configure the thing "MySensors serial gateway" and not .things file.
                              Now the nodes (things) pop up in the Inbox. Don't remember if I had to restart the RPi, gateway and nodes.
                              I hope this can help someone.

                              1 Reply Last reply
                              0
                              • zookazimZ Offline
                                zookazimZ Offline
                                zookazim
                                wrote on last edited by zookazim
                                #20

                                @iamtheghost I feel your pain brother. I am a newbie to MySensors and although got up and running relatively quickly with openHAB and an old Raspberry Pi 1 controller/gateway - I still spend days trying to sort out radio issues. At the moment it's replacing a standard nrf24L01 with the pa+lna version ... been at it for a couple of days without successful comms with gateway.

                                Two years trying ... I salute you. Keep holding on to the fact that when it works it will be so satisfying :-)

                                TmasterT 1 Reply Last reply
                                0
                                • I iamtheghost

                                  @badisensors I'm using the 'official' 5v 2A transformer that came with the Pi kit when I bought it from Adafruit. Multimeter reads a flat 5v, no jumping around, and amperage/current draw seems to be normal.

                                  zboblamontZ Offline
                                  zboblamontZ Offline
                                  zboblamont
                                  wrote on last edited by
                                  #21

                                  @iamtheghost Much as I admire those who got it all to work first time, the tenacity of those who have managed to get radio working against the unknown, and every sympathy for those who haven't, I really question the logic of the default MySensors recommendation with so many pirates and scammers flooding the market, and known 2.4GHz penetration problems.
                                  I have no doubt Nordic stand by their products, unfortunately it is their popularity which encouraged the pirates to flood the market such that even major suppliers have problems with verification.
                                  I can only suggest doing as I did with a router and a mobile to verify radio paths are solid, then you will know if the 2.4 devices should work, if not change frequency.
                                  My own decision to go go with 433MHz against 2.4GHz was based on this crude but effective first step, identifying blind spots. The standard RFM69 devices have not caused a single issue in 2 years, and as yet piracy is uncommon.

                                  1 Reply Last reply
                                  0
                                  • zookazimZ zookazim

                                    @iamtheghost I feel your pain brother. I am a newbie to MySensors and although got up and running relatively quickly with openHAB and an old Raspberry Pi 1 controller/gateway - I still spend days trying to sort out radio issues. At the moment it's replacing a standard nrf24L01 with the pa+lna version ... been at it for a couple of days without successful comms with gateway.

                                    Two years trying ... I salute you. Keep holding on to the fact that when it works it will be so satisfying :-)

                                    TmasterT Offline
                                    TmasterT Offline
                                    Tmaster
                                    wrote on last edited by
                                    #22

                                    @zookazim be carefull with the nrf24 amplified boards.some times you just have less range because you incresed the signal power and starting have ecos and distortions on signals. I only has 1 amplified card and had poor range,just before change everyting to rfm69w ,not even need to be the hight power(hw )version to have more range than on 2.4 ghz cards

                                    i'm a arduino fan .Even sometimes don't undestanding how to use it :P

                                    zboblamontZ 1 Reply Last reply
                                    0
                                    • alowhumA Offline
                                      alowhumA Offline
                                      alowhum
                                      Plugin Developer
                                      wrote on last edited by
                                      #23

                                      I stopped using the amplified version and just used a normal version with an antenna. You can find them online. Works great.
                                      alt text

                                      https://www.aliexpress.com/item/32794109125.html

                                      YveauxY 1 Reply Last reply
                                      0
                                      • TmasterT Tmaster

                                        @zookazim be carefull with the nrf24 amplified boards.some times you just have less range because you incresed the signal power and starting have ecos and distortions on signals. I only has 1 amplified card and had poor range,just before change everyting to rfm69w ,not even need to be the hight power(hw )version to have more range than on 2.4 ghz cards

                                        zboblamontZ Offline
                                        zboblamontZ Offline
                                        zboblamont
                                        wrote on last edited by
                                        #24

                                        @tmaster Be careful not to compare apples and oranges, the frequency of the two devices react differently, higher frequencies tend to be more liable to attenuation and have shorter range.
                                        What is also often overlooked in the higher power versions of the 2.4 devices is the additional preamplifier stage which can make a difference at the reception extremes but overload in closer proximity...

                                        1 Reply Last reply
                                        0
                                        • alowhumA alowhum

                                          I stopped using the amplified version and just used a normal version with an antenna. You can find them online. Works great.
                                          alt text

                                          https://www.aliexpress.com/item/32794109125.html

                                          YveauxY Offline
                                          YveauxY Offline
                                          Yveaux
                                          Mod
                                          wrote on last edited by Yveaux
                                          #25

                                          @alowhum said in Never been able to get MySensors to work:

                                          I stopped using the amplified version and just used a normal version with an antenna. You can find them online. Works great.

                                          The link actually does point to a pa+lna module (the BTE16-50), using a nRF24L01+ 'compatible' IC, the SI24R1.
                                          This would definately not be my module of preference...

                                          http://yveaux.blogspot.nl

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


                                          13

                                          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