Open nbackous opened 2 years ago
Thanks for the bug report @nbackous. To set expectations, if this is a bug in the TP-Link adapter add-on then I'm afraid this add-on is currently lacking a module owner so we're looking for contributors to maintain it.
I have set up several rules for my TP-Link / Kasa multicolor bulbs (KL130P2).
ex:
Rule 1: turn Bulb A on at sunset
Rule 2: turn Bulb A off at 12:00
Rule 3: turn Bulb A on if Button 1 is pressed
Rule 4: turn Bulb A off if button 1 is long-presssed
Rule 5: At 05:00 Set Bulb A to 2500k
Rule 6: at 23:00 Set Bulb A to Red color
The color change at 23:00 while the light is already on works fine, since the bulb was already on at the time. But it appears the 05:00 color change command isn't broadcast at 05:00 because the light is off.
This is easily reproduced by using the Webthings interface to attempt changing colors or changing between a Color and a Temperature while the light is turned off. The UI will update with the new Color/Temperature momentarily, but will revert to the original color almost immediately. If the light is on at the time of the Color/Temperature change, it works as expected.
I don't have this problem with non TP-Link/Kasa multi color/temperature bulbs.
For clarity, the bulb is receiving power, it's only "off" because its On/Off property is set to Off by Webthings. It is my assumption that the bulb should be able to receive color/temperature/brightness value changes while in this state and would reflect those values the next time it receives a command to turn on.