Hello. I have MagicHome Wifi LED controller RGBW. I installed WI-FI LED binding. Everything works well, but sometimes strip changing color it self without any command. In the logs there are no commands to change the color. It just appears that the color has changed. And the color value is very strange.
In real life this is a big problem. Let me explain : When the LED-strip OFF and her color changing then it turns on, even if the channel “power” is OFF.
Correctly noted, this is the result of the rule. But this was done in order to track the status of the strip in BasicUI. Without this rule, the strip simply lights up, and in BasicUI, the strip state is OFF. If the strip changes any state (color, brightness, white), it immediately turns on, and this is how I understood its normal operation.
The problem is that the color changes itself.
openHAB status not updating, which you’ve masked with a rule (I’m assuming the WiFi LED binding should be updating the status correctly, but I don’t use it…)
EDIT: I’ve updated the tags on this thread to reflect the WiFi LED binding aspect of this issue.
Yes you are right. I think the problem with updating the status is related to the specifics of the control channels. The “power” channel has values (ON/OFF) and the “color” channel has values (HSB-value or ON/OFF). See the screen below :
I can’t turn off the light and leave the house now, because the LED-strip turns on by itself Now the value of the highlight color has changed to these values.
You are sending it a command ON. Whatever else may or may not happen, you are making sure your LED is turned on. Don’t do that if you don’t want it on.
If you’re trying to update something for your UI, update it. Use postUpdate, not sendCommand.
I wrote this rule only because when changing the color, brightness, or whiteness the strip turns on (without any rules). When changing the “color” channel to ON or HSV-value ( …,…,…), the “power” channel remains in the OFF state. You can check it yourself if you have LED binding and a controller. I think this is due to the fact that these are different channels and they are not connected in any way. They simply duplicate the ON/OFF actions. I will follow your advice and disable the rule or replace it with postUpdate. Let’s see what happens.
You should definitely follow the advice of @rossko57 and use postUpdate for your rule - all you actually want to do in your rule is update your UI, not send a second command to your device.
However, I don’t think that will fix the issue at hand. As you’ve described, even without the rule, your LED strip will turn on when its colour channel receives a new colour value. And there is something mysterious send a slightly different but still new colour to your device.
Thanks. I’ll try to flash Tasmota one of my controllers. From your table, I have an LC02 device. I will look at the difference in work and let you know.