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. General Discussion
  3. Will MySensors work for me?

Will MySensors work for me?

Scheduled Pinned Locked Moved General Discussion
12 Posts 5 Posters 1.6k Views 5 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.
  • S Stefferd

    Hi Everyone,

    I have plans on building my home smarter than it is right now. I am currently working with another Arduino smarthome library, but it fails to be stable - which is a pitty. So i am looking into other solutions.
    I have an openhab 2.1 system up and running, which controlls my current situation.
    Attached to this post i have a scanned drawing with how i want to setup my enviroment.
    Since i allready have a lot of nodes built, i would like to recover them and the cabling drawn to my nodes.
    The question is: is this setup do-able with MySensors, and are there any geniuses out there willing to point me in the right direction?
    Nodes are all on Arduino Nano's, RS485 modules are also allready on board.
    The problem with my current system is that anything running behind a wifi-bridge is unstable, that is as in not receiving commands and not reporting status.
    Since there are a lot of TRV's involved, values have to be distributed to plenty of nodes (like temperature setpoint for the heating, and on/off status)
    A gentle kick in the butt shooting me to the right direction would be greatly appreciated ;-)
    0_1524660150539_Scan0001.jpg

    rejoe2R Offline
    rejoe2R Offline
    rejoe2
    wrote on last edited by
    #3

    @stefferd (I'm most likely the RS485-user @gohan is reffering to).
    Imo, the key question is how to deal with the TRV's. If this is more or less independent C-code already adopted for the microcontrollers you are working with, you most likely will not have to big efforts to migrate your entire project to mysensors.

    So I'd recommend to start first in understanding how MySensors in general works and how it's integrated into your controller software. Use something rather simple like a temp or PIR sensor node (or a combined one). As communication layer I'd start with RFM69 (868MHz). Should be sufficient to get much better results than in 2.4GHz WiFi.
    Then you could try to replace Node 6 as a first step of migration. Next Node 4 with additional repeater functionality, in case Node 5 is to far from your controller/gateway to make the communication directly. For this, you won't need any RS485, this just replaces the wifi connection and one single RS485 connection.

    As your current wired solution also works to your needs, you may stop there or - decide then to also sowitch over to MySensors with this part.
    Remark on RS485: I at this moment would neitherblame the RS485 chips nor the implementation in MySensors to be the origins of my troubles. It just took me very long to understand all the parts that can affect communication. So if you already have a working electrical layout of RS485 lines, most likely this will just work when switching just the used lib for communication. At least one user in the FHEM forum has recently installed a line with 4 nodes running reliably for several weeks, and there seem to be a lot guys out there with similar results. But no guarantee...

    Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

    1 Reply Last reply
    2
    • S Offline
      S Offline
      Stefferd
      wrote on last edited by
      #4

      @gohan && @rejoe2 Thanks for your replies,

      As for the TRV's, i basically stripped down an existing TRV to the motor and mechanics, and built an arduino-based pcb with H-bridge and shunt to take over control. I wrote a simple library that handles the logics and reads the voltage over the shunt, so yes - it's arduino based and with implementable code code.
      I have enough hardware to completely rebuild a test situation in the setup i want. I would really like to avoid using 868MHZ harware due to the unencrypted nature.
      Wired RS485 systems and an understanding of the electronics behind it is also no problem. The big issue is in fact everything behind a wireless bridge in my current situation.
      I will setup a new server instance with OpenHab, and start playing around with MySensors.
      Thanks for your great input!

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #5

        Mysensors can handle both rfm69 encryption and also signing

        alexsh1A 1 Reply Last reply
        3
        • gohanG gohan

          Mysensors can handle both rfm69 encryption and also signing

          alexsh1A Offline
          alexsh1A Offline
          alexsh1
          wrote on last edited by
          #6

          @gohan that’s true. The only problem is memory in case of atmega328p. I noticed with encryption and sighting not much of it left....

          AnticimexA 1 Reply Last reply
          0
          • alexsh1A alexsh1

            @gohan that’s true. The only problem is memory in case of atmega328p. I noticed with encryption and sighting not much of it left....

            AnticimexA Offline
            AnticimexA Offline
            Anticimex
            Contest Winner
            wrote on last edited by
            #7

            @alexsh1 encryption on rfm69 is cheap as it is handled in hardware.

            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

            alexsh1A 1 Reply Last reply
            1
            • AnticimexA Anticimex

              @alexsh1 encryption on rfm69 is cheap as it is handled in hardware.

              alexsh1A Offline
              alexsh1A Offline
              alexsh1
              wrote on last edited by
              #8

              @anticimex Yes, you are correct. I have just double checked

              Sketch uses 24236 bytes (75%) of program storage space. Maximum is 32256 bytes.
              

              and

              Sketch uses 24098 bytes (74%) of program storage space. Maximum is 32256 bytes.
              

              With and without encryption.
              However, on many nodes I cannot include signing /debug etc as I exceed memory usage. I suspect that if I want to take it to the next level, I need to refactor libs I am using or just use an AVR with more memory

              AnticimexA 1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #9

                there is also option to use optional signing for nodes if you need to debug first. What libraries are you using that are so big? It would be nice to have some more development on STM32 but NRF5x chips are drawing a lot of attention

                1 Reply Last reply
                0
                • alexsh1A alexsh1

                  @anticimex Yes, you are correct. I have just double checked

                  Sketch uses 24236 bytes (75%) of program storage space. Maximum is 32256 bytes.
                  

                  and

                  Sketch uses 24098 bytes (74%) of program storage space. Maximum is 32256 bytes.
                  

                  With and without encryption.
                  However, on many nodes I cannot include signing /debug etc as I exceed memory usage. I suspect that if I want to take it to the next level, I need to refactor libs I am using or just use an AVR with more memory

                  AnticimexA Offline
                  AnticimexA Offline
                  Anticimex
                  Contest Winner
                  wrote on last edited by
                  #10

                  @alexsh1 yes, or debug signing first, to validate it works and when confirmed, disable debug and turn on your other functionalities. If they need debugging, debug them without signing as it is unlikely signing will have any impact on other libraries. It does not affect data sent or received "outside" the library.

                  Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                  alexsh1A 1 Reply Last reply
                  1
                  • AnticimexA Anticimex

                    @alexsh1 yes, or debug signing first, to validate it works and when confirmed, disable debug and turn on your other functionalities. If they need debugging, debug them without signing as it is unlikely signing will have any impact on other libraries. It does not affect data sent or received "outside" the library.

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by alexsh1
                    #11

                    @anticimex That's exactly what I do debug signing first and then debug are going as soon as testing is done. And unfortunately even that may not be enough. I do not want refactoring libs.

                    AnticimexA 1 Reply Last reply
                    0
                    • alexsh1A alexsh1

                      @anticimex That's exactly what I do debug signing first and then debug are going as soon as testing is done. And unfortunately even that may not be enough. I do not want refactoring libs.

                      AnticimexA Offline
                      AnticimexA Offline
                      Anticimex
                      Contest Winner
                      wrote on last edited by
                      #12

                      @alexsh1 signing fits fine on atmega328p. Just comment out any calls to your libraries and the linker will garbage collect any code drawn in by them. Once you confirm your security is operational, disable the debug prints alltogether and add your library calls.
                      Of course, if you have space issues even then, there is not much to do but optimize the code.

                      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

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


                      34

                      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