WebThingsIO / gpio-adapter

GPIO adapter add-on for WebThings Gateway
Mozilla Public License 2.0
5 stars 12 forks source link

Add momentary support #29

Closed mattalexhoward closed 4 years ago

mattalexhoward commented 5 years ago

As a user, I'd like to have a quick cycle of the GPIO pins for wider applications.

Ex: A garage door opener could be operated if there were support for a momentary switch.

dhylands commented 5 years ago

If you select "rising" (or falling depending on the input) then you'll detect a momentary input.

Perhaps a better request would be to have events generated on rising or falling edges.

Or perhaps you're looking for an output pulse?

There is a pulse adapter which can be used to generate pulses of arbitrary width.

mrstegeman commented 5 years ago

You'll want to combine the GPIO adapter with the pulse adapter.

For more details, see the discussion here.

mattalexhoward commented 5 years ago

Ah, I see. Thanks for the help. It may be more UX friendly to add the pulse option to the GPIO adapter as a check box or something. I'm not sure what the scope of this add-on is so please close this issue if this request does not fit well.

Thanks!

mrstegeman commented 4 years ago

Fixed by #42.