soef / ioBroker.wifilight

WiFi Light for ioBroker
MIT License
9 stars 8 forks source link

Transition from "white" to rgb, not from current color #20

Open psi-4ward opened 6 years ago

psi-4ward commented 6 years ago

I've some trouble to understand the color transitions:

const ctrl = "wifilight.0.192_168_178_37";
function rand(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}
function setRand() {
    const cmd =  `r: ${rand(0,100)}, g: ${rand(0,100)}, b: ${rand(0,100)}, transition: 3`;
    setState(ctrl + '.command', cmd)
}
setInterval(setRand, 3*1000);

on every trigger the color switches to white and transitions to the rgb value. I would expect to have the transition from the current color.

jogibear9988 commented 5 years ago

This issue was moved to iobroker-community-adapters/ioBroker.wifilight-community#5