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. Why I quit using MySensors for actuators

Why I quit using MySensors for actuators

Scheduled Pinned Locked Moved General Discussion
55 Posts 19 Posters 13.2k Views 25 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.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by
    #17

    I wonder if there might be some source of interference that's affecting the actuators? Have you tried a quieter channel to see if it makes any difference?

    parachutesjP 1 Reply Last reply
    0
    • NeverDieN NeverDie

      I wonder if there might be some source of interference that's affecting the actuators? Have you tried a quieter channel to see if it makes any difference?

      parachutesjP Offline
      parachutesjP Offline
      parachutesj
      wrote on last edited by
      #18

      @NeverDie I do not have the tools to analyze this. I checked the information from the router and there was a sketch scanning the frequencies which I tried and picked a channel which seems to be ok. After a while I changed is to 2 or 3 different values with similar results. Changing it again will be painful.

      1 Reply Last reply
      0
      • petewillP Offline
        petewillP Offline
        petewill
        Admin
        wrote on last edited by
        #19

        I realize this thread is getting old but I'm behind in my reading... :)

        I just wanted to say that I have been using actuators (irrigation, lighting, motors, etc) for years and I have had nearly flawless results (at least as good as my z-wave stuff, if not better). I don't want to start any arguments but just wanted to let everyone know that it is possible to use MySensors for actuators in case you haven't tried it. I'm actually pretty surprised that people seem to be having issues with actuators as mine have been working well.
        I did find that modifying the NRF antennas as well as using repeaters has helped in some of the devices that are far away from my gateway.
        Hopefully this doesn't come across the wrong way, just wanted to give some encouragement to not give up :)

        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

        parachutesjP 1 Reply Last reply
        6
        • NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by NeverDie
          #20

          The real question is: why would there be any difference in reliability between a sensor and an actuator? In both cases, it's just a radio link, right? Unless maybe the actuator might do something (voltage spike from a motor maybe?) to put the radio/mcu into some undefined state. In that case, would doing a hard reset on the radio after each actuation keep it in line?

          Or is it more the case that we're more likely to notice an actuator fault than a sensor fault? e.g. If you miss a particular temperature measurement, odds are there will be another one coming along shortly--and you have the measurement you took a few minutes earlier to fall back on. But if you want to roll up the shades, and it doesn't happen when you command it, then that's admittedly more irritating.

          YveauxY 1 Reply Last reply
          2
          • NeverDieN NeverDie

            The real question is: why would there be any difference in reliability between a sensor and an actuator? In both cases, it's just a radio link, right? Unless maybe the actuator might do something (voltage spike from a motor maybe?) to put the radio/mcu into some undefined state. In that case, would doing a hard reset on the radio after each actuation keep it in line?

            Or is it more the case that we're more likely to notice an actuator fault than a sensor fault? e.g. If you miss a particular temperature measurement, odds are there will be another one coming along shortly--and you have the measurement you took a few minutes earlier to fall back on. But if you want to roll up the shades, and it doesn't happen when you command it, then that's admittedly more irritating.

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

            @NeverDie said in Why I quit using MySensors for actuators:

            we're more likely to notice an actuator fault than a sensor fault?

            Judging from recent measurements I'm quite sure this is the cause. Especially a wireless actuator switched by a wireless sensor requires 2 succesful message transmissions. If one of them fails you will notice immediately.

            To make things worse, sensors often only transmit a new value if it changed w.r.t. the previous one. If an isochronal sensor skips a sensor value at the gateway, we'll never know if it just didn't send the value because it was identical to the previous one, or if a new value wasn't received.

            http://yveaux.blogspot.nl

            parachutesjP NeverDieN 2 Replies Last reply
            0
            • sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by sundberg84
              #22

              I had 3 switches for window lights(pro mini 5v, arduino relay) and they worked flawless! (Anything else and my wife would unplug them). I moved away because of security (240 to 5v before HLK discussion.) but never had any issues with reception/radio or missed commands.

              It is possible to do with MySensors and with my small experience in the forum many posts seems to be about power issues/interference actuator vs radio/power.

              There are one situation I'm not sure about which I have not been able to test and that is using actuator with a repeater in between... but I will soon have the logging possibilities for gw/repeater and actuator at the same time.

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              1 Reply Last reply
              0
              • petewillP petewill

                I realize this thread is getting old but I'm behind in my reading... :)

                I just wanted to say that I have been using actuators (irrigation, lighting, motors, etc) for years and I have had nearly flawless results (at least as good as my z-wave stuff, if not better). I don't want to start any arguments but just wanted to let everyone know that it is possible to use MySensors for actuators in case you haven't tried it. I'm actually pretty surprised that people seem to be having issues with actuators as mine have been working well.
                I did find that modifying the NRF antennas as well as using repeaters has helped in some of the devices that are far away from my gateway.
                Hopefully this doesn't come across the wrong way, just wanted to give some encouragement to not give up :)

                parachutesjP Offline
                parachutesjP Offline
                parachutesj
                wrote on last edited by
                #23

                @petewill don't get me wrong, I love this project and impressed by all the positive things. It is just that I - with my limited skills and resources - not able to get a decent stable state. I wan't it to be perfect.

                1 Reply Last reply
                0
                • YveauxY Yveaux

                  @NeverDie said in Why I quit using MySensors for actuators:

                  we're more likely to notice an actuator fault than a sensor fault?

                  Judging from recent measurements I'm quite sure this is the cause. Especially a wireless actuator switched by a wireless sensor requires 2 succesful message transmissions. If one of them fails you will notice immediately.

                  To make things worse, sensors often only transmit a new value if it changed w.r.t. the previous one. If an isochronal sensor skips a sensor value at the gateway, we'll never know if it just didn't send the value because it was identical to the previous one, or if a new value wasn't received.

                  parachutesjP Offline
                  parachutesjP Offline
                  parachutesj
                  wrote on last edited by parachutesj
                  #24

                  @Yveaux I wan't to believe this. However the sensors recover. IF it fails once, and then send again 5 mins later and it is successful - I guess most of us can live with this. E.g. I do have a rain sensor which sends via interrupt changed state. So as soon as it starts raining I get the update and close my roof windows. This NEVER failed. So I would say even if I do not know if some measurements are getting lost - I never noticed it. Also the other sensors seem quite stable.

                  But as @NeverDie said, when an actuator fails, the light is not on etc. and you notice it immediately. The strange thing is, when they fail, they hardly recover themselves. Sometimes it works, sometime it doesn't.

                  So for my rollershutters, in my rules from home automation (openHAB), I always send a "STOP" before reducing the chance that the next comand fails. This helped a lot but is just a workaround and not helping always. And then there are the situations, when they seem to "lock" and nothing helps and as soon as I press a physical button, it is working again (or do a arduino reset).
                  I also debugged it and had the serial connected while that happend but it looked like no signal arrived at the node. So it failed somewhere in between.

                  I think it could be the whole setup of the gateway. Either power supply, arduino, antenna, powermode or the alignment... but why happens it only on some nodes and not on others? And I have changed basically everything in the meantime.

                  I just don't have the energy at the moment to further research on the topic. Appreciate your comments and suggestions

                  1 Reply Last reply
                  0
                  • YveauxY Yveaux

                    @NeverDie said in Why I quit using MySensors for actuators:

                    we're more likely to notice an actuator fault than a sensor fault?

                    Judging from recent measurements I'm quite sure this is the cause. Especially a wireless actuator switched by a wireless sensor requires 2 succesful message transmissions. If one of them fails you will notice immediately.

                    To make things worse, sensors often only transmit a new value if it changed w.r.t. the previous one. If an isochronal sensor skips a sensor value at the gateway, we'll never know if it just didn't send the value because it was identical to the previous one, or if a new value wasn't received.

                    NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by NeverDie
                    #25

                    @Yveaux said in Why I quit using MySensors for actuators:

                    To make things worse, sensors often only transmit a new value if it changed w.r.t. the previous one. If an isochronal sensor skips a sensor value at the gateway, we'll never know if it just didn't send the value because it was identical to the previous one, or if a new value wasn't received.

                    That's where there's value in numbering your packets and having the gateway keep track of how many aren't received. Your statement is still true, but at least over time you develop statistics about how (un)reliable the connection is, so you can be as pro-active as you want to be in fixing it.

                    D 1 Reply Last reply
                    1
                    • NeverDieN NeverDie

                      @Yveaux said in Why I quit using MySensors for actuators:

                      To make things worse, sensors often only transmit a new value if it changed w.r.t. the previous one. If an isochronal sensor skips a sensor value at the gateway, we'll never know if it just didn't send the value because it was identical to the previous one, or if a new value wasn't received.

                      That's where there's value in numbering your packets and having the gateway keep track of how many aren't received. Your statement is still true, but at least over time you develop statistics about how (un)reliable the connection is, so you can be as pro-active as you want to be in fixing it.

                      D Offline
                      D Offline
                      dakipro
                      wrote on last edited by
                      #26

                      @NeverDie said in Why I quit using MySensors for actuators:

                      numbering your packets and having the gateway keep track of how many aren't received

                      Hi, could you elaborate this a bit more, maybe with some link/example about how to number the packages, and how to keep track of them on the gateway?
                      I am also very interested in this statistics, as a way to improve long term reliability.

                      C: OpenHAB2 with node-red on linux laptop
                      GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
                      GW: Arduino Mega, RFLink 433Mhz

                      NeverDieN 1 Reply Last reply
                      0
                      • D dakipro

                        @NeverDie said in Why I quit using MySensors for actuators:

                        numbering your packets and having the gateway keep track of how many aren't received

                        Hi, could you elaborate this a bit more, maybe with some link/example about how to number the packages, and how to keep track of them on the gateway?
                        I am also very interested in this statistics, as a way to improve long term reliability.

                        NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #27

                        @dakipro said in Why I quit using MySensors for actuators:

                        @NeverDie said in Why I quit using MySensors for actuators:

                        numbering your packets and having the gateway keep track of how many aren't received

                        Hi, could you elaborate this a bit more, maybe with some link/example about how to number the packages, and how to keep track of them on the gateway?
                        I am also very interested in this statistics, as a way to improve long term reliability.

                        I haven't actually done it yet, but I believe it's a common technique employed for, say, knowing whether different packets are meant to be the same packet or not (for instance, a retransmitted packet because a node never got an ACK). In fact, I think 802.15.4 may include a byte in the frame for this purpose.

                        But, the idea is simple, so let's think it through anyway. Suppose you only send temperature packets if there has actually been a change in temperature since the last packet. Also, assume no ACKing. Well, the fact is not every packet may get through. So, the gateway may not be up-to-date on what the current temperature is.

                        Now, suppose you include a byte in the payload as a counter. Every time the mote sends a new temperature, it increments the counter. The gateway knows the last packet it received, and so it compares that counter to the next packet it receives. newCounter should be oldCounter+1, right? If, instead, it's oldCounter+2, then the gateway knows that a packet was sent that it didn't receive.

                        Get it?

                        YveauxY 1 Reply Last reply
                        1
                        • D Offline
                          D Offline
                          dakipro
                          wrote on last edited by
                          #28

                          I understand the principle, number of sent packets should match number of received ones per node :)
                          I thought it was perhaps already implemented on node/gateway level. I guess one could always send Text or some custom label and handle it in controller, but having it integrated in gateway itself would be awesome :)

                          C: OpenHAB2 with node-red on linux laptop
                          GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
                          GW: Arduino Mega, RFLink 433Mhz

                          NeverDieN 1 Reply Last reply
                          1
                          • D dakipro

                            I understand the principle, number of sent packets should match number of received ones per node :)
                            I thought it was perhaps already implemented on node/gateway level. I guess one could always send Text or some custom label and handle it in controller, but having it integrated in gateway itself would be awesome :)

                            NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by
                            #29

                            @dakipro said in Why I quit using MySensors for actuators:

                            I understand the principle, number of sent packets should match number of received ones per node :)
                            I thought it was perhaps already implemented on node/gateway level. I guess one could always send Text or some custom label and handle it in controller, but having it integrated in gateway itself would be awesome :)

                            If it's something you want, maybe you can request it?

                            1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              @dakipro said in Why I quit using MySensors for actuators:

                              @NeverDie said in Why I quit using MySensors for actuators:

                              numbering your packets and having the gateway keep track of how many aren't received

                              Hi, could you elaborate this a bit more, maybe with some link/example about how to number the packages, and how to keep track of them on the gateway?
                              I am also very interested in this statistics, as a way to improve long term reliability.

                              I haven't actually done it yet, but I believe it's a common technique employed for, say, knowing whether different packets are meant to be the same packet or not (for instance, a retransmitted packet because a node never got an ACK). In fact, I think 802.15.4 may include a byte in the frame for this purpose.

                              But, the idea is simple, so let's think it through anyway. Suppose you only send temperature packets if there has actually been a change in temperature since the last packet. Also, assume no ACKing. Well, the fact is not every packet may get through. So, the gateway may not be up-to-date on what the current temperature is.

                              Now, suppose you include a byte in the payload as a counter. Every time the mote sends a new temperature, it increments the counter. The gateway knows the last packet it received, and so it compares that counter to the next packet it receives. newCounter should be oldCounter+1, right? If, instead, it's oldCounter+2, then the gateway knows that a packet was sent that it didn't receive.

                              Get it?

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

                              @NeverDie said in Why I quit using MySensors for actuators:

                              Now, suppose you include a byte in the payload as a counter.

                              Let's go all the way then and implement 'guaranteed delivery', not a diagnostic counter that only tells you your connection sucks...

                              http://yveaux.blogspot.nl

                              NeverDieN 1 Reply Last reply
                              1
                              • YveauxY Yveaux

                                @NeverDie said in Why I quit using MySensors for actuators:

                                Now, suppose you include a byte in the payload as a counter.

                                Let's go all the way then and implement 'guaranteed delivery', not a diagnostic counter that only tells you your connection sucks...

                                NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by
                                #31

                                @Yveaux said in Why I quit using MySensors for actuators:

                                @NeverDie said in Why I quit using MySensors for actuators:

                                Now, suppose you include a byte in the payload as a counter.

                                Let's go all the way then and implement 'guaranteed delivery', ...

                                How does one do that?

                                YveauxY 1 Reply Last reply
                                0
                                • NeverDieN NeverDie

                                  @Yveaux said in Why I quit using MySensors for actuators:

                                  @NeverDie said in Why I quit using MySensors for actuators:

                                  Now, suppose you include a byte in the payload as a counter.

                                  Let's go all the way then and implement 'guaranteed delivery', ...

                                  How does one do that?

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

                                  @NeverDie Simple said: Buffer messages at nodes until they receive an acknowledge that the message was delivered succesfully. Retry sending the message after some time if the acknowledge does not arrive.
                                  The principle is simple, but the devil is in the details :smiling_imp:

                                  http://yveaux.blogspot.nl

                                  1 Reply Last reply
                                  5
                                  • parachutesjP parachutesj

                                    It's been a while since I started with MySensors and had quite some troubles and eventually figured everything out. In the meantime I have a lot of sensors all over the place but I am a bit biased about the results.

                                    One one side, all the sensors (door, window, temp, sun, water, humitdity etc) they work flawless. I have some very low power sensors on batteries which run "forever" and they update quite frequent and once started they just do what they need to do: send sensor data to my gateway. Perfect!
                                    As a sensor platform, I am very happy with the results.
                                    On the other side, I also have a few actuators. Mainly rollershutters, a few LED-dimmers and light switches.
                                    As the light and dimmers (mostly) work, the results with the rollershutters are bad. First the good part: I do have two window motors in quite remote places, they work. Built with relays for up/down movement. No troubles.
                                    Then a few other rollershutters which are actually quite close to the gateway, they fail. every now and then the signal from gateway fails. I do not know why. I have changed everything in the meantime: Antennas, radios, power supplys, relais, arduinos, new circuits, other electronic parts (first a bunch of Nanos, then proMini) nothing gives reliable results. I tried to tweak the software as best as it goes, added sensors to send "alive" messages like temperature but then again after one day or one week or two weeks, it fails again. sometimes I only need to trigger a manual switch to get it back, then I have to power cycle.
                                    So after more than one year, I am done with testing. I need to get something stable now. Moving on...

                                    Some facts:
                                    I use NRF24 radios, maybe others would deliver better results. But I am not willing to waste another year.
                                    I am on latest stable release.
                                    My gateway has been changed as well. Currently an "official" arduino Uno with amplified radio and external 10A power supply to have enough juice.
                                    I am doing electronics since many years, but no expert but think I know mostly what I am doing.

                                    Thank you for all your help, will stick around for additional sensor only devices, as this seems to work (for me).

                                    Cheers,
                                    SJ

                                    parachutesjP Offline
                                    parachutesjP Offline
                                    parachutesj
                                    wrote on last edited by parachutesj
                                    #33

                                    update on my above post:
                                    Another node started to act crazy, had to restart it several times (simple relay with one lamp attached). Then my gateway failed shortly after. I had to restart everything. By chance I realigned the antenna and since then all runs quite stable. This drives me crazy...

                                    Regarding the "new" solution I am currently trying: Exchanged one of the problematic nodes with a Wemos D1 mini. Runs without any issue since 2 months.

                                    1 Reply Last reply
                                    3
                                    • NeverDieN Offline
                                      NeverDieN Offline
                                      NeverDie
                                      Hero Member
                                      wrote on last edited by
                                      #34

                                      Just a thought, but have you tried using two (or more) gateways, spaced half a wavelength apart from one another? Maybe that would help with your reliability.

                                      parachutesjP 1 Reply Last reply
                                      0
                                      • NeverDieN NeverDie

                                        Just a thought, but have you tried using two (or more) gateways, spaced half a wavelength apart from one another? Maybe that would help with your reliability.

                                        parachutesjP Offline
                                        parachutesjP Offline
                                        parachutesj
                                        wrote on last edited by
                                        #35

                                        @NeverDie that sounds promising. Is there a document/ discussion available on the details?

                                        NeverDieN 1 Reply Last reply
                                        0
                                        • parachutesjP parachutesj

                                          @NeverDie that sounds promising. Is there a document/ discussion available on the details?

                                          NeverDieN Offline
                                          NeverDieN Offline
                                          NeverDie
                                          Hero Member
                                          wrote on last edited by
                                          #36

                                          @parachutesj
                                          Not that I know of.

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


                                          20

                                          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