-
Notifications
You must be signed in to change notification settings - Fork 291
API misbehavior #276
Comments
The diff is: # sets only main color, so the animation can be anything, but the main color is changed without affecting the current mode. * sets the main color AND sets mode to static mode (old mode is replaced, mode=FX_MODE_STATIC). |
Oh yeah, I see that I was definitly unclear what I meant. Sorry for that.
{
"mode": 2,
"ws2812fx_mode": 0,
"ws2812fx_mode_name": "Static",
"speed": 196,
"brightness": 196,
"color": [
0,
250,
212
]
} Result of {
"mode": 1,
"ws2812fx_mode": 0,
"ws2812fx_mode_name": "Static",
"speed": 196,
"brightness": 196,
"color": [
255,
0,
0
]
} Result of This is a missbehavior as far as I can tell from the pov of a generic API (I send one command and two things change) and from the docs, since this should only be the case when Again I apologise for being unclear as heck what my problem is. |
Ahh I see, McLighting/Arduino/McLighting/McLighting.ino Line 965 in 7a44a76
|
To make some Additions: This does not happen when setting the speed (neither via HTTP nor MQTT) No problem for reporting. Maybe I will contribute to this project too, if I can get my lasy butt to learn some proper C 😄 Greets |
Upon second thought, # is the only way one can turn on McLighting. There is=off but not on. We turn on by setting main values for RGB. @toblum am I right? |
Exactly. Turning off is esentially setting RGB values to black. So there is no real turning on/off, just setting the colors. |
So, I'm not quite sure if this is a bug, or I'm just not getting it.
I am currently building my smart home system and wanted to integrate an esp (nodemcu) with McLighting.
Currently I'm going with MQTT (mabe I'm going to switch to HTTP because of more detailed features)
In the WS API doc (wich should be the same as the MQTT) it is explained that the
#<hexrgb>
is setting a color and the*<hexrgb>
is setting the color AND turning all lamps onBut this does not match with the behavior I'm experiencing. Although I call
#<hexrgb>
my LED strip is turned on.So again: Am I interpreting this wrongly, or is this a misbehavior?
MfG / Greets
Malik
The text was updated successfully, but these errors were encountered: