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. Announcements
  3. 💬 Door, Window and Push-button Sensor

💬 Door, Window and Push-button Sensor

Scheduled Pinned Locked Moved Announcements
110 Posts 36 Posters 22.8k Views 32 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.
  • gohanG gohan

    did you use those with 3 pins?

    Nca78N Offline
    Nca78N Offline
    Nca78
    Hardware Contributor
    wrote on last edited by Nca78
    #69

    @gohan said in 💬 Door, Window and Push-button Sensor:

    did you use those with 3 pins?

    I use them, with one wire connected to each interrupt pin (I only activate the one that's not connected) and they work fine.
    Else you can cheat with a basic reed switch, you just need an additional magnet on the other side of your switch that's weaker than the door magnet, and turn your reed 180°.
    You make the weak magnet close the reed when door is opened and far from the strong door magnet. When you close the door the strong magnet will open the reed switch.

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

      given the low price, I think it is not worth the extra work to "mod" the normal reed switches :D

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

        I'd like to go even simpler:

        • Window is closed - magnet pulls reed switch so that no power flows to the NRF5.
        • Window is opened - The NRF5 now gets power, boots, connects to the MySensors network, and sends a "window is open" message every 10 minutes.
        • Window is closed again - NRF5 loses power.

        Seems to me that this would be quite energy efficient?

        Perhaps build it into this case:
        https://www.aliexpress.com/item/Home-Burglar-Alarm-Wireless-Home-Security-Door-Window-Entry-Burglar-Alarm-System-Magnetic-Sensor-drop-shipping/32876055564.html
        (runs on 2 AAA batteries)

        1 Reply Last reply
        0
        • scalzS Offline
          scalzS Offline
          scalz
          Hardware Contributor
          wrote on last edited by
          #72

          @alowhum
          I would say this technique is efficient depending on the usecase.
          For example, for basic ambiant sensors not needing any security why not. On other side, for main doors which could benefit security, I prefer to use hearbeat with less interval time, so it's possible to know if the sensor is offline. else controller wouldn't know this if the sensor only update when door state change.

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

            Totally true.

            I was wondering what the state of Attiny85 support is. For absolute beginners (in workshops) it might be easier to connect the radio to a digispark.

            // cancel that. It could never support encryption.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Pavel Polititsky
              wrote on last edited by Pavel Polititsky
              #74

              I have some troubles with this device.
              Sometimes it does not respond to the first click, sometimes it remains switched on after first click until second click

              When I press the button once - I see the LED on my gateway blinks always 3 times
              1 RX TX
              2 RX ERR
              3 RX ERR

              Device powered with CR2032 and running on 1Mhz@1.8V (internal clock)
              Button input pulled to GND with resistor 47K and waking up if VCC connected through the button
              Also have a 10uF tantal capacitor on power supply pins +several 0,1uF ceramic capacitors

              Actually I dont know how to debug/log my gateway messages on Linux

              Node code:

              
              
              // Enable debug prints to serial monitor
              //#define MY_DEBUG
              
              // Enable and select radio type attached
              #define MY_RADIO_NRF24
              //#define MY_RADIO_NRF5_ESB
              //#define MY_RADIO_RFM69
              //#define MY_RADIO_RFM95
              #define MY_RF24_PA_LEVEL RF24_PA_HIGH
              
              #include <MySensors.h>
              
              #define SKETCH_NAME "Door button"
              #define SKETCH_MAJOR_VER "1"
              #define SKETCH_MINOR_VER "0"
              
              #define PRIMARY_CHILD_ID 3
              #define PRIMARY_BUTTON_PIN 2   // Arduino Digital I/O pin for button/reed switch
              //#define BATTERY_SENSE_PIN A6  // select the input pin for the battery sense point
              int oldBatteryPcnt = 0;
              
              // Change to V_LIGHT if you use S_LIGHT in presentation below
              MyMessage msg(PRIMARY_CHILD_ID, V_TRIPPED);
              
              void setup()
              {
                // Setup the buttons
                pinMode(PRIMARY_BUTTON_PIN, INPUT);
                //	pinMode(SECONDARY_BUTTON_PIN, INPUT_PULLUP);
              
              }
              
              void presentation()
              {
                // Send the sketch version information to the gateway and Controller
                sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER);
                present(PRIMARY_CHILD_ID, S_DOOR);
              }
              
              // Loop will iterate on changes on the BUTTON_PINs
              void loop()
              {
                uint8_t value;
                static uint8_t sentValue = 2;
              
                // Short delay to allow buttons to properly settle
                sleep(5);
              
                value = digitalRead(PRIMARY_BUTTON_PIN);
              
                if (value != sentValue) {
                  // Value has changed from last transmission, send the updated value
                  send(msg.set(value == HIGH));
                  sentValue = value;
                }
              
                // Sleep until something happens with the sensor
                sleep(PRIMARY_BUTTON_PIN - 2, CHANGE, 0);
              }
              

              Serial data, one line = one button click

              4;3;1;0;16;0
              4;3;1;0;16;1
              4;3;1;0;16;0
              4;3;1;0;16;0
              4;3;1;0;16;0
              4;3;1;0;16;1
              4;3;1;0;16;1
              4;3;1;0;16;0
              4;3;1;0;16;0
              4;3;1;0;16;0
              4;3;1;0;16;0
              4;3;1;0;16;1
              4;3;1;0;16;1
              4;3;1;0;16;1
              4;3;1;0;16;1
              4;3;1;0;16;1
              4;3;1;0;16;0
              4;3;1;0;16;0
              4;3;1;0;16;0
              4;3;1;0;16;1
              4;3;1;0;16;0
              4;3;1;0;16;1
              
              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #75

                Uncomment the my_debug and you should see all the debug info.

                P 1 Reply Last reply
                0
                • gohanG gohan

                  Uncomment the my_debug and you should see all the debug info.

                  P Offline
                  P Offline
                  Pavel Polititsky
                  wrote on last edited by
                  #76

                  @gohan I cant to set correct speed for the serial port because used 1mhz@int osc
                  I tried all options...

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

                    You can do it on the gateway at least

                    P 1 Reply Last reply
                    0
                    • gohanG gohan

                      You can do it on the gateway at least

                      P Offline
                      P Offline
                      Pavel Polititsky
                      wrote on last edited by Pavel Polititsky
                      #78

                      @gohan already done but not possible to see anything
                      Every line was shifted to the right side and finally no space left.
                      I use minicom app for monitoring serial port

                      ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
                                                                                         ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0;255;3;0;9;3726496 TSF:MSG:READ0:0
                                                                                                                                                            1;3;1;0;16;0
                                                                                                                                                                        ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0;255;3;0;9;3727488 TSF:MSG:READ0:0
                                                                                                                                                                                                                                           1;3;1;0;16;0
                                                                                                                                                                                                                                                       ,1-1-0,s=3,c=1,t=16,pt=1,l=1,sg=0;255;3;0;9;3728475 TSF:MSG:READ0:0
                                                                                                                                                                                                                                                                                                                          1;3;1;0;16;0
                                                                                                                                                                                                                                                                                                                                      ,1-1-0,s=3,c1
                                                                                                                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                                                                                                                  0
                                                                                                                                                                                                                                                                                                                                                  0
                                                                                                                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                                                                                                                  1
                                                                                                                                                                                                                                                                                                                                                  =
                      
                      

                      Actually i need to make 100-1000 clicks to catch a fail moment
                      Here is working fine

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

                        Can't you just use the arduino ide serial monitor?

                        P 1 Reply Last reply
                        0
                        • gohanG gohan

                          Can't you just use the arduino ide serial monitor?

                          P Offline
                          P Offline
                          Pavel Polititsky
                          wrote on last edited by
                          #80
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • P Offline
                            P Offline
                            Pavel Polititsky
                            wrote on last edited by
                            #81
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              Pavel Polititsky
                              wrote on last edited by Pavel Polititsky
                              #82

                              I was build a new button node with new arduino (8mhz) and new nrf24, then update to 2.3.0 gateway and all other devices
                              But now have a worse result than before

                              16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.3.0
                              26 TSM:INIT
                              28 TSF:WUR:MS=0
                              34 TSM:INIT:TSP OK
                              36 TSF:SID:OK,ID=11
                              38 TSM:FPAR
                              75 TSF:MSG:SEND,11-11-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                              403 TSF:MSG:READ,0-0-11,s=255,c=3,t=8,pt=1,l=1,sg=0:0
                              409 TSF:MSG:FPAR OK,ID=0,D=1
                              2084 TSM:FPAR:OK
                              2084 TSM:ID
                              2086 TSM:ID:OK
                              2088 TSM:UPL
                              2093 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
                              2099 TSF:MSG:READ,0-0-11,s=255,c=3,t=25,pt=1,l=1,sg=0:1
                              2105 TSF:MSG:PONG RECV,HP=1
                              2109 TSM:UPL:OK
                              2111 TSM:READY:ID=11,PAR=0,DIS=1
                              2129 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
                              2138 TSF:MSG:READ,0-0-11,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                              2168 TSF:MSG:SEND,11-11-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.0
                              2179 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
                              2187 TSF:MSG:READ,0-0-11,s=255,c=3,t=6,pt=0,l=1,sg=0:M
                              2220 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:Door button
                              2230 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.5
                              2240 TSF:MSG:SEND,11-11-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
                              2246 MCO:REG:REQ
                              2252 TSF:MSG:SEND,11-11-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
                              2260 TSF:MSG:READ,0-0-11,s=255,c=3,t=27,pt=1,l=1,sg=0:1
                              2267 MCO:PIM:NODE REG=1
                              2269 MCO:BGN:STP
                              2271 MCO:BGN:INIT OK,TSP=1
                              2275 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              2279 TSF:TDI:TSL
                              2281 MCO:SLP:WUP=-1
                              2283 TSF:TRI:TSB
                              2287 TSF:MSG:SEND,11-11-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:0
                              2295 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              2299 TSF:TDI:TSL
                              

                              the pressing button twice

                              30343 MCO:SLP:WUP=0
                              30345 TSF:TRI:TSB
                              30347 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              30353 TSF:TDI:TSL
                              30355 MCO:SLP:WUP=-1
                              30357 TSF:TRI:TSB
                              32043 !TSF:MSG:SEND,11-11-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=3,st=NACK:1
                              32049 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              32055 TSF:TDI:TSL
                              32057 MCO:SLP:WUP=0
                              32059 TSF:TRI:TSB
                              32061 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              32067 TSF:TDI:TSL
                              32069 MCO:SLP:WUP=-1
                              32071 TSF:TRI:TSB
                              32073 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              32079 TSF:TDI:TSL
                              32081 MCO:SLP:WUP=0
                              32083 TSF:TRI:TSB
                              32086 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              32092 TSF:TDI:TSL
                              32094 MCO:SLP:WUP=-1
                              32096 TSF:TRI:TSB
                              33779 !TSF:MSG:SEND,11-11-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=4,st=NACK:0
                              33787 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              33794 TSF:TDI:TSL
                              

                              But no incoming messages at the gateway. Only several random messages coming to controller from one hundred button clicks
                              Sometimes after fast series of clicks I get this:

                              23179 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23183 !MCO:SLP:TNR
                              23185 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23191 !MCO:SLP:TNR
                              23218 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23222 !MCO:SLP:TNR
                              23224 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23230 !MCO:SLP:TNR
                              23257 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23261 !MCO:SLP:TNR
                              23263 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23269 !MCO:SLP:TNR
                              23296 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23300 !MCO:SLP:TNR
                              23302 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23308 !MCO:SLP:TNR
                              23336 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23341 !MCO:SLP:TNR
                              23343 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23349 !MCO:SLP:TNR
                              23377 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23382 !MCO:SLP:TNR
                              23384 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23390 !MCO:SLP:TNR
                              23418 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23422 !MCO:SLP:TNR
                              23425 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23431 !MCO:SLP:TNR
                              23459 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23463 !MCO:SLP:TNR
                              23465 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23472 !MCO:SLP:TNR
                              23500 !TSF:SND:TNR
                              23502 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23506 !MCO:SLP:TNR
                              23508 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23515 !MCO:SLP:TNR
                              23543 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23547 !MCO:SLP:TNR
                              23549 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23556 !MCO:SLP:TNR
                              23584 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23588 !MCO:SLP:TNR
                              23590 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23597 !MCO:SLP:TNR
                              23625 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23629 !MCO:SLP:TNR
                              23631 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23638 !MCO:SLP:TNR
                              23666 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23670 !MCO:SLP:TNR
                              23672 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23678 !MCO:SLP:TNR
                              23707 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23711 !MCO:SLP:TNR
                              23713 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23719 !MCO:SLP:TNR
                              23746 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23750 !MCO:SLP:TNR
                              23752 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23758 !MCO:SLP:TNR
                              23785 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23789 !MCO:SLP:TNR
                              23791 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23797 !MCO:SLP:TNR
                              23824 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23828 !MCO:SLP:TNR
                              23830 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23836 !MCO:SLP:TNR
                              23863 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23867 !MCO:SLP:TNR
                              23869 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23875 !MCO:SLP:TNR
                              23902 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23906 !MCO:SLP:TNR
                              23908 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23914 !MCO:SLP:TNR
                              23941 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23945 !MCO:SLP:TNR
                              23947 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23953 !MCO:SLP:TNR
                              23980 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              23984 !MCO:SLP:TNR
                              23986 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              23992 !MCO:SLP:TNR
                              24014 TSF:MSG:READ,0-0-11,s=255,c=3,t=8,pt=1,l=1,sg=0:0
                              24020 TSF:MSG:FPAR OK,ID=0,D=1
                              24025 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24029 !MCO:SLP:TNR
                              24031 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24037 !MCO:SLP:TNR
                              24064 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24068 !MCO:SLP:TNR
                              24070 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24076 !MCO:SLP:TNR
                              24104 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24109 !MCO:SLP:TNR
                              24111 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24117 !MCO:SLP:TNR
                              24145 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24150 !MCO:SLP:TNR
                              24152 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24158 !MCO:SLP:TNR
                              24186 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24190 !MCO:SLP:TNR
                              24193 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24199 !MCO:SLP:TNR
                              24227 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24231 !MCO:SLP:TNR
                              24233 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24240 !MCO:SLP:TNR
                              24268 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24272 !MCO:SLP:TNR
                              24274 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24281 !MCO:SLP:TNR
                              24309 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24313 !MCO:SLP:TNR
                              24315 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24322 !MCO:SLP:TNR
                              24350 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24354 !MCO:SLP:TNR
                              24356 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24363 !MCO:SLP:TNR
                              24391 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24395 !MCO:SLP:TNR
                              24397 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24403 !MCO:SLP:TNR
                              24432 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24436 !MCO:SLP:TNR
                              24438 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24444 !MCO:SLP:TNR
                              24471 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24475 !MCO:SLP:TNR
                              24477 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24483 !MCO:SLP:TNR
                              24510 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24514 !MCO:SLP:TNR
                              24516 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24522 !MCO:SLP:TNR
                              24549 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24553 !MCO:SLP:TNR
                              24555 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24561 !MCO:SLP:TNR
                              24588 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24592 !MCO:SLP:TNR
                              24594 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24600 !MCO:SLP:TNR
                              24627 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24631 !MCO:SLP:TNR
                              24633 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24639 !MCO:SLP:TNR
                              24666 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24670 !MCO:SLP:TNR
                              24672 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24678 !MCO:SLP:TNR
                              24705 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24709 !MCO:SLP:TNR
                              24711 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24717 !MCO:SLP:TNR
                              24745 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24750 !MCO:SLP:TNR
                              24752 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24758 !MCO:SLP:TNR
                              24786 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24791 !MCO:SLP:TNR
                              24793 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24799 !MCO:SLP:TNR
                              24827 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24832 !MCO:SLP:TNR
                              24834 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24840 !MCO:SLP:TNR
                              24868 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24872 !MCO:SLP:TNR
                              24875 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24881 !MCO:SLP:TNR
                              24909 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24913 !MCO:SLP:TNR
                              24915 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24922 !MCO:SLP:TNR
                              24950 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24954 !MCO:SLP:TNR
                              24956 MCO:SLP:MS=25,SMS=0,I1=255,M1=255,I2=255,M2=255
                              24963 !MCO:SLP:TNR
                              24991 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                              24995 !MCO:SLP:TNR
                              24997 MCO:SLP:MS=25,
                              

                              Then it continue works as before

                              Actually I have problems only with fu@ing button, most simplest device. Several month I can't to start use it.
                              All other devices are working properly even on 2.3.0 ver. :stuck_out_tongue_winking_eye:

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

                                Have you tried with a debouce? Just in case...

                                P 2 Replies Last reply
                                0
                                • gohanG gohan

                                  Have you tried with a debouce? Just in case...

                                  P Offline
                                  P Offline
                                  Pavel Polititsky
                                  wrote on last edited by
                                  #84
                                  This post is deleted!
                                  1 Reply Last reply
                                  0
                                  • gohanG gohan

                                    Have you tried with a debouce? Just in case...

                                    P Offline
                                    P Offline
                                    Pavel Polititsky
                                    wrote on last edited by
                                    #85

                                    @gohan the default sketch with debounce library works better, but now i see my primary problem.
                                    Occasionally I have an ACK errors

                                    4231 TSF:MSG:SEND,21-21-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0
                                    4239 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                                    4245 TSF:TDI:TSL
                                    4247 MCO:SLP:WUP=0
                                    4249 TSF:TRI:TSB
                                    4290 !TSF:MSG:SEND,21-21-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=NACK:1
                                    4298 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                                    4302 TSF:TDI:TSL
                                    4304 MCO:SLP:WUP=0
                                    4306 TSF:TRI:TSB
                                    4313 TSF:MSG:SEND,21-21-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=1,st=OK:0
                                    4321 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
                                    

                                    I tried to icrease the time ack on my controller - it does not help
                                    Ithink that I need to ckeck ack state on the node and send the message again, but have no idea how to do

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

                                      you are at the limit of the radio range I'd say so randomly it looses a message, so you need to either increase power or get a better antenna (I hope you aren't using any buck/boost converter as power supply)

                                      P 1 Reply Last reply
                                      0
                                      • gohanG gohan

                                        you are at the limit of the radio range I'd say so randomly it looses a message, so you need to either increase power or get a better antenna (I hope you aren't using any buck/boost converter as power supply)

                                        P Offline
                                        P Offline
                                        Pavel Polititsky
                                        wrote on last edited by
                                        #87

                                        @gohan how you know?
                                        Id 21 from range 0..255. Are you sure that is limit?

                                        Same with any different IDs, I tried sending message 3 times, this guarantees delivery of payload, but it using too much power

                                        Now I use power supply with 1117

                                        But my other nodes powered by CR2032 with boost 0.8-3.3V dc/dc with inductor coil on the NRF24 supply pin without any troubles

                                        Nca78N 1 Reply Last reply
                                        0
                                        • P Pavel Polititsky

                                          @gohan how you know?
                                          Id 21 from range 0..255. Are you sure that is limit?

                                          Same with any different IDs, I tried sending message 3 times, this guarantees delivery of payload, but it using too much power

                                          Now I use power supply with 1117

                                          But my other nodes powered by CR2032 with boost 0.8-3.3V dc/dc with inductor coil on the NRF24 supply pin without any troubles

                                          Nca78N Offline
                                          Nca78N Offline
                                          Nca78
                                          Hardware Contributor
                                          wrote on last edited by
                                          #88

                                          @pavel-polititsky said in 💬 Door, Window and Push-button Sensor:

                                          @gohan how you know?
                                          Id 21 from range 0..255. Are you sure that is limit?

                                          He means radio range (distance) not ID of node ;)

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


                                          23

                                          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