Welcome to Animus Talk

This is where users of Animus Heart can share ideas,
solve problems and inspire fellow enthusiasts.

Animus Heart?

Automation tip for the HubQuiz Nexa Buttons

I thought I could share an example of how to use the Nexa MEBT-1706 buttons (also known as HubQuiz buzzers).

These buttons have only one big surface for pushing and when you push it, it will send an ON signal and after a few seconds it will send an OFF signal. This can cause problems if you wish to make the button to turn on a light on the first button press and then turn off on the second button press. Here is one solution for this.

Involved physical devices:

  1. The button - “HubQuiz knappen
  2. The light - “Diamantlampan


  1. Create a virtual On/Off device. This device will be our condition which will help us know when to actually turn off the light. Let’s call it “V.L. Status

  2. Create the first Automation - "Turn On"
    :: WHEN the button is pressed ON, ANDV.L. Status” is OFF, THEN it’s a go to turn “Diamantlampan” ON. Easy so far. :exclamation:However, now we need to block this state so that the off-signal that is about to come from the button won’t trigger our “Turn Off”-automation.:exclamation: The trick here is to wait out the OFF signal. So we continue by adding a pause of around 5 seconds (3s should work as well) and then switch the virtual device state to ON again. (You will see in step 3 why all this)

  3. Create the second Automation - "Turn OFF"
    Remember the OFF-signal is always sent after an ON-signal from this smart button. So we actually Always begin to trigger our ON and OFF automations (both). The V.L. Status decides which one goes through all the way.
    :: WHEN the button sends OFF, ANDV.L Status” is set to ON, THEN it’s ok to switch the light to OFF. Then we need to “put back” the state of the “V.L Status” to Off, so that the On-automation will trigger next time we push the button. And so it goes on forever and ever…

There might be other, and maybe better, alternatives. This is one I came up with and tested. It works just fine. :slight_smile:

I don’t think you should wait for the OFF signal, you can just wait for the second ON signal and compare that to the vitual button. I have done this to other similar buttons that allways toggles.
The downside is if the light can be turned on/off from another source and make the virutal state and the real state unsynced.

I “solved” that by resetting the lights and the virtual devices every night.

All the best!

Ok, so here is my version of toggle that does not use a virtual button and has only one 1 second delay. Since the AH process automations in the list from top to bottom i do it like this:
First automation:

Second automation:

The only downside to this is the 1 second delay for switch off but you need this for it to skip the second automation when you want to switch off.