esp8266-fastled-iot-webserver icon indicating copy to clipboard operation
esp8266-fastled-iot-webserver copied to clipboard

Feature Request: Physical Button support

Open rossiniscarface opened this issue 5 years ago • 4 comments

Hi,

very nice project and feature set. Would it be possible to add some functions for physical buttons/switches. e.g.: long button press —> switch device on/off short button press —> change color double short button press —> change brightness.

I know everybody uses alexa and mqtt and what not. But i think for some people the possibility to switch a light on and off directly via button or other physical input is nice. Also it would allow some degree of indepentent control if the infrastructure not working (wifi down/smartphone dead/mqtt server down ...)

thanks

rossiniscarface avatar Jul 07 '20 20:07 rossiniscarface

found this here: https://github.com/Hotaman/esp8266-fastled-iot-webserver/commit/c797b23250f861cd97c7742d9bb2ffb2650ffe9b

bb-Ricardo avatar Dec 12 '20 11:12 bb-Ricardo

Still interested in this?

Short and long press seem doable. But not sure about brightness. I would think a potentiometer would way better suited.

bb-Ricardo avatar Jan 17 '21 22:01 bb-Ricardo

Still interested in this. I did just some suggestions, but i think a potentiometer is overkill. Looking at a lot of lamps there are very often somerhing like this: first tap on 25% brightness second 50% third 75% fourth 100% fifth off

Just on off would be ok for me too.

rossiniscarface avatar Jan 18 '21 17:01 rossiniscarface

This sounds great.

Following sugestion: Initial state: off 1st short press: 100% / on 2nd short press: 50% 3rd short press: 20% 4th short press: off

Long press: next pettern

What do you think?

bb-Ricardo avatar Jan 18 '21 18:01 bb-Ricardo