Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
psi-4ward opened this issue Jun 2, 2018 · 1 comment
Open

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

psi-4ward opened this issue Jun 2, 2018 · 1 comment

Comments

@psi-4ward
Copy link

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.

@psi-4ward psi-4ward changed the title Transition from "white" to rgb Transition from "white" to rgb, not from current color Jun 2, 2018
@jogibear9988
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants