xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
3k stars 638 forks source link

mqtt brightness seems to be ignored #374

Closed xoseperez closed 6 years ago

xoseperez commented 6 years ago

Originally reported by: Crispin (Bitbucket: CrispinP, GitHub: CrispinP)


I am running 1.11.3 on Arilux AL_AC2 and have mqtt setup on an RGBW strip. If I publish home/lights/test/LED_TEST/channel/0/set I can see in telnet it receives the message and reduces red channel. The LEDs dim.

If I publish home/lights/test/LED_TEST/brightness/set I don't see the LEDs dim nor do I see any debug in telnet.

Should brightness reduce all channels? if I only have the white channel lit it does nothing there either.

Is brightness not meant to work on these?

xoseperez commented 6 years ago

Great!

xoseperez commented 6 years ago

Original comment by Crispin (Bitbucket: CrispinP, GitHub: CrispinP):


By design

xoseperez commented 6 years ago

Original comment by Crispin (Bitbucket: CrispinP, GitHub: CrispinP):


ok, this does indeed work as you say. I had use useColor off and was using individual channels.

Thanks, again, for the help.

xoseperez commented 6 years ago

Original comment by Crispin (Bitbucket: CrispinP, GitHub: CrispinP):


Let me go through it again tonight and see.

From memory though I have only the R channel lit up and it's not working for that. I can see in the telnet that it ignores it too.

I know I was messing around with the colourpicker so could have been that.

Will confirm.

xoseperez commented 6 years ago

Brightness only applies to color channels. The firmware makes an assumption here: the first 3 channels of a device with at least 3 channels is a color channel. That's true for the first 3 channels of an RGBW strip. But you also can disable this behavior by setting useColor to false, either in the terminal or via the web UI in the LIGHTS tab using the "Use colorpicker" toggle. Check you have this toggle to ON.