Button controller, toggle options

I have a few simple automations in RM, but I am not a Hubitat guru by any stretch.

I recently picked up a couple Sengled Zigbee buttons, and installed the buttong controller app, and for the most part, I am completely happy.

The one thing I would like to add is the ability to have the 'toggle on' occur with zero delay, and the 'toggle off' give me a ten second delay to grab things and exit the room.

I only see one 'delay' box for toggle, is there a way to tie a delay to one direction but not the other?

As I said, I am overall happy, both with the buttons (I bought three) and the app.

Cheers.

Why not use distinct On/Off commands instead of Toggle? That would be an easy way to add the delay to the Off action.

Toggle simply flips an A/B state from one to the other, so there's not really "toggle A" and "toggle B" per se - it's just "toggle".

3 Likes

Building on @hydro311’s suggestion, here is an example of a Button Controller that should work as desired.

5 Likes

Might want to make the delay cancellable and cancel delayed actions when the rule is activated. Otherwise, you may get the light turned off if you decide to turn it back on after turning it off. Please correct me if I’m wrong.

2 Likes

First, thank you for the response, I like the community here.

There are three actions available on that particular button, pushed, held, double tap. I already have actions dedicated to 'held' and 'double tap', So I guess I have to run a RM for pushed. I was just wondering if there were possible options in the 'toggle' action. I am using 'held' for a night light mode, 10% on, double tap is 100% on, then toggle would turn it off, or, normally I turn it on to just 40%.

So day to day toggling is just "on at 40%" or "off". That is the base use case. The dim mode is if I need to get up in the middle of the night, I just want 10%, and the other case is when I am cleaning or doing some other work in the room and I want it cranked to 100.

Thank you for the reply.

So I can just drop typical rule machine actions in there to run. I wasn't certain, as I said, this is my first encounter with the button app. It was easy to get the initial install and actions set up, but then once I used it a couple days, I started thinking that a delay on off would be nice.

Thanks again.

1 Like

Thanks all, I may look at the cancellable as per Jeff, but this is working.

I always wondered if 'Dim 0' was off or not, but without the explicit 'Off' I was getting occasional 'on' failures. It is all working now.

1 Like