Trigger from switch on button while switch is on

Hey all –

Zwave switch: GE/Jasco 46201

I have a zwave motion sensor in a pantry and a zwave light switch (GE/Jasco 46201) that controls the light in there. Currently, I have automations to turn on the light and automatically when someone walks in and turns it off after some number of seconds if there is no motion.

Sometimes my wife goes in there for longer times to move things around and gets irritated that the light keeps going off.

I’d like to set it up so that if she double presses the light switch (or something else), it will stay on for a longer amount of time - say 30m or something.

I can’t figure out how to do this in an automation because the switch is already on when you press it the second time. I watched the zwave traffic when I press the on button, even though the switch is already on, it is actually sending wave command for “On”.

How can I trigger off the second press of the On button when the switch is already on?

Thanks for any info on how I can solve this!

That’s promising because you can create an automation to listen for that z-wave event. When triggered, it checks if the light has been on for at least a few seconds and then disables the auto-off feature (an input_boolean can be used to indicate when the auto-off should or should not do its job).

I do something similar for two bathrooms. When motion is detected, the light is turned on to a predetermined level (~65% just after sunset and ~15% after 23:30). If someone manually changes the brightness level, that serves as a signal they want to temporarily disable the auto-off feature (which automatically re-enables itself after 20 minutes). Alternately, if they turn on the bathroom fan, that also serves to disable the auto-off feature (because turning on the fan serves as a signal that they are either going to take a shower or use the toilet).

Thanks for the reply. Within the automation, what would the trigger be then? This is what I can’t figure out. What selections do I choose in the trigger section?

You said you “watched the z-wave traffic”. Where exactly were you watching this?

I assumed you were monitoring Z-Wave events using Developer Tools > Events > Listen for events.

Once you know which z-wave event you want to detect, the automation can use an Event Trigger to listen for it.

In the zwave Integration, when you click configure, it has an option at the bottom to see the zwave logs as they happen. I put 45 and click the tail button so it’s always showing me the last 45 lines of the wave log. Even when the switch is on, pressing the on button causes zwave traffic to go over the network. I just need to trigger off that but I don’t know how to do it in an automation.

Here is the part of the log that shows the press of the button when the switch is already on. You can see that old value is true and new value is true.

Do what I suggested above in order to identify the desired event’s details.

There aren’t any events that show up there for anything Zwave. I put * in the field so it shows everything and there is nothing from any light switches. I see events from my Eco Bee 4, but nothing from any wave light switches.

I went around and activated some switches while it was listening and nothing shows up.

I’m using the old implementation of the zwave that came with home assistant. I wonder if I should upgrade.

Without the ability to detect when the switch’s rocker button is pressed (for either on or off) I don’t see how you can implement the feature you want.