esp-mqtt-rgb-led icon indicating copy to clipboard operation
esp-mqtt-rgb-led copied to clipboard

Add pulse mode

Open r41d opened this issue 8 years ago • 5 comments

Pulse mode transitions forth and back between black and the current color. Looking for remarks before possibly adapting it for the other 2 sketches.

r41d avatar Aug 31 '17 00:08 r41d

Can you clarify what exactly the pulse mode does? If it's just toggling between the already set color and black, I think you could achieve the same thing by using the existing flash effect and uncommenting this line. I'm all for adding more effects, I just want to make sure that they make sense.

corbanmailloux avatar Dec 13 '17 03:12 corbanmailloux

the difference between this pulse and the flash effect seems to be that the flash only flashes a specified amount of times while this pulse would keep on flashing until stopped.

This could be implemented in the flash effect using 0 as flash length or by adding another option to start it indefinitely. I'm not sure if and how you could pass effect parameters in HA however.

depuits avatar Dec 13 '17 11:12 depuits

Flash does 0-255-0-255-0 in a specified interval Pulse does 0-1-2-3-4-5-...-255-254-253-252-...-0

r41d avatar Dec 17 '17 15:12 r41d

So do we also need a flash effect that pulses indefinitely?

depuits avatar Dec 17 '17 16:12 depuits

TODO: adapt to the new unified sketch

r41d avatar Aug 08 '18 14:08 r41d