[enocean] Fix: rollershutter opens/closes completely (#15491) (#18594)

Signed-off-by: Gregor Burghard <gburghard@gmx.de>
pull/18603/head
0void 2025-04-25 13:12:06 +02:00 committed by GitHub
parent 9c87d37ba1
commit ef3b28c1c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -76,10 +76,14 @@ public class A5_3F_7F_EltakoFSB extends _4BSMessage {
(Math.abs(current.intValue() - percentCommand.intValue()) * shutTime) (Math.abs(current.intValue() - percentCommand.intValue()) * shutTime)
/ PercentType.HUNDRED.intValue()); / PercentType.HUNDRED.intValue());
if (duration == 0) {
setData(ZERO, (byte) 0xFF, STOP, TEACHIN_BIT);
} else {
setData(ZERO, duration, direction, TEACHIN_BIT); setData(ZERO, duration, direction, TEACHIN_BIT);
} }
} }
} }
}
} else if (command instanceof UpDownType upDownCommand) { } else if (command instanceof UpDownType upDownCommand) {
if (upDownCommand == UpDownType.UP) { if (upDownCommand == UpDownType.UP) {