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. Vera UI Toggle to Debouncer

Vera UI Toggle to Debouncer

Scheduled Pinned Locked Moved Vera
6 Posts 2 Posters 2.5k 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.
  • jeylitesJ Offline
    jeylitesJ Offline
    jeylites
    wrote on last edited by
    #1

    hey guys,

    Is it possible to change the type of switch, from a toggle to a debouncer on Vera U1. The reason I'm asking is, I'm trying to control my 3 speed digital fan switch and I need to cycle through its function with a debouncer. And also I'm planing to use the same method to control my electric curtain's debouncer switch. An ON/OFF toggle wouldn't make sense for this application.

    BulldogLowellB 1 Reply Last reply
    0
    • jeylitesJ jeylites

      hey guys,

      Is it possible to change the type of switch, from a toggle to a debouncer on Vera U1. The reason I'm asking is, I'm trying to control my 3 speed digital fan switch and I need to cycle through its function with a debouncer. And also I'm planing to use the same method to control my electric curtain's debouncer switch. An ON/OFF toggle wouldn't make sense for this application.

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

      @jeylites

      I'm not sure of your nomenclature for a "debouncer"

      currently you have Binary (On/Off) 'switch' device type on Vera and you want to use what device type instead? you are looking for a four position switch OFF, 1, 2, and 3.

      take a look at this example on the Vera forum:

      1 Reply Last reply
      0
      • jeylitesJ Offline
        jeylitesJ Offline
        jeylites
        wrote on last edited by
        #3

        So on Vera , currently I have a Binary (On/Off) 'switch'. Slide left to turn OFF and right to turn ON. I want to change that to a denouncer so I don't have to slide back and forth to cycle through the functions. For the fan OFF, 1,2,3 is controlled with a single debouncer button. I will like to hardwire it to the Arduino Relay Actuator. As for my gate, open and close is controlled by a single debouncer switch.

        Essentialy, I will like to setup Vera to do a push to turn ON. Sort off.... pretty much a tac switch setup.

        1 Reply Last reply
        0
        • BulldogLowellB Offline
          BulldogLowellB Offline
          BulldogLowell
          Contest Winner
          wrote on last edited by
          #4

          @jeylites

          You might like to try to create a scene in Vera that takes your switch and turns if off when it gets triggered (by being turned on) and put in a few seconds delay. That would convert your binary toggle vera device to a "momentary" or pushbutton style of button, which I think is what you are trying to describe. Turn it on, it does its action when turned on, and then the scene turns it off.

          Very easy to do that way.

          Another approach would be to add a luup.variable_watch in your startup lua and a function that that will turn of the switch for you.

          Same dead dragon, two different swords.

          jeylitesJ 1 Reply Last reply
          0
          • BulldogLowellB BulldogLowell

            @jeylites

            You might like to try to create a scene in Vera that takes your switch and turns if off when it gets triggered (by being turned on) and put in a few seconds delay. That would convert your binary toggle vera device to a "momentary" or pushbutton style of button, which I think is what you are trying to describe. Turn it on, it does its action when turned on, and then the scene turns it off.

            Very easy to do that way.

            Another approach would be to add a luup.variable_watch in your startup lua and a function that that will turn of the switch for you.

            Same dead dragon, two different swords.

            jeylitesJ Offline
            jeylitesJ Offline
            jeylites
            wrote on last edited by
            #5

            @BulldogLowell

            I like your idea on both options but I think I'm going with the first one. Out of curiosity, how do you add luup.variable_watch? By changing the luup will that change it from a slide to a push, cosmetic wise?

            BulldogLowellB 1 Reply Last reply
            0
            • jeylitesJ jeylites

              @BulldogLowell

              I like your idea on both options but I think I'm going with the first one. Out of curiosity, how do you add luup.variable_watch? By changing the luup will that change it from a slide to a push, cosmetic wise?

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

              @jeylites

              In option 2 you would be adding a startup script on your Vera that uses the luup.variable_watch function to wait for the event and then run a lua function that turns off your switch.

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


              26

              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