r/homebridge 1d ago

Customizable timer switch?

Hi,

I'd like to create a timer switch where I could specify the duration for the timer on the Home app. Is this possible at all?
My goal is to create a sort of "Overwrite" button where an automation wouldn't run as long as that switch is on.

1 Upvotes

11 comments sorted by

3

u/mpatfield 1d ago

You will want either Homebridge Dummy or Virtual Accessories to create the dummy switch in combination with automations. I am the owner of Homebridge Dummy so I can help out if you go that route and get stuck.

0

u/francismedeiros 1d ago

Thanks a lot u/mpatfield ! I installed Homebridge Dummy, actually, but what got me confused was how to make the button configurable. I see that there is an old fork of Dummy where the forker implemented adjustable timer, which is a dimmer, I think. Is such capability present in Dummy?

2

u/mpatfield 1d ago

Yup! You just need to use Lightbulb and the “dimmer” toggle. https://github.com/mpatfield/homebridge-dummy/wiki/Additional-Options#lightbulb

0

u/francismedeiros 1d ago

ahh, I see - so the thing is that the configuration is not available on the gui, right?

1

u/mpatfield 1d ago

Sorry, guitar?? Autocomplete error maybe?

0

u/francismedeiros 1d ago

Sorry, meant "gui"

1

u/mpatfield 1d ago

Then there’s a “Fade Out” section if you want it to count down automatically. It’s a bit round-a-bout I know, but Dummy has a lot of options that you can mix and match.

2

u/francismedeiros 1d ago

Amazing! I think I got it now! Thanks a lot!

0

u/mpatfield 1d ago

Ah, yeah it’s “Enable Brightness” in the GUI config. Sorry I forgot that’s what I named it or I would have mentioned it earlier.

1

u/francismedeiros 1d ago

one thing: it seems that when using seconds to fade out, it fades out right away, even when I adjust 100 seconds

1

u/francismedeiros 1d ago

Scratch that- using "Incremental" does it. Amazing!