In WLED web UI I have macros #1 with the following options to call preset 1 and set brightness to 255:
PL=1&A=255
The issue is that brightness doesn’t change. Brightness saved in preset is also 255. If light is dimmed preset changes to 1 but brightness doesn’t switch to 255 and stays the same as before calling macros #1.
Is this a bug or feature? I’m using WLED version 0.9.0-b2 (2 weeks ago compiled in Arduino IDE from the github’s source).
When using the web / mobile WLED interface, if you run macro #1, does it function correctly?
If you select something other than preset #1, then select preset #1, does it set according to that preset?
If your HA call were to do something like this, would that resolve the problem: http://192.168.1.60/win&A=255&PL=1
I only ask because sometimes high WAF has nothing at all to doing it “the right way”, nor “understanding why it does not work”.
Hi @Apapra, the problem is that the PL=1 part of the marco is processed later that the A=255 part.
The position in the macro doesn’t matter. To solve this you need to
load the preset 1
set the brightness to 255
save it as preset 1 again
change the macro to load the preset only: PL=1
@Aircoookie: a “new feature” would be to interate through all commands in the order of apperance instead of only using indexOf() for knowing the existance of the command.