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. Vera
  4. button problem

button problem

Scheduled Pinned Locked Moved Vera
16 Posts 4 Posters 5.4k Views 1 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.
  • ferpandoF Offline
    ferpandoF Offline
    ferpando
    Hero Member
    wrote on last edited by
    #1

    Hi,
    I have a couple of push buttons using the vlight in the sketch.
    The problem is that VERA restarts if I push a button too many times.
    I would like to limit the pushes the sensor is able to send to maybe 1 per second.
    It should send the first push immediately but if another push is detected then wait 1 second to send it.

    Would this too difficult to implement?
    Any clues on how to start?

    BulldogLowellB 1 Reply Last reply
    0
    • ferpandoF ferpando

      Hi,
      I have a couple of push buttons using the vlight in the sketch.
      The problem is that VERA restarts if I push a button too many times.
      I would like to limit the pushes the sensor is able to send to maybe 1 per second.
      It should send the first push immediately but if another push is detected then wait 1 second to send it.

      Would this too difficult to implement?
      Any clues on how to start?

      BulldogLowellB Offline
      BulldogLowellB Offline
      BulldogLowell
      Contest Winner
      wrote on last edited by
      #2

      @ferpando

      have you tried to change the debouncer interval to 1000ms?

      debouncer.interval(1000)
      
      1 Reply Last reply
      0
      • ferpandoF Offline
        ferpandoF Offline
        ferpando
        Hero Member
        wrote on last edited by
        #3

        I tried to rise it above 20 but it just stops working.

        BulldogLowellB 1 Reply Last reply
        0
        • ferpandoF ferpando

          I tried to rise it above 20 but it just stops working.

          BulldogLowellB Offline
          BulldogLowellB Offline
          BulldogLowell
          Contest Winner
          wrote on last edited by BulldogLowell
          #4

          @ferpando

          you are using "Door/Window & Pushbutton" sketch?

          try this:

          PushbuttonWithLockout.ino

          1 Reply Last reply
          0
          • ferpandoF Offline
            ferpandoF Offline
            ferpando
            Hero Member
            wrote on last edited by
            #5

            I'm using a multi binary sketch for 2 buttons.
            I'll take a look at yours.

            Could it be the vera plugin what's causing the restarts?

            BulldogLowellB 1 Reply Last reply
            0
            • ferpandoF ferpando

              I'm using a multi binary sketch for 2 buttons.
              I'll take a look at yours.

              Could it be the vera plugin what's causing the restarts?

              BulldogLowellB Offline
              BulldogLowellB Offline
              BulldogLowell
              Contest Winner
              wrote on last edited by
              #6

              @ferpando said:

              I'm using a multi binary sketch for 2 buttons.
              I'll take a look at yours.

              Could it be the vera plugin what's causing the restarts?

              I would look at the vera log while you are doing a button push.

              The two button sketch should be no problem. If you need help, post it and I can try my best.

              1 Reply Last reply
              0
              • ferpandoF Offline
                ferpandoF Offline
                ferpando
                Hero Member
                wrote on last edited by
                #7

                I'm having some problems with these buttons.
                They work but sometimes Vera just restarts.
                I'll try to loot at vera logs and see.

                Keep you posted.
                Thanks for the help

                1 Reply Last reply
                0
                • hekH Online
                  hekH Online
                  hek
                  Admin
                  wrote on last edited by
                  #8

                  Which Vera version are you using? Vera 2?

                  I doubt the MySensors plugin makes Vera restart unless it is very low on memory or overloaded with other work.

                  ferpandoF 1 Reply Last reply
                  0
                  • hekH hek

                    Which Vera version are you using? Vera 2?

                    I doubt the MySensors plugin makes Vera restart unless it is very low on memory or overloaded with other work.

                    ferpandoF Offline
                    ferpandoF Offline
                    ferpando
                    Hero Member
                    wrote on last edited by
                    #9

                    @hek
                    I currently have a vera lite running.
                    It never restarts but when it does is after I push a button, no action is fired, then I push again maybe 2-3 times and then I find Vera is restarting.
                    I still have no proof but I'll try to find something in the logs.

                    BulldogLowellB 1 Reply Last reply
                    0
                    • ferpandoF ferpando

                      @hek
                      I currently have a vera lite running.
                      It never restarts but when it does is after I push a button, no action is fired, then I push again maybe 2-3 times and then I find Vera is restarting.
                      I still have no proof but I'll try to find something in the logs.

                      BulldogLowellB Offline
                      BulldogLowellB Offline
                      BulldogLowell
                      Contest Winner
                      wrote on last edited by
                      #10

                      @ferpando said:

                      @hek
                      I currently have a vera lite running.
                      It never restarts but when it does is after I push a button, no action is fired, then I push again maybe 2-3 times and then I find Vera is restarting.
                      I still have no proof but I'll try to find something in the logs.

                      did the lockout help?

                      I agree with Hek, it seems like there must be something up on the vera side.

                      ferpandoF 1 Reply Last reply
                      0
                      • BulldogLowellB BulldogLowell

                        @ferpando said:

                        @hek
                        I currently have a vera lite running.
                        It never restarts but when it does is after I push a button, no action is fired, then I push again maybe 2-3 times and then I find Vera is restarting.
                        I still have no proof but I'll try to find something in the logs.

                        did the lockout help?

                        I agree with Hek, it seems like there must be something up on the vera side.

                        ferpandoF Offline
                        ferpandoF Offline
                        ferpando
                        Hero Member
                        wrote on last edited by
                        #11

                        @BulldogLowell
                        Didn't have the chance to test it yet.
                        I also have an RFXcom device attached to vera. Maybe they don't like eachother? Anyone has one?

                        1 Reply Last reply
                        0
                        • korttomaK Offline
                          korttomaK Offline
                          korttoma
                          Hero Member
                          wrote on last edited by
                          #12

                          I do have both the mysensors gateway and a RFXtrx433 attachced to a veralite. My system is stable now but I have allso had issues with memory and have uninstalled everything I absolutely did not need and simplyfied everything I could. If your vera is acting strange I would check my memory status.

                          • Tomas
                          ferpandoF 1 Reply Last reply
                          0
                          • korttomaK korttoma

                            I do have both the mysensors gateway and a RFXtrx433 attachced to a veralite. My system is stable now but I have allso had issues with memory and have uninstalled everything I absolutely did not need and simplyfied everything I could. If your vera is acting strange I would check my memory status.

                            ferpandoF Offline
                            ferpandoF Offline
                            ferpando
                            Hero Member
                            wrote on last edited by
                            #13

                            @korttoma
                            could you post your memory usage for comparison?

                            1 Reply Last reply
                            0
                            • korttomaK Offline
                              korttomaK Offline
                              korttoma
                              Hero Member
                              wrote on last edited by
                              #14

                              memoryTotal 62480
                              memoryFree 8360
                              memoryBuffers 5652
                              memoryCached 17336
                              memoryUsed 54120
                              memoryAvailable 25696

                              I began to have issues once memoryAvailable is less than 20000.

                              • Tomas
                              ferpandoF 1 Reply Last reply
                              0
                              • korttomaK korttoma

                                memoryTotal 62480
                                memoryFree 8360
                                memoryBuffers 5652
                                memoryCached 17336
                                memoryUsed 54120
                                memoryAvailable 25696

                                I began to have issues once memoryAvailable is less than 20000.

                                ferpandoF Offline
                                ferpandoF Offline
                                ferpando
                                Hero Member
                                wrote on last edited by ferpando
                                #15

                                @korttoma
                                this is what I currently have on my vera lite:

                                                total         used         free       shared      buffers
                                    Mem:        62480        55376         7104            0         6304
                                   Swap:            0            0            0
                                  Total:        62480        55376         7104
                                

                                how do you get the 'memoryAvailable'?

                                1 Reply Last reply
                                0
                                • korttomaK Offline
                                  korttomaK Offline
                                  korttoma
                                  Hero Member
                                  wrote on last edited by
                                  #16

                                  I have the "System Monitor" plugin installed so I get it as a Variable in the advanced tab.

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


                                  19

                                  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