You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the device is off. if you send just a color command via json/mqtt such as follows, it will turn on the light to the specified color but the state that is returned is OFF, instead of ON. The same happens if you use the IR remote...
Further in this state, you can't turn it off. you first have to send an ON command and then an OFF command to turn the device off. This is due to the checking of m_state variable on lines 57 and 60 of arilux.cpp.
The text was updated successfully, but these errors were encountered:
alexschwantes
added a commit
to alexschwantes/Arilux_AL-LC0X
that referenced
this issue
Apr 21, 2017
* Removing unnecessary checks for state in setState(). Not completely necessary but may help in the future.
* Calling setColor now sets the state to be ON
* Re-ordered the flow of events in loop() so that sending MQTT response (handleCMD()) is done last.
Adding two new methods:
* setFadeToColor: sets the end color that the fade will fade to. This is so that the correct state can be sent to MQTT (this is the end state after the fade has completed).
* setFadeColor: Used to fade the color without updating the internal m_color variables that represent the color the fading will change to. This method also includes a similar fix to that in SamZorSec#21, so if the color is set with a transition from the off state, it will set the internal state to ON.
When the device is off. if you send just a color command via json/mqtt such as follows, it will turn on the light to the specified color but the state that is returned is OFF, instead of ON. The same happens if you use the IR remote...
Further in this state, you can't turn it off. you first have to send an ON command and then an OFF command to turn the device off. This is due to the checking of m_state variable on lines 57 and 60 of arilux.cpp.
The text was updated successfully, but these errors were encountered: