woozar / node-red-contrib-time-based-dimmer

MIT License
4 stars 4 forks source link

[Feature] 100% / 0% on short button clicks #25

Open DennisGaida opened 8 months ago

DennisGaida commented 8 months ago

I think it would be beneficial to add a 0% / 100% possibility for the 2-button-timer. When you click the start_command for longer than e.g. 200ms, then the increase/decrease happens, otherwise set to 100 and 0 percent.

Does this make sense? I have been playing around with a delay node, but I thought this would be a good addition to the dimmer as well.

"short press" = 100% / 0% "longer press" = start dimming up or down

woozar commented 5 months ago

sounds nice - just write the code and add a pull request