-
Notifications
You must be signed in to change notification settings - Fork 43
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
[DimmerLight] LIGHT VAR io doesn't switch off #528
Comments
SAme problem. Can be turned on. but to turn it off, it is necessary to put manually 100% to 0% in the menu off the light. |
Hi @lukyer, digging into Light.ts I found you add this early return that looks related to our problem. Do you think there is something going on here ? protected async setOn(value) {
if (this.brightness !== undefined) { // when light has brightness control, we do not set on to avoid glitches with gradual lightning up
return
}
const action = await this.executeCommands(this.getOnOffCommands(value));
action.on('update', (state, data) => {
switch (state) {
case ExecutionState.COMPLETED:
break;
case ExecutionState.FAILED:
break;
}
});
} |
@dubocr the problem indeed comes from this WIP PR. Rolling back to I suggest we revert this commit to let @lukyer work on a more robust solution to the glitching problem. |
Hi everyone, Sorry I was really busy and didn't have equipments anymore to test my changes. However, I made some changes based on your comments. Hope it will fix for you. Let me know if it seems OK. |
Just updated to the latest version and I can now turn off my lights. Fix looks like to have a good effect. |
Hi @dubocr I just tested out release The early return still forbid to turn on a dimmed light: protected async setOn(value) {
if (value && this.brightness !== undefined) {
// when light has brightness control, we do not set on to avoid glitches with gradual lightning up
return;
} Can you explain a bit more this problem:
Awaiting a better fix, rolling back to |
Hi, I don't know what is the glitch problem and as I can't test anything I have to choose between the options from user. As it seems the 'glitch' fix is more problematic than anything else I'll drop it. |
Gateway: 7967
Device: Light > DimmerLight
States
LIGHT VAR io
Can be turned on and is set to 100%. If you then want to turn it off, it stays at 100% and the light stays on, even though it is displayed as off. Can this error be fixed?
The text was updated successfully, but these errors were encountered: